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 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 equals the number of integers with and .
- For a prime number , every positive integer less than is relatively prime to , so .
- For a prime power , the formula is .
- If , then .
- If , then Euler's totient function is multiplicative, so .
- Euler's theorem states that if , then .
- For , the value is even because relatively prime residues can be paired as and .
Vocabulary
- Euler's Totient Function
- The function counts the positive integers from to that are relatively prime to .
- Relatively Prime
- Two integers and are relatively prime when .
- Prime Power
- A prime power is a number of the form , where is prime and is a positive integer.
- Prime Factorization
- Prime factorization writes an integer as a product of prime powers, such as .
- Multiplicative Function
- A function is multiplicative when for all pairs with .
- Euler's Theorem
- Euler's theorem says that if , then .
Common Mistakes to Avoid
- Using when is wrong because multiplicativity only works for relatively prime factors.
- Forgetting to use only distinct prime factors in is wrong because each prime divisor should appear once, not once for every power.
- Thinking is wrong because multiples of are not relatively prime to , so the correct formula is .
- Counting as part of is wrong because counts positive integers with and .
- Applying Euler's theorem without checking is wrong because the congruence requires and to be relatively prime.
Practice Questions
- 1 Compute using the prime factorization .
- 2 Find and list the distinct prime factors used in the product formula.
- 3 Use Euler's theorem to simplify , after checking that .
- 4 Explain why depends on the distinct prime divisors of , not just on the size of .
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.