Proof (groups of order 6)

By Cauchy's theorem, there exists $r,s\in G$ such that $o(r) = 3$ and $o(s) = 2$ since 2 and 3 are primes. Note that $s\not\in\gen r$ since no elements in $\gen r$ has order 2.

Now $$ |G : \gen r| = \frac{|G|}{|\gen r|} = \frac63 = 2, $$ so $\se{\gen r, s\gen r}$ partition $G$. At the same time, $\se{\gen r, \gen r s}$ also partition $G$, so $$ s\gen r = G\setminus \gen r = \gen r s.$$

This means that $sr = r^k s$ for some $k=0,1,2$.

- - clearly $r^i r^j = r^{i+j}$; - $(r^i)(r^j s) = r^{i+j} s$; - $(r^i s)(r^j) = r^i r\inv s r^{j-1} = \ldots = r^i r^{-j} s = r^{i-j} s$; - $(r^i s)(r^j s) = r^i r^{-j} s s = r^{i-j}$,

which agrees with the multiplication table of the dihedral group. Therefore, $$ G\cong D_6. $$