I have the following question: Prove that a finite $p-$group $G$ with a unique subgroup $H$ of index $p$ is cyclic.
Since the subgroup is characteristic it is normal. I showed that either the center of the group $Z(G)$ is a subgroup of $H$ or $G=Z(G)H$ and the index $Z(G)/(Z(G)\cap H)$ is $p$. But I couldn't continue from this. Any help would be great.