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