I proved that any subgroup of a cyclic group is cyclic. Did I prove this correctly? Are there any missteps /ambiguities?
Let $G = \{a,a^2, a^3,\dots,a^n\}$ be a cyclic group of order $n$. Let $H$ be a subgroup of $G$. Let $k>1$ be the smallest integer such that $a^k \in H$. We claim that $k\vert n$. If $k\nmid n$, $mk = n+l$ for some $l< k$. Then $a^{mk} = a^{n+l} = a^n.a^l = e.a^l = a^l$. $\because$ $a^{mk} \in H$, $a^l \in H$, which contradicts our claim that $k$ is the smallest integer such that $a^k \in H$.
Now we assume that $H$ is not cyclic and let $n = ks$. Then $H$ has at least one element of the form $a^{kq + r}$ such that $q < s$ and $r$ are integers and $r < k$. But $\because a^{-kq} = (a^{kq})^{-1}\in H$, $a^{(s-q)k} \in H$, $\implies a^{kq + r}.a^{(s-q)k} = a^{r + sk} = a^r.e = a^r$. Thus, $a^r \in H$, which contradicts our claim that $k$ is the smallest integer such that $a^k \in H$. Hence we conclude that $H$ is cyclic.
EDIT:
Let $k$ be the smallest integer such that $a^k\in H$. If $H$ is not cyclic, then we have at least one element of the form $a^{kq +r} \in H$ where $1 \leq r < k$. But $$a^k\in H \implies a^{kq} \in H \implies (a^{kq})^{-1} = a^{-kq} \in H \implies a^{kq + r - kq} \in H \implies a^r \in H $$
This contradicts our assumption that $k$ is the smallest integer such that $a^{k} \in H$.