I am trying to solve the following question:
Let $P$ be a nonabelian finite $p$-group in which every proper subgroup is abelian. Show that $P/Z(P) \simeq C_p \times C_p .$
Since $P$ is non-abelian I know two things
- $p^2$ divides $[P:Z(P)]$
- $P/Z(P)$ is not cyclic.
How can I show that $[P:Z(P)]=p^2$?
Perhaps a more direct argument: Let $M$ and $N$ be distinct maximal subgroups of the minimal non-abelian $p$-group $G$. Then $M$ and $N$ are abelian and normal in $G$. Hence, $G=MN$ and $M\cap N\le Z(G)$. It follows that $$|G:Z(G)|\le|G:M\cap N|=|G:M||M:M\cap N|=p|MN:N|=p^2.$$ Since $G/Z(G)$ is non-cyclic, we have $|G:Z(G)|=p^2$.