If $d$ is a positive divisor of $n$, the number of elements of order $d$ in a cyclic subgroup of order $n$ is $\varphi (d)$
where $\varphi(d)$ is the Euler's totient function, denoting the number of positive numbers less than $d$ that are coprime to $d$.
The question I have concerns a part of the proof:
If $d \mid n$ then there exists exactly one subgroup of order $d$ , call it $\langle a \rangle$. Then every element of order $d$ also generates the subgroup $\langle a \rangle$ and an element $a^k$ generates $\langle a \rangle$ iff $\gcd(k,d) = 1$ implies that the number of such elements is precisely $\varphi (d)$.
How does every element of order $d$ also generate the subgroup $\langle a \rangle$, wouldn't it be only one $a$ since $|\langle a \rangle| = |a|$? And how does this fact imply $\varphi(d)$ is the correct number?