A classical result in group theory is that if all elements $g$ of a group $G$ satisfy $g^2=e$, then $G$ is an Abelian group.
My question is: Let $n\geq2$ be a positive integer. If all elements $g$ of a group $G$ satisfy $g^n=e$, for which values of $n$ is $G$ an Abelian group? For which values of $n$ can we provide an example of a non-Abelian group $G$?
There is an interesting result when $n=3$.