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

  • Thread starter Thread starter bendaddy
  • Start date Start date
  • Tags Tags
    Theorem
Click For Summary
SUMMARY

The calculation of 18^{802} (mod 29) using Fermat's Little Theorem (FLT) reveals a discrepancy in results. According to FLT, since 29 is prime, 18^{28} ≡ 1 (mod 29). The correct simplification leads to 18^{802} ≡ 18^{4} (mod 29), which equals 4 (mod 29), not 25 (mod 29) as initially calculated. The confusion arises from misapplying the exponent reduction in the modular arithmetic process.

PREREQUISITES
  • Understanding of Fermat's Little Theorem
  • Basic knowledge of modular arithmetic
  • Ability to perform exponentiation in modular systems
  • Familiarity with prime numbers and their properties
NEXT STEPS
  • Study the application of Fermat's Little Theorem in various modular arithmetic problems
  • Learn advanced techniques for simplifying large exponents in modular calculations
  • Explore the properties of prime numbers and their role in number theory
  • Practice solving similar problems involving modular exponentiation
USEFUL FOR

Students studying number theory, mathematicians interested in modular arithmetic, and anyone preparing for competitive exams involving mathematical proofs and calculations.

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
3K
  • · Replies 1 ·
Replies
1
Views
2K