Enter an equation or problem
Camera input is not recognized!

Solution - Number theory calculator

Solution

gcd(7849782,100000000)=2
gcd(7849782,100000000)=2

Other Ways to Solve

Number theory calculator

Step-by-step explanation

1. Identify the problem

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

gcd(7849782,100000000)

2. Apply the Euclidean algorithm

7849782 = 100000000*0 + 7849782

100000000 = 7849782*12 + 5802616

7849782 = 5802616*1 + 2047166

5802616 = 2047166*2 + 1708284

2047166 = 1708284*1 + 338882

1708284 = 338882*5 + 13874

338882 = 13874*24 + 5906

13874 = 5906*2 + 2062

5906 = 2062*2 + 1782

2062 = 1782*1 + 280

1782 = 280*6 + 102

280 = 102*2 + 76

102 = 76*1 + 26

76 = 26*2 + 24

26 = 24*1 + 2

24 = 2*12 + 0

gcd(7849782,100000000)=2

3. Back-substitute to find coefficients

gcd(7849782,100000000) = 2.

Bezout coefficients: 7849782*(3928211) + 100000000*(-308356) = 2.

7849782⋅(3928211)+100000000⋅(−308356)=2

4. Verify the result

7849782*(3928211) + 100000000*(-308356) = 2 = 2. Verified.

Why learn this

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

Terms and topics