Proof (Chinese remainder theorem in cyclic groups)

Let $C_{mn} = \gen g$. Then $\gen {g^n}\cong C_m$ and $\gen{g^m}\cong C_n$.

We will check the hypothesis of the direct product theorem: