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

GCD of powers

#gcd#powers#prime factorization

Statement

Show that gcd⁡(am,bm)=gcd⁡(a,b)m\gcd(a^m,b^m)=\gcd(a,b)^m for all m≥1m\ge1.

Hint

Use prime factorizations: the exponent of pp in ama^m is m⋅vp(a)m\cdot v_p(a).

Show solutionHide solution

Solution

Prime factorization. For each prime pp, vp(gcd⁡(am,bm))=min⁡(mvp(a),mvp(b))=mmin⁡(vp(a),vp(b))v_p(\gcd(a^m,b^m))=\min(m v_p(a),m v_p(b))=m\min(v_p(a),v_p(b)).

GCD. mmin⁡(vp(a),vp(b))=mvp(gcd⁡(a,b))=vp(gcd⁡(a,b)m)m\min(v_p(a),v_p(b))=m v_p(\gcd(a,b))=v_p(\gcd(a,b)^m).

Conclusion. The prime factorizations agree, so gcd⁡(am,bm)=gcd⁡(a,b)m\gcd(a^m,b^m)=\gcd(a,b)^m.