$G$ is a group of order $p^k$ where $p$ is prime and $k$ is a positive integer. I want to show that every element of $G$ must be of order $p^i$, for some $i$ with $0\le i\le k$.
I have some ideas but no concrete proof yet.
Is this like saying that for a group with only prime elements, it will be cyclic? Since any $a\in G$ is $a=p^i$, some $i$. So I need to show $G$ is cyclic?
Maybe Lagrange's theorem will be useful here?
There must be an element in $G$ that has order $p$ right? Not sure how to show this though.
$|G|=p^k$, for $p$ prime. Need to show that any $a\in G$ is $a=p^i$, for $0\le i\le k$. Since every element of $G$ is a power of a prime, it must generate a subgroup for $G$?
I know there are some similar posts on here, but I'm not completely sure if they are actually related and if I'm thinking correctly so far. I found this: Show that every group of prime order is cyclic , but I'm not sure if it's the same idea and if I need to do something more specific to ensure I'm answering my question fully.