Using Fermat's Little Theorem: 18^{802}(mod29) Calculation

  • Thread starter Thread starter bendaddy
  • Start date Start date
  • Tags Tags
    Theorem
Click For Summary
Using Fermat's Little Theorem, it is established that 18^28 ≡ 1 (mod 29). The calculation for 18^802 is simplified to 18^(28*28.5) * 18^4, leading to 18^4 (mod 29). The result obtained is 25 (mod 29), but there is confusion as the professor's solution indicates the answer is 4 (mod 29). The discrepancy arises from the interpretation of the exponent reduction and the calculations involved. Clarification is needed to resolve the logic behind the differing results.
bendaddy
Messages
4
Reaction score
0

Homework Statement


Use Fermat's Little Theorem to calculate 18^{802}(mod29)


Homework Equations


Fermat's Little Theorem: a^{p-1}\equiv1(modp)
where in this case, a=18 and p=29


The Attempt at a Solution


By FLT, I found that 18^{28}\equiv1(mod29)
So, 18^{802}\equiv(18^{28})^{28.5}*18^{4}(mod29)\equiv18^{4}(mod29)\equiv25(mod29)

So my solution is 25(mod29).
However, the solution my professor posted is 4(mod29) (**NOT -4(mod29)**). Pretty confused here... Is there something wrong in my logic?
 
Physics news on Phys.org
hi bendaddy! :smile:
bendaddy said:
By FLT, I found that 18^{28}\equiv1(mod29)
So, 18^{802}\equiv(18^{28})^{28.5}*18^{4}(mod29)\equiv18^{4}(mod29)\equiv25(mod29)

isn't 1814 minus 1 ? :confused:
 

Similar threads

Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 5 ·
Replies
5
Views
2K
Replies
1
Views
2K