Enter an equation or problem
Camera input is not recognized!

Solution - Number theory calculator

Solution

gcd(9865,100000000)=5
gcd(9865,100000000)=5

Other Ways to Solve

Number theory calculator

Step-by-step explanation

1. Identify the problem

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

gcd(9865,100000000)

2. Apply the Euclidean algorithm

9865 = 100000000*0 + 9865

100000000 = 9865*10136 + 8360

9865 = 8360*1 + 1505

8360 = 1505*5 + 835

1505 = 835*1 + 670

835 = 670*1 + 165

670 = 165*4 + 10

165 = 10*16 + 5

10 = 5*2 + 0

gcd(9865,100000000)=5

3. Back-substitute to find coefficients

gcd(9865,100000000) = 5.

Bezout coefficients: 9865*(-9700963) + 100000000*(957) = 5.

9865⋅(−9700963)+100000000⋅(957)=5

4. Verify the result

9865*(-9700963) + 100000000*(957) = 5 = 5. Verified.

Why learn this

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

Terms and topics