Enter an equation or problem
Camera input is not recognized!

Solution - Number theory calculator

Solution

gcd(2212182,100000000)=2
gcd(2212182,100000000)=2

Other Ways to Solve

Number theory calculator

Step-by-step explanation

1. Identify the problem

Find gcd(2212182,100000000) using the Extended Euclidean Algorithm.

gcd(2212182,100000000)

2. Apply the Euclidean algorithm

2212182 = 100000000*0 + 2212182

100000000 = 2212182*45 + 451810

2212182 = 451810*4 + 404942

451810 = 404942*1 + 46868

404942 = 46868*8 + 29998

46868 = 29998*1 + 16870

29998 = 16870*1 + 13128

16870 = 13128*1 + 3742

13128 = 3742*3 + 1902

3742 = 1902*1 + 1840

1902 = 1840*1 + 62

1840 = 62*29 + 42

62 = 42*1 + 20

42 = 20*2 + 2

20 = 2*10 + 0

gcd(2212182,100000000)=2

3. Back-substitute to find coefficients

gcd(2212182,100000000) = 2.

Bezout coefficients: 2212182*(-4836989) + 100000000*(107003) = 2.

2212182⋅(−4836989)+100000000⋅(107003)=2

4. Verify the result

2212182*(-4836989) + 100000000*(107003) = 2 = 2. Verified.

Why learn this

Learn more with Tiger
Number theory underlies cryptography, coding theory, and many competitive programming problems.

Terms and topics