Exercise 856Number theory › CongruencesL1Added 3 Nov 2026
Computing large powers mod $n$
#modular exponentiation#square-and-multiply#fast power
Statement
Compute .
Hint
Use square-and-multiply, or Euler's theorem.
Show solutionHide solution
Solution
Euler. , . So .
Compute. , so .
Check. , , , etc. Correct.
Conclusion. .