Maths WorkshopMaths problems with full solutions
Exercise 544Number theory › PrimesHigh schoolAdded 3 Nov 2026

GCD and LCM via prime factorization

#gcd#lcm#prime factorization

Statement

Write gcd⁡\gcd and lcm⁡\operatorname{lcm} of a=24⋅32⋅5a=2^4\cdot3^2\cdot5 and b=22⋅33⋅7b=2^2\cdot3^3\cdot7 in terms of prime factorization.

Hint

Min exponents for gcd, max for lcm.

Show solutionHide solution

Solution

GCD. 22⋅32=4⋅9=362^2\cdot3^2=4\cdot9=36.

LCM. 24⋅33⋅5⋅7=16⋅27⋅35=151202^4\cdot3^3\cdot5\cdot7=16\cdot27\cdot35=15120.

Check. gcd⁡⋅lcm⁡=36⋅15120=544320\gcd\cdot\operatorname{lcm}=36\cdot15120=544320, ab=720⋅756=544320ab=720\cdot756=544320. ✓

Conclusion. gcd⁡=36\gcd=36, lcm⁡=15120\operatorname{lcm}=15120.