I have to prove the following lemma: $\gcd(ab,c) =\gcd(a,c) \gcd(b,c)$ I am using prime factorization to proof this lemma.
We have $a,b,c\in \mathbb N$
Let the prime factorizations of $a,b,c$ be:
$a = p_1^{a_1}p_2^{a_2}\cdots p_n^{a_n}$
$b = p_1^{b_1}p_2^{b_2}\cdots p_n^{b_n}$
$c = p_1^{c_1}p_2^{c_2}\cdots p_n^{c_n}$
$p_i,a_i,b_i,c_i \in \mathbb N$
I. $ \gcd(ab,c) = p_1^{\min (a_1+b_1,c_1)}p_2^{\min (a_2+b_2,c_2)} \cdots p_n^{\min (a_n+b_n,c_n)}$
II. $gcd(a,c) = p_1^{\min (a_1,c_1)}p_2^{\min (a_2,c_2)} \cdots p_n^{\min (a_n,c_n)}$
III $gcd(b,c) = p_1^{\min (b_1,c_1)}p_2^{\min (b_2,c_2)} \cdots p_n^{\min (b_n,c_n)}$
Now we look at the product $\gcd(a,c)\gcd(b,c)$ which is
$= p_1^{\min (a_1,c_1)}p_1^{{\min} (b_1,c_1)} \cdots p_n^{\min (a_n,c_n)}p_n^{\min (b_n,c_n)}$
$= p_1^{\min (a_1+b_1,c_1)} \cdots p_n^{\min (a_n+b_n,c_n)}$
At Roman I we see how the prime factorization of $\gcd(ab,c)$ looks like. It is the same exponentiation with the added exponents as the product of $\gcd(a,c)$ and $\gcd(b,c)$. Due to this identity $\gcd(ab,c)$ should divide the product of $\gcd(a,c)$ and $\gcd(b,c)$. $\blacksquare$
I don't know whether this proof is correct or not. I would like to receive some feedback.