Let $G$ be a group of order $p^n$, for some prime $p$ and positive integer $n$. Show that $G$ has an element of order $p$.
I know this question has been asked before, but I have not found a complete answer and I am quite confused.
I have tried to solve it and so far this is what I have achieved:
If $|G|=p^n$ and $e\neq a\in G$, we have that order of $a$ divides $p^n$, then $|a|\in \{p^m:1\leq m \leq n\}$. Also, if order of $G$ is $p^n$, for all $a\in G$, $a^{p^{n}}=e$. Then write $p^n=p^{m}p^s$ , $1\leq s\leq n$, we have that $(a^{p^{m-1}p^s})^p=e$. Then we can conclude that $b=a^{p^{m-1}p^s}\in G$ is an element of orden $p$.
Is what I did correct?
According to the_fox hint.
If $G$ is cyclic then it must have an element of order $p$.
So let $G$ be not cyclic and $a\in G$. Let $H=\left \langle a \right \rangle$ then $|H|$ divides $|G|$ and so that it is of the form $p^m$ where $m<n$.Then, as $H$ is cyclic hence it must have an element of order $p$ and this element is then required element of order $p$ in $G$