Let $a, b \in \mathbb{Z}$ and $m \in \mathbb{N}.$ Show that if $a$ and $b$ are both relatively prime to $m$, then $ab$ is relatively prime to $m$
WHAT I KNOW
Since $a$ and $b$ are both relatively prime to $m$, this means $gcd (a,m) = 1$ and $gcd(b,m) = 1.$ Perhaps Bezout's Identity would be useful to bring up into the proof, but do not know how to implement that into my explanation. So what can we say about the product $ab$? How do I show that it is relatively prime to $m$?
Assume otherwise that $\text{gcd}(ab,m) = n >1$. Then $n \mid ab, n \mid m$. Let $k$ be a prime divisor of $n$, then $k \mid ab, k \mid m$. Thus $k\mid a$ or $k\mid b$. So $k \mid \text{gcd}(a,m)=1$ or $k \mid \text{gcd}(b,m)=1$. Thus $k = 1$, contradicting it being a prime. The claim follows.