Maths WorkshopMaths problems with full solutions
Exercise 1126Number theory › PrimesL1Added 3 Nov 2026

Multiplicativity of $\varphi$

#Euler totient#multiplicative#CRT

Statement

Show that if gcd⁡(m,n)=1\gcd(m,n)=1, then φ(mn)=φ(m)φ(n)\varphi(mn)=\varphi(m)\varphi(n).

Hint

Use the CRT: Z/mnZ≅Z/mZ×Z/nZ\mathbb{Z}/mn\mathbb{Z}\cong\mathbb{Z}/m\mathbb{Z}\times\mathbb{Z}/n\mathbb{Z}, and an element is a unit iff both components are units.

Show solutionHide solution

Solution

CRT. The isomorphism x↦(x mod m,x mod n)x\mapsto(x\bmod m,x\bmod n) sends units of Z/mnZ\mathbb{Z}/mn\mathbb{Z} to pairs of units.

Count. The number of pairs (a,b)(a,b) with aa a unit mod mm and bb a unit mod nn is φ(m)φ(n)\varphi(m)\varphi(n).

Conclusion. φ(mn)=φ(m)φ(n)\varphi(mn)=\varphi(m)\varphi(n) when gcd⁡(m,n)=1\gcd(m,n)=1.

Corollary. φ(n)=n∏p∣n(1−1/p)\varphi(n)=n\prod_{p\mid n}(1-1/p).