Maths WorkshopMaths problems with full solutions
Exercise 2109Number theory › CongruencesM1Added 3 Nov 2026

The Carmichael function $\lambda(n)$

#Carmichael function#lcm#exponent

Statement

Define λ(n)\lambda(n) and compute it for n=15n=15.

Hint

λ(n)\lambda(n) is the lcm of the orders of (Z/nZ)∗(\mathbb{Z}/n\mathbb{Z})^*. For pkp^k, λ(pk)=φ(pk)\lambda(p^k)=\varphi(p^k) for odd pp.

Show solutionHide solution

Solution

Definition. λ(n)=lcm⁡{ord⁡n(a):gcd⁡(a,n)=1}\lambda(n)=\operatorname{lcm}\{\operatorname{ord}_n(a):\gcd(a,n)=1\}. It is the smallest mm with am≡1(modn)a^m\equiv1\pmod n for all coprime aa.

For n=15=3⋅5n=15=3\cdot5: λ(15)=lcm⁡(λ(3),λ(5))=lcm⁡(2,4)=4\lambda(15)=\operatorname{lcm}(\lambda(3),\lambda(5))=\operatorname{lcm}(2,4)=4.

Verify. 24=16≡1(mod15)2^4=16\equiv1\pmod{15}; 42=16≡1(mod15)4^2=16\equiv1\pmod{15}; 74=2401≡1(mod15)7^4=2401\equiv1\pmod{15}; etc.

Conclusion. λ(15)=4\lambda(15)=4, which divides φ(15)=8\varphi(15)=8.