Maths WorkshopMaths problems with full solutions
Exercise 371Number theory › Divisibility and gcdHigh schoolAdded 2 Nov 2026

divisibility of three numbers

#divisibility#three numbers#prime factorization

Statement

Compute \divisibility(540,468,396)\divisibility(540,468,396).

Hint

Compute \divisibility(540,468)\divisibility(540,468) first, then take the divisibility with 396396. Alternatively, use prime factorizations.

Show solutionHide solution

Solution

Prime factorizations.
540=22⋅33⋅5,468=22⋅32⋅13,396=22⋅32⋅11.540=2^2\cdot3^3\cdot5,\qquad 468=2^2\cdot3^2\cdot13,\qquad 396=2^2\cdot3^2\cdot11.

divisibility. Take the smallest exponent of each common prime:
\divisibility=22⋅32=4⋅9=36.\divisibility=2^2\cdot3^2=4\cdot9=36.

Remark. This is the maximum number of identical bags one can form with 540540 red, 468468 green, and 396396 yellow candies.