Number System

Euler’s Theorem

Students trace a repeating pattern around a circular modular dial.

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.

In Spanish
teorema de Euler
Topic
Prime numbers and number theory

Euler’s Theorem in a picture

Euler’s Theorem diagramSince φ(10) = 4 and 3 is coprime to 10, 3⁴ = 81 leaves remainder 1.Choose a = 3 and n = 10Their greatest common factor is 1φ(10) = 4The coprime numbers are 1, 3, 7, 93⁴ = 81 ≡ 1 mod 10The remainder is 1
Since φ(10) = 4 and 3 is coprime to 10, 3⁴ = 81 leaves remainder 1.

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 condition must a and n satisfy?

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.