Exercise 1129Number theory › PrimesL1Added 3 Nov 2026
Fermat's little theorem
#Fermat#prime#modular exponentiation
Statement
State Fermat's little theorem and compute .
Hint
For prime and : .
Show solutionHide solution
Solution
Theorem. If is prime and , then .
Application. , , . So .
Reduce. , so .
Conclusion. .