There is a theorem in a textbook that says:
Let $G=\left \langle a \right \rangle$ with $|G|=n$. Then $G=\left \langle a^{k}\right \rangle$ iff $\gcd(k,n)=1$.
I don't understand the difference between $\left \langle a \right \rangle$ and $\left \langle a^k \right \rangle$? Is it for stating specific order of generator $a$ and implying that the cyclic group $G$ can have the same order as $a$?
This example should clear your doubt.
Let $G=D_8$, the symmetries of a square.
Observe that $|D_8|=8=n$, since we have $4$ rotations and $4$ reflections.
Note that $\langle r\rangle=\{1,r,r^2,r^3\}$ and $\langle r^2\rangle =\{1,r^2\}$.
Clearly, $\langle r\rangle \neq \langle r^2\rangle$, since $\gcd(n,k) = \gcd(2,8) = 2\neq 1$