Sign in to save

Bookmark this page so you can find it later.

Sign in to save

Bookmark this page so you can find it later.

Euler's Totient Function Reference cheat sheet - grade 11-12

Click image to open full size

Math Grade 11-12

Euler's Totient Function Reference Cheat Sheet

A printable reference covering Euler's totient function, prime powers, product formula, multiplicativity, and coprime residue counts for grades 11-12.

Download PNG

Study as Flashcards

Euler's totient function counts how many positive integers up to a given integer are relatively prime to it. This cheat sheet helps students compute φ(n)\varphi(n) quickly, recognize useful number patterns, and connect factorization to counting. It is especially useful for modular arithmetic, cryptography, and contest-style number theory problems.

Key Facts

  • Euler's totient function φ(n)\varphi(n) equals the number of integers kk with 1kn1 \le k \le n and gcd(k,n)=1\gcd(k,n)=1.
  • For a prime number pp, every positive integer less than pp is relatively prime to pp, so φ(p)=p1\varphi(p)=p-1.
  • For a prime power pap^a, the formula is φ(pa)=papa1=pa(11p)\varphi(p^a)=p^a-p^{a-1}=p^a\left(1-\frac{1}{p}\right).
  • If n=p1a1p2a2pkakn=p_1^{a_1}p_2^{a_2}\cdots p_k^{a_k}, then φ(n)=n(11p1)(11p2)(11pk)\varphi(n)=n\left(1-\frac{1}{p_1}\right)\left(1-\frac{1}{p_2}\right)\cdots\left(1-\frac{1}{p_k}\right).
  • If gcd(a,b)=1\gcd(a,b)=1, then Euler's totient function is multiplicative, so φ(ab)=φ(a)φ(b)\varphi(ab)=\varphi(a)\varphi(b).
  • Euler's theorem states that if gcd(a,n)=1\gcd(a,n)=1, then aφ(n)1(modn)a^{\varphi(n)} \equiv 1 \pmod n.
  • For n>2n>2, the value φ(n)\varphi(n) is even because relatively prime residues can be paired as kk and nkn-k.

Vocabulary

Euler's Totient Function
The function φ(n)\varphi(n) counts the positive integers from 11 to nn that are relatively prime to nn.
Relatively Prime
Two integers aa and bb are relatively prime when gcd(a,b)=1\gcd(a,b)=1.
Prime Power
A prime power is a number of the form pap^a, where pp is prime and aa is a positive integer.
Prime Factorization
Prime factorization writes an integer as a product of prime powers, such as n=p1a1p2a2pkakn=p_1^{a_1}p_2^{a_2}\cdots p_k^{a_k}.
Multiplicative Function
A function ff is multiplicative when f(ab)=f(a)f(b)f(ab)=f(a)f(b) for all pairs with gcd(a,b)=1\gcd(a,b)=1.
Euler's Theorem
Euler's theorem says that if gcd(a,n)=1\gcd(a,n)=1, then aφ(n)1(modn)a^{\varphi(n)} \equiv 1 \pmod n.

Common Mistakes to Avoid

  • Using φ(ab)=φ(a)φ(b)\varphi(ab)=\varphi(a)\varphi(b) when gcd(a,b)1\gcd(a,b)\ne 1 is wrong because multiplicativity only works for relatively prime factors.
  • Forgetting to use only distinct prime factors in φ(n)=n(11p)\varphi(n)=n\prod\left(1-\frac{1}{p}\right) is wrong because each prime divisor should appear once, not once for every power.
  • Thinking φ(pa)=pa1\varphi(p^a)=p^a-1 is wrong because multiples of pp are not relatively prime to pap^a, so the correct formula is φ(pa)=papa1\varphi(p^a)=p^a-p^{a-1}.
  • Counting 00 as part of φ(n)\varphi(n) is wrong because φ(n)\varphi(n) counts positive integers kk with 1kn1 \le k \le n and gcd(k,n)=1\gcd(k,n)=1.
  • Applying Euler's theorem without checking gcd(a,n)=1\gcd(a,n)=1 is wrong because the congruence aφ(n)1(modn)a^{\varphi(n)} \equiv 1 \pmod n requires aa and nn to be relatively prime.

Practice Questions

  1. 1 Compute φ(36)\varphi(36) using the prime factorization 36=223236=2^2\cdot 3^2.
  2. 2 Find φ(100)\varphi(100) and list the distinct prime factors used in the product formula.
  3. 3 Use Euler's theorem to simplify 7φ(20)(mod20)7^{\varphi(20)} \pmod {20}, after checking that gcd(7,20)=1\gcd(7,20)=1.
  4. 4 Explain why φ(n)\varphi(n) depends on the distinct prime divisors of nn, not just on the size of nn.

Understanding Euler's Totient Function Reference

The fastest way to understand the formula is to think about excluded numbers. Start with every number in a complete set of residues. Any number sharing a prime factor with the modulus must be removed.

For a number divisible by two, half the residues are removed. For a number divisible by three, one third are removed. Some residues were removed twice because they are divisible by both primes, so they must be restored once.

This is the inclusion and exclusion idea. It explains why each distinct prime contributes one factor of one minus one over that prime. The exponent of a prime changes the size of the set, but it does not create a new kind of exclusion.

Factorisation is therefore the main practical skill. To find the totient of sixty, first write sixty as two squared times three times five. Begin with sixty.

Removing the multiples of two leaves thirty possible residues. Removing the remaining multiples of three leaves twenty. Removing the remaining multiples of five leaves sixteen.

Thus the totient of sixty is sixteen. This method works cleanly because only distinct prime divisors matter in the fractional reductions. Students often make the mistake of using every repeated prime factor in the product.

For example, a factor of two squared still gives only one reduction based on two. Prime factorisation must be correct before any totient calculation can be trusted.

Totients appear when powers repeat in modular arithmetic. Suppose a base has no common prime factor with the modulus. Its successive powers can be reduced to a repeating cycle.

A totient gives a dependable cycle length, though the actual cycle can be shorter. This makes large exponents manageable. For example, when working modulo fifteen, the powers of two return to one after a number of steps that divides the totient of fifteen, which is eight.

An exponent such as one hundred can then be reduced using the cycle. This idea is important in public key cryptography. Encryption systems use very large products of primes because the arithmetic is easy when the prime factors are known, while finding those factors from the product is difficult.

There are several details worth checking in exercises. The number one has totient one, even though it has no prime factors. Multiplicativity only applies when the two parts share no prime factor.

It cannot be used to claim that the totient of four times two equals the totient of four times the totient of two, since four and two are not coprime. In modular power problems, the base must be coprime to the modulus before Euler's theorem is applied. If that condition fails, reducing an exponent by the totient can give a wrong answer.

A useful habit is to write three short lines in order. Factor the modulus.

Check the greatest common divisor of the base and modulus. Then calculate the totient or identify the needed power cycle.