Does $abab=baba$ imply commutativity in a Group of uneven order?

Suppose $(G,\cdot)$ is a finite group of uneven order such that $abab=baba$ for any $a,b\in G$. Does this mean that $G$ is commutative?


Solution 1:

Yes. Let $|G|=2k-1$ be the order of the group and $a,b\in G$. Then: $$ab=ab(ab)^{2k-1}=(ab)^{2k}=(abab)^k=(baba)^k=(ba)^{2k}=ba(ba)^{2k-1}=ba.$$

(Added: I should probably mention that here we use the following fact twice: if $G$ is a finite group of order $n$ and $a\in G$, then $a^n=e$, where $e$ is the identity element.)