Show that a group in which all the $m$th powers commute with each other and all the $n$th powers commute with each other ,$m$ and $n$ relatively prime, is abelian.
How to do this ? we know $1=mx+yn$ for $x,y \in \mathbb{Z}$
$ab=a^{mx}a^{ny}b^{yn}b^{mx}=a^{mx}b^{yn}a^{ny}b^{mx}$
but now how to switch $b^{yn}$ and $a^{mx}$ ??