I know this is a duplicate, but I don't know ring theory or the Chinese remainder theorem, so I couldn't understand the answers of the duplicate.
I tried to prove it by constructing the isomorphism $\phi: x \mapsto (x \mod m, \ x \mod n)$. I already proved that this maps $U_{mn}$ to $U_m \times U_n$ and that it is injective, but I'm stuck on proving that it is surjective, or that $|U_{mn}| = |U_m \times U_n|$.
You know that:
$|U(m)\times U(n)| = |\phi(m)\times\phi(n)| = |\phi(mn)| = |U(mn)|$
Note that $\phi$ is the totient function here and not the name of your function. The above equation means *order of the domain = order of co-domain*
You've proven that the mapping is injective, which means *order of domain = order of the range*.
So you know *order of range = order of co-domain*, which is the definition of surjectivity.
– sanketalekar Jul 21 '22 at 23:41