I have to show the following statement:
Let $G = \langle a\rangle$ be a cyclic group of order $n$. If $H$ is a subgroup of $G$ and $|H|=m$ divides $n$, then $H = \langle a^d\rangle$ where $d = \frac{n}{m}$.
My attempt:
Since $G = \langle a\rangle$, we know that $H = \langle a^k\rangle$ where $k$ is the least positive integer such that $a^k\in H$. Then, it is enough to prove that $k = d$. Note that $(a^k)^m = e$, because the order of $H$ is $m$. Since the order of $G = \langle a\rangle$ is $n$, it follows that $n\leq km$. Hence, $d = \frac{n}{m}\leq k$. However, I do not get why $k\leq d$, or equivalently, $km\leq n$. It is clear that $a^{n} = e$, but I don't know how to use this fact in order to show that $km\leq n$.
Edit: In this post it is said that $km\leq n$ since $a^{n} = e$ and $m$ is the least positive integer such that $(a^k)^m = e$. Nevertheless, I think that this argument is wrong because we should have showed firstly that $k\mid n$. Am I misunderstanding something?