Math 2.0

Number theory Proof

Proof of the multiplicativity of the totient function

Builds on Euler's totient functionCoprime integersGreatest common divisorCongruence modulo nDivisibilityDivision algorithmChinese remainder theoremExistence of a prime divisorEuclid's lemmaBijection principle

Proof

  1. Let mm and nn be coprime positive integers. For a positive integer kk, let UkU_k be the set of integers xx with 1≤x≤k1 \le x \le k and gcd⁡(x,k)=1\gcd(x, k) = 1. By definition, φ(k)=∣Uk∣\varphi(k) = \abs{U_k}, where φ\varphi is Euler's totient function.
  2. Let kk be a positive integer. Each integer xx is congruent modulo kk to exactly one element of {1,…,k}\{ 1, \dots, k \}. Call it ρk(x)\rho_k(x).
  3. Proof of step 2: by the division algorithm, x=qk+rx = q k + r with 0≤r<k0 \le r < k. Take rr if r>0r > 0 and kk if r=0r = 0. Two elements of {1,…,k}\{ 1, \dots, k \} differ by less than kk, so at most one of them works.
  4. If x≡y(modk)x \equiv y \pmod k, then gcd⁡(x,k)=gcd⁡(y,k)\gcd(x, k) = \gcd(y, k). Indeed, kk divides x−yx - y, so a divisor of kk divides xx if and only if it divides y=x−(x−y)y = x - (x - y).
  5. Let f:{1,…,mn}→{1,…,m}×{1,…,n}f : \{ 1, \dots, m n \} \to \{ 1, \dots, m \} \times \{ 1, \dots, n \} be the map f(x)=(ρm(x),ρn(x))f(x) = (\rho_m(x), \rho_n(x)).
  6. The map ff is injective. If f(x)=f(y)f(x) = f(y), then x≡y(modm)x \equiv y \pmod m and x≡y(modn)x \equiv y \pmod n. By the uniqueness part of the Chinese remainder theorem, x≡y(modmn)x \equiv y \pmod{m n}. Step 2 with k=mnk = m n gives x=yx = y.
  7. The map ff is surjective. Given (r,s)(r, s), the Chinese remainder theorem gives an integer zz with z≡r(modm)z \equiv r \pmod m and z≡s(modn)z \equiv s \pmod n. Let x=ρmn(z)x = \rho_{m n}(z).
  8. Since mm and nn divide mnm n, and mnm n divides x−zx - z, we get x≡z≡r(modm)x \equiv z \equiv r \pmod m and x≡s(modn)x \equiv s \pmod n. So f(x)=(r,s)f(x) = (r, s).
  9. We show that gcd⁡(x,mn)=1\gcd(x, m n) = 1 if and only if gcd⁡(x,m)=1\gcd(x, m) = 1 and gcd⁡(x,n)=1\gcd(x, n) = 1.
  10. If gcd⁡(x,m)=d>1\gcd(x, m) = d > 1, then dd divides xx and mnm n, so gcd⁡(x,mn)>1\gcd(x, m n) > 1. The same holds for nn.
  11. Assume gcd⁡(x,m)=gcd⁡(x,n)=1\gcd(x, m) = \gcd(x, n) = 1, and suppose e=gcd⁡(x,mn)>1e = \gcd(x, m n) > 1. By the existence of a prime divisor, there is a prime qq with q∣eq \mid e.
  12. Then q∣mnq \mid m n. By Euclid's lemma, q∣mq \mid m or q∣nq \mid n. Since also q∣xq \mid x, qq is a common divisor greater than 11 of xx and mm, or of xx and nn. This contradicts step 11.
  13. By steps 4 and 9, for x∈{1,…,mn}x \in \{ 1, \dots, m n \}, we have x∈Umnx \in U_{m n} if and only if ρm(x)∈Um\rho_m(x) \in U_m and ρn(x)∈Un\rho_n(x) \in U_n.
  14. By steps 6, 7 and 13, ff restricts to a bijection from UmnU_{m n} onto Um×UnU_m \times U_n.
  15. By the bijection principle, ∣Umn∣=∣Um∣⋅∣Un∣\abs{U_{m n}} = \abs{U_m} \cdot \abs{U_n}. That is, φ(mn)=φ(m)φ(n)\varphi(m n) = \varphi(m) \varphi(n).

Idea

The Chinese remainder theorem matches each number modulo mnm n with a pair of numbers modulo mm and modulo nn. A number is coprime to mnm n exactly when both parts of its pair are coprime to their moduli, so the counts multiply.

Reading path

To understand this page from the ground up, read these 68 pages in order. The foundations come first. The path takes the proofs Proof of Bézout's identity, Proof of the generalized Euclid's lemma, Proof of the Chinese remainder theorem, Proof of the commutativity of addition by induction, Proof that a composition of injections is injective, Proof of Euclid's lemma, Proof that a function is bijective iff it has a two-sided inverse, Proof of strong induction from ordinary induction, Proof that a composition of surjections is surjective, Proof that congruence is compatible with addition, Proof that congruence is compatible with multiplication, Proof of the well-ordering principle from strong induction, Proof of the division algorithm, Proof of the bijection principle, Proof of the existence of a prime divisor.

  1. Cardinality of a finite set definition
  2. Definition by recursion concept
  3. Divisibility definition
  4. Element definition
  5. Mathematical induction concept
  6. Natural numbers object
  7. Peano axioms concept
  8. Proposition concept
  9. Congruence modulo n definition
  10. Greatest common divisor definition
  11. Prime number definition
  12. Set definition
  13. Successor function definition
  14. Implication definition
  15. Predicate definition
  16. Coprime integers definition
  17. Proof that congruence is compatible with addition proof
  18. Proof that congruence is compatible with multiplication proof
  19. Ordered pair definition
  20. Addition of natural numbers definition
  21. The successor function is injective statement
  22. Zero is not a successor statement
  23. Existential quantifier definition
  24. Universal quantifier definition
  25. Euler's totient function definition
  26. Congruence is compatible with addition statement
  27. Congruence is compatible with multiplication statement
  28. Cartesian product definition
  29. Proof of the commutativity of addition by induction proof
  30. Order on the natural numbers definition
  31. Subset definition
  32. Uniqueness quantifier definition
  33. Commutativity of addition statement
  34. Binary relation definition
  35. Proof of strong induction from ordinary induction proof
  36. Strong induction statement
  37. Function definition
  38. Codomain definition
  39. Function composition definition
  40. Identity function definition
  41. Injective function definition
  42. Proof of the well-ordering principle from strong induction proof
  43. Surjective function definition
  44. Left inverse definition
  45. Right inverse definition
  46. Proof that a composition of injections is injective proof
  47. Well-ordering principle statement
  48. Proof that a composition of surjections is surjective proof
  49. Bijective function definition
  50. Composition of injections is injective statement
  51. Proof of the existence of a prime divisor proof
  52. Proof of the division algorithm proof
  53. Composition of surjections is surjective statement
  54. Proof that a function is bijective iff it has a two-sided inverse proof
  55. Existence of a prime divisor statement
  56. Division algorithm statement
  57. Bijective iff it has a two-sided inverse statement
  58. Proof of Bézout's identity proof
  59. Proof of the bijection principle proof
  60. Bézout's identity statement
  61. Bijection principle statement
  62. Proof of the generalized Euclid's lemma proof
  63. Generalized Euclid's lemma statement
  64. Proof of the Chinese remainder theorem proof
  65. Proof of Euclid's lemma proof
  66. Chinese remainder theorem statement
  67. Euclid's lemma statement
  68. Proof of the multiplicativity of the totient function proof

Where this leads

5 pages build on this one.

Further reading

  1. Web https://en.wikipedia.org/wiki/Euler%27s_totient_function, Phi is a multiplicative function
About this page
TagJF4X4RRQY2
URIm2://JF4X4RRQY2
Kindproof
WritingW0 stub
MSC11A25
ProvesMultiplicativity of the totient function
UsesEuler's totient function, Coprime integers, Greatest common divisor, Congruence modulo n, Divisibility, Division algorithm, Chinese remainder theorem, Existence of a prime divisor, Euclid's lemma, Bijection principle
MethodsDirect proof
Changed4 November 2026

Markdown · JSON · Edit on GitHub

What this page needs for W1

  • an inventory row: the row of the inventory that the node accounts for (0 of 1)

The writing levels say how complete the text of a page is. They do not measure its truth.

What links here

No page links to this page yet.