For each factor of the order of a cyclic group, the number of elements in the group with the order of that factor is equal to the number of totatives of the factor.
See cyclic group, order of a group, Euler's totient function
Let
For each
Proof
Let
Let
By There is exactly one subgroup of the order of each divisor of the order of its container cyclic group.,
Therefore, the generators of order
By Fundamental Theory of Cyclic Groups#Corollary 3,
By definition of Euler's totient function,
QED