Exercise 846Number theory › CongruencesL1Added 3 Nov 2026
Generalization of Fermat
#Fermat#generalization#coprime
Statement
Show that for any prime and any integer (including ), .
Hint
If , multiply Fermat by . If , both sides vanish.
Show solutionHide solution
Solution
Case . Fermat gives . Multiply by : .
Case . , so .
Conclusion. for all .
Reformulation. For prime , for all ; equivalently mod .