Euler’s Theorem definition
Euler’s theorem says that a raised to the power φ(n) leaves remainder 1 modulo n whenever a and n are coprime and n is greater than 1.
Euler’s Theorem in a picture
How it works
The function φ(n) counts the integers from 1 through n that are coprime to n. The congruence is a raised to φ(n) ≡ 1 (mod n). You can use it to reduce a large nonnegative exponent when the base is coprime to the modulus.
Worked examples
Use Euler’s theorem to find the remainder of 3⁹ modulo 10.
Split 9 as 2 × 4 + 1. Since each 3⁴ contributes remainder 1, the result has remainder 3.
Why does the theorem reduce to Fermat’s little theorem for prime n?
If n is prime, φ(n) = n − 1.
Can you apply it to base 2 modulo 8?
No. The base and modulus share a factor of 2.
Common mistake
Check that the base and modulus are coprime before reducing the exponent by a multiple of φ(n).
Quick check
What is φ(8)?
Show answer
4, because 1, 3, 5, and 7 are coprime to 8.
What remainder does 5 raised to φ(6) leave modulo 6?
Show answer
1, since 5 and 6 are coprime.
Sources
Flashcard
Euler’s Theorem
Reveal the definition
Euler’s theorem says that a raised to the power φ(n) leaves remainder 1 modulo n whenever a and n are coprime and n is greater than 1.
Effortless Math. “Euler’s Theorem.” Math Dictionary.



