Let $G$ be a finite group such that $3\nmid |G|$ and $a, b \in G$. Prove: If $a^3 = b^3$ then $a = b$.
My thoughts:
If $3 \nmid |G|$, there must be $0 < r < 3$ such that $|G| = 3m + r$.
Now we get:
$$\begin{align} a^3 = b^3 &\implies a^{3m} = b^{3m}\\ &\implies a^{3m+r} = b^{3m}\cdot a^r\\ &\implies e = b^{3m}\cdot a^r\\ &\implies a^{-r} = b^{3m}. \end{align}$$
But that seems useless as I could not go any further. Any hints?