Proof (isomorphism of cyclic groups)

Let $G$ be a cyclic group with generator $g$. Also let $$ S = \sb{k\in\N_{>0}}{g^k = e}. $$

Consider the map $$\begin{align*} \phi: \Z &\to G \\ k &\mapsto g^k. \end{align*}$$ $\phi$ is a homomorphism since for all $k,l\in\Z$, $$ \phi(k+l) = g^{k+l} = g^kg^l = \phi(k)\phi(l). $$

$\phi$ is surjective by the definition of $G$.

To show that $\phi$ is injective, suppose $\ker\phi\neq\{0\}$. There exists $k\in\ker\phi\setminus\se{0}$. If $k<0$, we can replace $k$ by $-k$ if necessary assume $k>0$ as $\ker\phi\leq\Z$. This means $k\in S$, contradicting with $S=\emptyset$. Hence $\phi$ is injective.

Therefore $\phi$ is a bijective homomorphism, i.e. $\Z\cong G$.

Let $$ n = \min S. $$ Define $$\begin{align*} \phi: \Z_n &\to G \\ k &\mapsto g^k. \end{align*}$$ $\phi$ is a homomorphism since for all $k,l\in\Z_n$, $$\begin{align*} \phi(k+_n l) &= g^{k +_n l} \\ &= g^{k+l + qn} &&\text{for some } q\in\Z \\ &= g^{k}g^{l}(g^n)^q \\ &= g^kg^l &&g^n = e \\ &= \phi(k)\phi(l). \end{align*}$$

To show that $\phi$ is surjective, consider $g^k\in G$ for any $k\in\Z$. Division algorithm gives $$ k = qn + r $$ for some $q\in\Z$ and $r\in\Z_n$. Then $$\begin{align*} g^k &= (g^{n})^q \cdot g^r \\ &= e^q \cdot g^r \\ &= g^r = \phi(r), \end{align*}$$ so $\phi$ is surjective.

To show that $\phi$ is injective, we choose $k\in\ker\phi$ with the assumption that $k\geq 0$ justified above. Minimality of $n$ ensures no $k\in(0,n)$ satisfies $g^k = e$. Therefore $k=0$, so $\ker\phi = \se{0}$. Hence $\phi$ is injective.

$\phi$ is therefore an isomorphism, so $G\cong\Z_n$.