Let $G$ a cyclic group of order $N$, and $g$ an element of $G$ of order $N$. Show that $g^n$ has order $\frac{N}{\gcd(n,N)}$.
Attempt
I see that $g^{\frac{nN}{\gcd(n,N)}}=1$ so the order of $g^{n}$ divide $\frac{N}{\gcd(N,n)}$. Suppose that the order of $g^n$ is $k<\frac{N}{\gcd(n,N)}$.
I indeed have $k\mid \frac{N}{\gcd(n,N)}$, but I can't have a contradiction. I also tried to prove that $\frac{N}{\gcd(n,N)}\mid k$ but with out success.