Question: Prove the following: if|G|>1 is not prime, then $G$ has a subgroup other than $G$ and {e} We know that $\langle g \rangle$ is a subgroup of $G$ by previous part of the question and $G$ is finite
From other similar question on here I found this:
Just for clarity's sake, here is the proof that if $g$ generates $G$, and $|G| = mn,\ 1 < m,n < |G|$, that $1 < |\langle g^m \rangle| < |G|$.
If $|\langle g^m \rangle| = 1$ then $g^m = e$ contradicting that $|g| = |G| = mn$.
Since $e = g^{mn} = (g^m)^n$, we must have $|g^m| \leq n < mn = |G|$.
One can indeed prove that $|g^m| = n$ but this is not necessary.
Does it mean that $\langle g^m \rangle$ and $\langle g^n \rangle$ are also subgroups and is that the proof?
I'm not very sure of what you are asking exactly. I'll prove the theorem, and I think that your question is answered in the proof. I hope you find it useful.
Take any $g\in G$, $g\neq e$. If $g$ does not generate $G$, $\langle g\rangle$ is a subgroup and it is not $G$ or $\{e\}$. If $g$ generates $G$ then $G$ is cyclic and the order of $g$ is $|G|$. Write $|G|=mn$ with $m,n>1$. Then $\langle g^m\rangle$ and $\langle g^n\rangle$ are proper subgroups. This completes the proof.