The GCD of given numbers is 10.
Step 1 :
Divide $ 15790 $ by $ 10790 $ and get the remainder
The remainder is positive ($ 5000 > 0 $), so we will continue with division.
Step 2 :
Divide $ 10790 $ by $ \color{blue}{ 5000 } $ and get the remainder
The remainder is still positive ($ 790 > 0 $), so we will continue with division.
Step 3 :
Divide $ 5000 $ by $ \color{blue}{ 790 } $ and get the remainder
The remainder is still positive ($ 260 > 0 $), so we will continue with division.
Step 4 :
Divide $ 790 $ by $ \color{blue}{ 260 } $ and get the remainder
The remainder is still positive ($ 10 > 0 $), so we will continue with division.
Step 5 :
Divide $ 260 $ by $ \color{blue}{ 10 } $ and get the remainder
The remainder is zero => GCD is the last divisor $ \color{blue}{ \boxed { 10 }} $.
We can summarize an algorithm into a following table.
| 15790 | : | 10790 | = | 1 | remainder ( 5000 ) | ||||||||
| 10790 | : | 5000 | = | 2 | remainder ( 790 ) | ||||||||
| 5000 | : | 790 | = | 6 | remainder ( 260 ) | ||||||||
| 790 | : | 260 | = | 3 | remainder ( 10 ) | ||||||||
| 260 | : | 10 | = | 26 | remainder ( 0 ) | ||||||||
| GCD = 10 | |||||||||||||
This solution can be visualized using a Venn diagram.
The GCD equals the product of the numbers at the intersection.