Skip to main content
OlympiadHQ

Browse · MATH

Print

jmc

number theory intermediate

Problem

Find the greatest common divisor of 9118, 12173, and 33182.
Solution
After identifying a factor of 2 in 9118 and 33,182, we find that the given integers appear to be difficult to prime factorize. Therefore, we turn to the Euclidean algorithm. To use the Euclidean algorithm to find the greatest common divisor of a set of three numbers, we first note that for integers , , and . One way to see this is to consider the prime factorization of , , and . Now we apply the Euclidean algorithm to the first pair of numbers to find We could continue to apply the Euclidean algorithm as usual, but instead we note that , since 9118 is not divisible by 5. We find since long division shows that 611 is divisible by 47. Note that we chose 15 as the number of 611's to subtract from 9118 by dividing 9118 by 611 and rounding up to the nearest integer. Finally, we verify that 33,182 is divisible by 47. Altogether, we have
Final answer
47