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

Iterated GCD

#gcd#iteration#associativity

Statement

Compute gcd⁡(24,36,60,84)\gcd(24,36,60,84).

Hint

Compute pairwise: gcd⁡(24,36)=12\gcd(24,36)=12, then gcd⁡(12,60)=12\gcd(12,60)=12, then gcd⁡(12,84)=12\gcd(12,84)=12.

Show solutionHide solution

Solution

Iterate.
- gcd⁡(24,36)=12\gcd(24,36)=12
- gcd⁡(12,60)=12\gcd(12,60)=12
- gcd⁡(12,84)=12\gcd(12,84)=12

Conclusion. gcd⁡=12\gcd=12.

Prime factorization check. 24=23⋅324=2^3\cdot3, 36=22⋅3236=2^2\cdot3^2, 60=22⋅3⋅560=2^2\cdot3\cdot5, 84=22⋅3⋅784=2^2\cdot3\cdot7. Common part: 22⋅3=122^2\cdot3=12. ✓