◀ back to index
Question
Find Greatest Common Divisor of 123456789 and 987654321, using prime factorization.
Answer
The GCD of given numbers is 9.
Explanation
Step 1 : Find prime factorization of each number.
123456789=987654321=3⋅3⋅3607⋅38033⋅3⋅17⋅17⋅379721(view steps on how to factor 123456789 and 987654321. )
Step 2 : Put a box around factors that are common for all numbers:
123456789=987654321=3⋅3⋅3607⋅38033⋅3⋅17⋅17⋅379721Step 3 : Multiply the boxed numbers together:
GCD=3⋅3=9
This solution can be visualized using a Venn diagram.
0,0
123456789
987654321
3
3
3607
3803
17
17
379721
The GCD equals the product of the numbers at the intersection.
This page was created using
GCD Calculator