I'm studying the proof of the theorem that says:
A subgroup of a cyclic group is cyclic
The proof goes as follows.
Let $G = \langle g \rangle$ be a cyclic group. Let $H$ be a subgroup of $G$. For $H = \{e\}$, the statement is trivial. So suppose $H \neq \{e\}$ en let $g^k \in H$ with $k$ minimal in $\mathbb{N_0}$ (so $k$ is the first non zero natural number such that $g^k \in H$). We now show that $H = \langle g^k \rangle$, from which the result follows. Let $g^n \in H$. Write $n = qk+r$ with $0 \leq r <k$. Then, $g^r = g^{n-qk} = g^n(g^k)^{-q} \in H$, from which must follow that $r = 0$ (because we took $k$ minimal and $r < k$). So $g^n \in \langle g^k \rangle$, hence $H = \langle g^k \rangle$.
Now, I'm wondering why the proof doesn't work if $H = \{e\}$ if I would not treat the case $H = \{e\}$ separately.
I think it is because the proof would fail if $G$ is generated by an element of infinite order, so we cannot take $g^k \in H$ with $k$ minimal. Can someone verify whether this is correct?
Thanks in advance.
The point of treating the case of a non-trivial subgroup $H$ separately is to get a non-zero power $g^k$ (i.e., $k\neq 0$) of the generator $g$ of $G$ in $H$. Then there is a positive such power $g^k$; i.e., with $k>0$ (since $g^k\in H$ implies that $g^{-k}\in H$). Then you can take $k$ to be the least positive power of $g$ that belongs to $H$. That allows you to use the division algorithm to write $n=qk+r$, and the rest of the proof goes through.