State and prove the Principle of Inclusion and Exclusion.
Use the Principle to show that the Euler totient function ϕ satisfies
ϕ(p1c1⋯prcr)=p1c1−1(p1−1)⋯prcr−1(pr−1).
Deduce that if a and b are coprime integers, then ϕ(ab)=ϕ(a)ϕ(b), and more generally, that if d is any divisor of n then ϕ(d) divides ϕ(n).
Show that if ϕ(n) divides n then n=2c3d for some non-negative integers c,d.