High School Fermat's little theorem proof?

Click For Summary
SUMMARY

Fermat's Little Theorem states that if gcd(a, p) = 1, then ap-1 ≡ 1 (mod p). The proof involves using a lemma that asserts if gcd(k, p) = 1 and ik ≡ jk (mod p), then i ≡ j (mod p). The main proof constructs the set {1a, 2a, 3a, ..., (p - 1)a} and shows that it is a rearrangement of {1, 2, 3, ..., p - 1} under modulo p. Consequently, (p - 1)! ap-1 ≡ (p - 1)! (mod p) leads to the conclusion that ap-1 ≡ 1.

PREREQUISITES
  • Understanding of modular arithmetic
  • Familiarity with prime numbers
  • Knowledge of greatest common divisor (gcd)
  • Basic principles of number theory
NEXT STEPS
  • Study the proof of Fermat's Little Theorem in detail
  • Explore modular arithmetic applications in cryptography
  • Learn about the properties of prime numbers and their significance
  • Investigate the relationship between gcd and modular equations
USEFUL FOR

Mathematicians, computer scientists, and students studying number theory or cryptography will benefit from this discussion, particularly those interested in the applications of Fermat's Little Theorem.

Cheesycheese213
Messages
55
Reaction score
8
So I was taught that
If gcd (a, p) = 1, then ap-1 ≡ 1 (mod p)
And then the proof was
Lemma:
Let p be prime, Let i, j ,k = Integers
If gcd (k, p) = 1 and ik ≡ jk (mod p)
then i ≡ j (mod p)
Main Proof:
Consider 1a, 2a, 3a, ..., (p - 1)a
Taking mod p is some arrangement of 1, 2, 3, ..., p - 1
Then (p - 1)! ap-1 ≡ (p - 1)! mod p
Therefore, ap-1 ≡ 1

But I couldn't really understand the part going from the 1, 2, 3, ..., p - 1 to the next step. Where and how did they get that equation?

Thanks!

P.S. Looking online, people did the proof a different way, but then the last line before the therefore is the same?
 
Mathematics news on Phys.org
Whatever a is, your set of 1a, 2a, 3a, ..., (p - 1)a will have every possible remainder mod p (apart from 0) in it exactly once. It shares this property with the set 1, 2, 3, ..., p - 1. If you multiply all together their remainder has to be the same.

As an example: With p=5 and a=3 you get (3,6,9,12) -> (3,1,4,2) mod 5, multiply everything and (5 - 1)! 35-1 ≡ (5-1)! mod 5.
 
  • Like
Likes Cheesycheese213

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
17
Views
3K
Replies
16
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 12 ·
Replies
12
Views
647
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 9 ·
Replies
9
Views
2K
Replies
6
Views
3K