Enter an equation or problem
Camera input is not recognized!

Solution - Number theory calculator

Solution

gcd(39189282,10000)=2
gcd(39189282,10000)=2

Other Ways to Solve

Number theory calculator

Step-by-step explanation

1. Identify the problem

Find gcd(39189282,10000) using the Extended Euclidean Algorithm.

gcd(39189282,10000)

2. Apply the Euclidean algorithm

39189282 = 10000*3918 + 9282

10000 = 9282*1 + 718

9282 = 718*12 + 666

718 = 666*1 + 52

666 = 52*12 + 42

52 = 42*1 + 10

42 = 10*4 + 2

10 = 2*5 + 0

gcd(39189282,10000)=2

3. Back-substitute to find coefficients

gcd(39189282,10000) = 2.

Bezout coefficients: 39189282*(961) + 10000*(-3766090) = 2.

39189282⋅(961)+10000⋅(−3766090)=2

4. Verify the result

39189282*(961) + 10000*(-3766090) = 2 = 2. Verified.

Why learn this

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

Terms and topics