The integers \(a\), \(b\) and \(c\) don't share any common prime factors. Keep in mind that two of these integers may have common prime factors, but all three don't.
Let \(d=(a,c)\). \(d\) contains all the prime factors that exists in both \(a\) and \(c\). Let \(e=(b,c)\). \(e\) contains all the prime factors that exists in both \(b\) and \(c\). However, \(d\) and \(e\) can have no common prime factors, because \((a,b,c)=1\) (\(a\), \(b\) and \(c\) don't have a common prime factor). Let's represent the prime factors of \(a\), \(b\) and \(c\) like so:
There may be some \(i\) and \(j\) such that \(p_i=q_j\). There may be some \(i\) and \(k\) such that \(p_i=r_k\). There may be some \(j\) and \(k\) such that \(q_j=r_k\). However, there are no \(i\), \(j\) and \(k\) such that \(p_i=q_j=r_k\), this is because \((a,b,c)=1\).
\(d\) contains all the \(p_i\)'s where \(p_i=r_k\), and \(e\) contains all the \(q_j\)'s where \(q_j = r_k\).
Let \(f=de\). This means \(de\) contains all the primes which both \(a\) and \(b\) have in common with \(c\), so \(f\) has all the \(p_i\)'s and \(q_j\)'s such that either \(p_i = r_k\) for some \(i\) and \(k\) or that \(q_j = r_k\) for some \(j\) and \(k\). For example:
Looking back at our prime factorization, we can represent \(ab\) like so:
Remember, it's possible that \(p_i=q_j\) for some \(i\) and \(j\). Let \(g=(ab,c)\). \(g\) contains all the prime factors that exists in both \(ab\) and \(c\), so \(g\) contains all the \(p_i\)'s where \(p_i=r_k\) and all the \(q_j\)'s where \(q_j=r_k\). Using the above example:
Notice that in our example, \(f = (2^4)(5)(7)(11^2)\) and \(g = (2^4)(5)(7)(11^2)\). This suggests that \(f = g\).
To see why this must be true in general, consider the prime factors of \(ab\) that are also in \(c\). Since \((a, b, c) = 1\), any prime factor that divides \(c\) can divide \(a\) or it can divide \(b\), but it cannot divide both. The set of prime factors shared by \(a\) and \(c\) is completely disjoint from the set of prime factors shared by \(b\) and \(c\).
Because \(d = (a, c)\) and \(e = (b, c)\) share no common factors, their product \(de\) simply combines all prime factors that \(c\) shares with either \(a\) or \(b\). Since \(ab\) is just the product of all prime factors in \(a\) and \(b\), then \((ab,c)\) must be the product of these two independent sets of shared primes. Therefore, we can conclude that: