Let $G$ be a cyclic group of finite order $n$. Then, the order of the cyclic subgroup $\langle g^k\rangle$ is $\frac {n}{\operatorname{gcd}(n,k)}$
Proof:
$G$ cyclic $\Rightarrow \exists g \in G: G = \langle g\rangle$ $\Rightarrow \operatorname{ord}(g) = \lvert G\rvert = n $
We know, because every subgroup of a cyclic group is cyclic, that $\lvert\langle g^k\rangle\rvert = \operatorname{ord}(g^k)$. Therefore, we only need to find the order of $g^k$.
Let $l$ be the order of $g^k$. Then:
$(g^k)^l = e \iff g^{kl} = e \iff n|(kl)$
I'm now trying to show that $l = n/{\operatorname{gcd}(n,k)}$, but this seems difficult for me. I tried to assume that there was an element $l' < n/{\operatorname{gcd}(n,k)}$ that satisfied the conditions, in the hope of reaching a contradiction, but this did not work out. Can anyone help?