Overview
Euler's totient function measures how much multiplication modulo an integer remains invertible. It is an arithmetic function: its input is a positive integer, and its value reflects prime factors rather than numerical size alone. It connects the elementary act of counting coprime integers with a finite group and a useful exponentiation theorem.
Prerequisites
Use congruence, gcds, prime factorization and the criterion that a residue modulo is invertible exactly when it is coprime to . Understanding the Chinese remainder theorem explains the product formula, though direct counting also gives it.
Definition and conventions
For a positive integer , define
For , this is the order of . The convention follows from the displayed count and makes multiplicative formulas uniform. For a prime and integer , there are multiples of among the possible representatives, so .
Intuition
The obstruction to invertibility is sharing a prime factor with the modulus. The totient counts the residue classes avoiding every such obstruction. This depends on which primes occur, not just on the number of classes. That is why a simple monotonic rule in is not available.
Examples and non-examples
For modulus , the invertible representatives are , giving . For modulus , the prime-factor formula gives .
The function is not monotone: but . Nor is it multiplicative for arbitrary pairs: , whereas . Coprimality is part of the multiplicativity statement, not an optional simplification.
Important properties
If , the Chinese remainder theorem identifies a class modulo with a pair of classes modulo . A pair is invertible exactly when both components are invertible. Counting gives . Combining this with the prime-power calculation yields
where the product is over distinct primes.
Euler's theorem says that if and , then . It follows from the finite unit group, or by multiplying all units before and after their permutation by . Without coprimality, the assertion fails: .
The group size need not be its smallest common exponent. Modulo , the four units are , and each squares to one. Thus exponent two already works for all units, although . Euler's theorem provides a valid exponent, not necessarily the smallest one.
Connections and further reading
The totient appears in cyclic groups, cyclotomic fields and Dirichlet characters. It counts units, not their smallest common exponent; those are different invariants. Conrad, Sections 1–3 provides an accessible bridge to Euler's theorem.