Proof of Fermat's Little Theorem

  • Context: Graduate 
  • Thread starter Thread starter amcavoy
  • Start date Start date
  • Tags Tags
    Proof Theorem
Click For Summary

Discussion Overview

The discussion revolves around the proof of Fermat's Little Theorem, specifically focusing on the modular arithmetic involved in the proof and the conditions under which certain statements hold true. Participants explore the implications of the theorem and seek clarification on specific aspects of the proof.

Discussion Character

  • Technical explanation
  • Conceptual clarification
  • Debate/contested

Main Points Raised

  • One participant questions why the equation (p-1)!a^(p-1) = (p-1)! (mod p) holds, suggesting it might only be true if the modulus were a instead of p.
  • Another participant explains that if a is invertible mod p, then the numbers 1a, 2a, ..., (p - 1)a are distinct mod p, leading to the conclusion that they must be congruent to 1, 2, 3, ..., p - 1 in some order.
  • A participant requests clarification on the uniqueness of the numbers ja mod p, indicating they understand the rest of the proof but find this part unclear.
  • One participant points out that if the modulus were a instead of p, the right-hand side of the equation would be identically zero.
  • A later reply indicates that the questioning participant has resolved their confusion regarding the proof.

Areas of Agreement / Disagreement

Participants express varying levels of understanding regarding the proof, with some seeking clarification on specific points. There is no consensus on the initial question about the modulus, as it remains a point of contention.

Contextual Notes

Some assumptions regarding the invertibility of a mod p and the implications of distinctness mod p are discussed, but these assumptions are not universally accepted or clarified in detail.

Who May Find This Useful

Readers interested in number theory, modular arithmetic, and proofs related to Fermat's Little Theorem may find this discussion beneficial.

amcavoy
Messages
663
Reaction score
0
I just have one question about the proof. Why does [itex](p-1)!a^{p-1}=(p-1)!\pmod{p}[/itex]? It seems like it would be true if the (mod p) was instead (mod a).

Thanks for your help.
 
Physics news on Phys.org
(There is more than one proof of Fermat's little theorem.)

Let a be invertible mod p.

Consider the p - 1 numbers

1a, 2a, ..., (p - 1)a.

Since a was invertible, they are all distinct mod p. So we have p - 1 numbers which are distinct mod p, so they must be congruent to 1, 2, 3, ..., p - 1 in some order.

Thus

(1a)(2a)...((p - 1)a) = 1*2*...*(p - 1) (mod p)
<=>
(p - 1)! * a^(p - 1) = (p - 1)! (mod p).
 
Since a was invertible, they are all distinct mod p. So we have p - 1 numbers which are distinct mod p, so they must be congruent to 1, 2, 3, ..., p - 1 in some order.

Can you explain this? I understand the rest of the proof except for this part.

Thanks again.

While I'm at it: I have asked this before, but received responses with suggestions for books to read. Is there any good online material to read about number theory? Anything would be good, but I don't want to spend a lot of money on books and my local library has nothing on number theory.
 
Last edited:
What he is saying above is that each one of ja is unique. Since if ja==ka Mod p, then multiplying by a^-1, we have ja(a^-1)==ka(a^-1) Mod p implies j==k Mod p.
 
apmcavoy said:
It seems like it would be true if the (mod p) was instead (mod a).


if it were mod a then the RHS would be identically zero, wouldn't it?
 
Yes, right. I have it now thanks.
 

Similar threads

  • · Replies 12 ·
Replies
12
Views
1K
  • · Replies 17 ·
Replies
17
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 31 ·
2
Replies
31
Views
3K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K