I'm stuck with this question:
$G$ is a group. $a, b \in G$ such that $ab = ba$. Show that if $a$ has order $m$, $b$ has order $n$, and $gcd(a,b)=1$, then the order of $ab$ is $mn$.
To help us solve the problem, we've been told (as a hint) to consider $(ab)^{mN}$ and $(ab)^{nN}$.
Here's what I've done so far:
$(ab)^{mn} = (ab) \cdot (ab) \cdot (ab) ... \cdot (ab)$ (mn times)
Since $ab = ba$ and since $G$ is associative:
$(ab)^{mn} = a^{mn} \cdot b^{mn} = e^n \cdot e^n = e$ where $e$ is the identity element.
But I haven't shown that $mn$ is the least positive integer for which this is possible, and I haven't used the hint (which I would like to).
Any help with this problem would be much appreciated.
Jack