TheoremProved
Fermat's little theorem
Statement
If is prime and is an integer not divisible by , then .
Why is it true?
Multiplying the numbers by and reducing modulo just permutes them, since is invertible mod . So the product of the permuted list equals the product of the original list; cancelling the common factor leaves .
Proof sketch
The map permutes because is invertible mod (as ). Multiplying all residues gives , i.e. . Since , cancel to get .
Stated by
Proved by
Topics that use this theorem
Related theorems
Step-by-step proofs
No step-by-step proof yet for this theorem.
References
- Leonhard Euler (1736). Theorematum quorundam ad numeros primos spectantium demonstratio
- G. H. Hardy, E. M. Wright (2008). An Introduction to the Theory of Numbers · DOI:10.1093/oso/9780199219858.001.0001