I want to show the title.
Let $\Bbb Z_{\operatorname{lcm}(m,n)}=\langle x\rangle$, $\Bbb Z_{\gcd(m,n)}=\langle y\rangle$, $\Bbb Z_m=\langle z\rangle$, $\Bbb Z_n=\langle w\rangle$ and $d=\gcd(m,n)$.
I use the function $f\colon \Bbb Z_{\operatorname{lcm}(m,n)}\times \Bbb Z_{\gcd(m,n)}\to \Bbb Z_m\times \Bbb Z_n$ such that
$f(x,1)=(z,w)$ and $f(1,y)=(z^{m/d}, w^{n/d})$
This is homomorphism, but I can't show it is injective or surjective to show that it is bijective.
Help me!