[step:Factor every divisor of $mn$ into a divisor of $m$ and a divisor of $n$]Let $m,n \in \mathbb{N}$ satisfy $\gcd(m,n)=1$.
[claim:Divisor factorization for coprime products]
The map
\begin{align*}
\Phi: \{(a,b) \in \mathbb{N}^2 : a \mid m,\ b \mid n\} &\to \{d \in \mathbb{N} : d \mid mn\} \\
(a,b) &\mapsto ab
\end{align*}
is a bijection. Its inverse sends a divisor $d \mid mn$ to
\begin{align*}
\left(\gcd(d,m), \gcd(d,n)\right).
\end{align*}
[/claim]
[proof]
First let $a \mid m$ and $b \mid n$. Since $ab$ divides $mn$, the map $\Phi$ is well-defined.
We prove injectivity. Suppose $a_1,a_2 \mid m$ and $b_1,b_2 \mid n$ satisfy
\begin{align*}
a_1b_1=a_2b_2.
\end{align*}
Because $a_1$ and $a_2$ divide $m$, and $b_1$ and $b_2$ divide $n$, the coprimality condition $\gcd(m,n)=1$ implies
\begin{align*}
\gcd(a_i,b_j)=1
\end{align*}
for all $i,j \in \{1,2\}$. From $a_1b_1=a_2b_2$, the integer $a_1$ divides $a_2b_2$. Since $\gcd(a_1,b_2)=1$, Euclid's lemma gives $a_1 \mid a_2$. By the same argument, $a_2 \mid a_1$. Hence $a_1=a_2$, and then $b_1=b_2$.
We prove surjectivity. Let $d \in \mathbb{N}$ satisfy $d \mid mn$. Define
\begin{align*}
a := \gcd(d,m), \qquad b := \gcd(d,n).
\end{align*}
Then $a \mid m$ and $b \mid n$. We show that $d=ab$. Let $q$ be any prime number, and let $\nu_q(k)$ denote the exponent of $q$ in the prime factorization of a positive integer $k$. Since $\gcd(m,n)=1$, at most one of $\nu_q(m)$ and $\nu_q(n)$ is positive. Also $d \mid mn$, so
\begin{align*}
\nu_q(d) \le \nu_q(mn)=\nu_q(m)+\nu_q(n).
\end{align*}
Using the definition of greatest common divisor in terms of prime exponents,
\begin{align*}
\nu_q(a)+\nu_q(b)
&= \min\{\nu_q(d),\nu_q(m)\}+\min\{\nu_q(d),\nu_q(n)\} \\
&= \nu_q(d).
\end{align*}
The last equality holds because the two prime exponents $\nu_q(m)$ and $\nu_q(n)$ are not both positive, while $\nu_q(d)$ is bounded by their sum. Therefore $ab$ and $d$ have the same exponent at every prime $q$, so $d=ab$. Thus $\Phi$ is surjective.
[/proof][/step]