I need help with a practice exam question:
$G$ is a cyclic group that has only 3 subgroups: $e$ (identity), $G$, and $G'$ s.t. |$G'$| = $n$. What is |G| if:
a) $n = 5$
b) $n$ is any prime number $p$.
What I know is that the order of $G'$ divides the order of $G$; so, does that mean |$G$| = $5k$ for some integer $k$? If so, is it the same for $p$, where |$G$| = $pk$? Thanks for the help!
Hint: The cyclic group of order $ n $ has a unique (cyclic) subgroup of order $ d $ for each $ d $ dividing $ n $. If a cyclic group has $ 3 $ subgroups, this would mean that its order has $ 3 $ positive integer divisors. Which positive integers have exactly $ 3 $ positive integer divisors?