By a $p$-group, I mean a group $G$ of order $p^n$, for some prime $p$ and some $n>0$.
So far, I have managed to prove that $G$ must have a nontrivial centre $Z(G)$ and that $Z(G)$ must therefore be a p-group itself (as the order of $Z(G)$ must divide that of $G$). From here, how do I then prove that $G/Z(G)$ must always be abelian, and hence prove that $G$ is solvable as all p-groups G will have the normal series $G>Z(G)>(e)$?
Thank you