Maths WorkshopMaths problems with full solutions
Exercise 909Number theory › Divisibility and gcdL1Added 3 Nov 2026

Coprime product

#coprime#product#divisibility

Statement

Let a,ba,b be coprime and both divide nn. Show that ab∣nab\mid n.

Hint

Use the prime factorization of nn and the fact that aa and bb have disjoint prime sets.

Show solutionHide solution

Solution

Prime factorization. Write n=∏pαpn=\prod p^{\alpha_p}. Since a∣na\mid n and b∣nb\mid n, the exponent of pp in aa and bb is at most αp\alpha_p. Since gcd⁡(a,b)=1\gcd(a,b)=1, at most one of a,ba,b contains pp.

Conclusion. The exponent of pp in abab is at most αp\alpha_p, so ab∣nab\mid n.

Application. If a∣na\mid n, b∣nb\mid n, gcd⁡(a,b)=1\gcd(a,b)=1, then ab∣nab\mid n.