Take an Abelian group G, and let $g,h \in G$ with $o(g) = x$ and $o(h) = y$, prove that if $x,y$ are coprime, then $o(gh) = xy$
(o(g) denotes the smallest integer x s.t. $g^x = e$)
My (bad) attempt:
since $o(g) = x$ then $o(g) | x$, similar $o(h) | y$
Now let $o(gh) = k$ for some integer k,
then since $x,y$ are coprime $o(g) | o(h)o(gh)$ implies $o(g) | o(gh)$, similarly $o(h) | o(gh)$ i.e. $k = z_1 x$ and $k = z_2 y$, so the only way for this to be possible is if $z_1 = y$ and $z_2 = x$ and we're done
is this the right approach? Could someone correct me somewhere? Also, why does G have to be Abelian?