Proof (groups of order 8)

Sketch of proof: $o(a) = 4$

By Lagrange's theorem, every element of $G$ has order 1, 2, 4 or 8.

If there is an element of order 8, then $G\isom C_8$.

If every non-trivial element has order 2, then $G$ is abelian. We can choose $a,b,c\in G\setminus\set e$ such that $a\neq b$ and $c\not\in \langle a,b\rangle$. Repeated application of the direct product theorem yields $G\isom\gen a\times\gen b\times\gen c\isom C_2\times C_2\times C_2$.

Now we can pick some element $a\in G$ which has order 4. Let $b\in G\setminus\gen a$. Since $|G:\gen a| = 2$, we have $$ b\gen a = \gen a b.$$ Therefore $ba = a^i b$ for some $i=0,1,2,3$.

Now we also think about $b^2$. $b^2\in\gen a$ since otherwise $b^2 \in b\gen a$ would imply $b\in\gen a$, a contradiction.

Therefore $b^2 = a^j$ for some $j=0,1,2,3$.

Finally we have 4 cases to analyse: