Overview
this section will go over Euler's Totient theorem, a fundamental theorem in modular arithmetic which appears in numerous competitions from AMC to USAMO.
Key Ideas
The theorem states that for coprime integers a and n, then mod n where is equal to the number of integers which are coprime to n.
This theorem has the advantage over Fermat's little theorem in that n is not restricted to being a prime, meaning you can apply this theorem to composite numbers.
Euler's Totient function of an integer n calculates the quantity of numbers which are coprime to n. We can calculate this by using another theorem, namely
where the product is taken over all distinct primes which divide n. Furthermore, Euler's Totient function is multiplicative, meaning that for all .
Worked Example
(AoPS) Find the last 2 digits of .
First, notice that the last 2 digits of the expression is simply the result when taken mod 100, and . Therefore we can use Euler's theorem to reduce the expression to mod 100.
Common Pitfalls
- incorrectly calculating .
- applying the theorem when a and n are NOT coprime.
- incorrectly reducing bases.
Practice Problems
| Status | Source | Problem Name | Difficulty | Tags | ||
|---|---|---|---|---|---|---|
| Berkeley Math Circle: Monthly Contest 4 | Hard | Show TagsFermat / Euler / Wilson theorems, Multiplicative order, φ (Euler's totient) | ||||
| Berkeley Math Circle Monthly Contest 4 | Hard | Show TagsCounting two ways, Floors and ceilings, φ (Euler's totient) | ||||
| Berkeley Math Circle: Monthly Contest 8 | Hard | Show TagsGreatest common divisors (gcd), Prime numbers, φ (Euler's totient) | ||||
| 2nd Bay Area Mathematical Olympiad | Hard | Show TagsGreatest common divisors (gcd), Prime numbers, φ (Euler's totient) | ||||
| USA IMO | Hard | Show TagsCounting two ways, Inverses mod n, Pigeonhole principle, Prime numbers, φ (Euler's totient) | ||||
| Harvard-MIT Math Tournament | Hard | Show TagsFactorization techniques, Greatest common divisors (gcd), Prime numbers, φ (Euler's totient) | ||||
| Harvard-MIT Math Tournament | Hard | Show Tagsφ (Euler's totient) | ||||
| Harvard-MIT Math Tournament | Hard | Show Tagsφ (Euler's totient) | ||||
| Harvard-MIT Math Tournament | Hard | Show TagsFactorization techniques, Prime numbers, φ (Euler's totient) | ||||
| USA IMO | Hard | Show TagsConvex hulls, Greatest common divisors (gcd), Vectors, φ (Euler's totient) | ||||
| 10th Annual Harvard-MIT Mathematics Tournament | Hard | Show TagsFactorization techniques, σ (sum of divisors), τ (number of divisors), φ (Euler's totient) | ||||
| 10th Annual Harvard-MIT Mathematics Tournament | Hard | Show TagsFactorization techniques, Sums and products, Telescoping series, σ (sum of divisors), φ (Euler's totient) | ||||
| 10th Annual Harvard-MIT Mathematics Tournament | Hard | Show Tagsφ (Euler's totient) | ||||
| 10th Annual Harvard-MIT Mathematics Tournament | Hard | Show TagsPrime numbers, σ (sum of divisors), φ (Euler's totient) | ||||
| Team Selection Test | Hard | Show TagsChinese remainder theorem, Divisibility / Factorization, Fermat / Euler / Wilson theorems, Multiplicative order, φ (Euler's totient) | ||||
| 10th Annual Harvard-MIT Mathematics Tournament | Hard | Show Tagsφ (Euler's totient) | ||||
| 10th Annual Harvard-MIT Mathematics Tournament | Hard | Show TagsMöbius inversion, φ (Euler's totient) | ||||
| 10th Annual Harvard-MIT Mathematics Tournament | Hard | Show TagsSums and products, σ (sum of divisors), τ (number of divisors), φ (Euler's totient) | ||||
| 10th Annual Harvard-MIT Mathematics Tournament | Hard | Show TagsInduction / smoothing, Linear and quadratic inequalities, φ (Euler's totient) | ||||
| Harvard-MIT Mathematics Tournament | Hard | Show TagsGreatest common divisors (gcd), φ (Euler's totient) | ||||
| Harvard-MIT Mathematics Tournament | Hard | Show TagsGreatest common divisors (gcd), φ (Euler's totient) | ||||
| Harvard-MIT Mathematics Tournament | Hard | Show TagsGreatest common divisors (gcd), φ (Euler's totient) | ||||
| Harvard-MIT Mathematics Tournament | Hard | Show TagsEnumeration with symmetry, Matchings, Marriage Lemma, Tutte's theorem, Recursion, bijection, φ (Euler's totient) | ||||
| 15th Annual Harvard-MIT Mathematics Tournament | Hard | Show TagsEnumeration with symmetry, Fermat / Euler / Wilson theorems, Permutations / basic group theory, φ (Euler's totient) | ||||
| 15th Annual Harvard-MIT Mathematics Tournament | Hard | Show TagsMöbius inversion, Sums and products, φ (Euler's totient) | ||||
Module Progress:
Join the Discord Community!
Stuck on a problem, or don't understand a module? Join the Discord and get help with your doubts while making more math friends.
