The GCD of given numbers is 42.
Step 1 :
Divide by and get the remainder
The remainder is positive (), so we will continue with division.
Step 2 :
Divide by and get the remainder
The remainder is still positive (), so we will continue with division.
Step 3 :
Divide by and get the remainder
The remainder is still positive (), so we will continue with division.
Step 4 :
Divide by and get the remainder
The remainder is still positive (), so we will continue with division.
Step 5 :
Divide by and get the remainder
The remainder is still positive (), so we will continue with division.
Step 6 :
Divide by and get the remainder
The remainder is still positive (), so we will continue with division.
Step 7 :
Divide by and get the remainder
The remainder is still positive (), so we will continue with division.
Step 8 :
Divide by and get the remainder
The remainder is zero => GCD is the last divisor .
We can summarize an algorithm into a following table.
35742 | : | 13566 | = | 2 | remainder ( 8610 ) | ||||||||||||||
13566 | : | 8610 | = | 1 | remainder ( 4956 ) | ||||||||||||||
8610 | : | 4956 | = | 1 | remainder ( 3654 ) | ||||||||||||||
4956 | : | 3654 | = | 1 | remainder ( 1302 ) | ||||||||||||||
3654 | : | 1302 | = | 2 | remainder ( 1050 ) | ||||||||||||||
1302 | : | 1050 | = | 1 | remainder ( 252 ) | ||||||||||||||
1050 | : | 252 | = | 4 | remainder ( 42 ) | ||||||||||||||
252 | : | 42 | = | 6 | remainder ( 0 ) | ||||||||||||||
GCD = 42 |
This solution can be visualized using a Venn diagram.
The GCD equals the product of the numbers at the intersection.