Let $G$ and $H$ be groups and let $a\in G$ and $b \in H$ such that $|a|=m$ and $|b|=n$ for some positive integers m and n. Now consider $(a,b) \in G\times H$.
(i) Prove that $$|(a,b)|=\text{lcm}(m,n).$$
(ii) If, in addition, $G$ and $H$ are cyclic with $G=<a>$ and $H=<b>$, so that $|G|=|<a>|=m$ and $|H|=|<b>|=n$. Prove that $$G\times H \text{ is cyclic }\iff \gcd(m,n)=1.$$
I need direction on how to get these proofs started and if there are any other, definitions or facts I could use to help prove both statements.
$(a,b)^p=(a^p,b^p)=(e_G,e_H)$ implies that $p$ is a multiple of m and n thus lcd(m,n) divides p.
If G =$<a>, H=<b>$ and gcd(m,n)=1, lcd(m,n)=mn is the cardinal of $G\times H$, the first part shows that the order of $(a,b)$ is lcd(m,n)=mn.
Suppose $G\times H$ is cyclic, its generator is $(a^u,b^v)$ there exists p such that $(a^u,b^u)^p=(a,e_H)$ this implies $pu=hm$ is a multiple of m and $pu=1+cn$ thus $hm=1+cn, hm-cn=1$ gcd(m,n)=1