TITLE: Group $G$ of order $p^2$: $\;G\cong \mathbb Z_{p^2}$ or $G\cong \mathbb Z_p \times \mathbb Z_p$
QUESTION [9 upvotes]: If the order of $G$ is $p^2$ then how do I show that $G$ is isomorphic to $\mathbb Z_{p^2}$ or $\mathbb Z_p\times\mathbb Z_p$.

REPLY [5 votes]: You can get by without the fundamental theorem of finitely Abelian groups in this case, once you know the group is Abelian. If there is only one subgroup of order $p,$ then consider the order of an element outside that subgroup. If there are two different subgroups $A$ and $B$ of order $p$. What is $A \cap B?$ What is $|AB|?$
It wasn't clear from what you wrote whether you already have proved for yourself that $G$ ( the whole group) a Abelian, or you know it for other reasons. Depending on what you have done so far on your course, this may or may not be straightforward. Have you proved that if $G$ is a group such that $G/Z(G)$ is cyclic, then $G$ is Abelian? Have you proved that a finite $p$-group has a non-trivial center? You didn't actually say that $p$ was a prime by the way, but I suppose that is clear from the context.