Assume $(G,\times)$ is a group and for $a,b \in G$: $ab=ba$, $\text{ord}(a)=n$, $\text{ord} (b)=m$
- Show that if $\gcd(m,n)=1$ then $G$ has an element of order $nm$.
- If $m,n$ are arbitrary,then $G$ has an element of order $\text{lcm}(m,n)$
Since $G$ is not cyclic I don't have any idea how to start, any help is appreciated.
Lemma: Assume $(G,\times)$ is a group and $a,b \in G$, Moreover $ab=ba$. let $\text{ord}(a)=n$ and $\text{ord}(b)=m$,then $\text{ord}(ab)\mid \text{lcm}(n,m)$.
$\text{lcm}(n,m)=ns$ and $\text{lcm}(n,m)=mr$ for some $r,s \in \mathbb Z^+$,then:
$$(ab)^{\text{lcm}(n,m)}$$ Since $ab=ba$ ,hence $$=a^{\text{lcm}(n,m)}b^{\text{lcm}(n,m)}$$ $$=a^{ns}b^{mr}=(a^n)^s(b^m)^r$$ $$=e^se^r=e$$ Follows $\text{ord}(ab)\mid \text{lcm}(n,m)$.
- Since $\text{ord}(ab) \mid \text{lcm}(n,m)=\frac{nm}{\text{gcd}(n,m)}$,By the assumption $\text{gcd}(n,m)=1$ So $\text{ord}(ab) \mid nm$
- If $\text{ord}(ab) \mid \text{lcm}(n,m)$ then there is $g \in G$ such that $g^{\text{lcm}(n,m)}=e$
Okay. Let's argue that that $lcm(n,m)|\mathrm{ord}(ab)$ from which you'd get the result by simply adding your lemma.
Well, if $(ab)^k=1$, then by commutativity, we have $a^k=b^{-k}$. However, $\mathrm{ord}(a^k)=\frac{lcm(k,n)}{k}$ and $\mathrm{ord}(b^{-k})=\frac{lcm(k, \mathrm{ord}(b^{-1}))}{k}=\frac{lcm(k,m)}{k}$, so we get that $$ lcm(k,n)=lcm(k,m) $$ which, in particular, implies that $m$ divides $lcm(k,n)$. Since $n$ and $m$ are co-prime, this implies that $m|k$. This implies that $\mathrm{ord}(b^k)=1$ and similarly, that $\mathrm{ord}(a^k)=1$. All in all, we get that $lcm(n,m)|\mathrm{ord}(ab)$, which is what we wanted.