Enter an equation or problem
Camera input is not recognized!

Solution - Number theory calculator

Solution

gcd(2178,10000000)=2
gcd(2178,10000000)=2

Other Ways to Solve

Number theory calculator

Step-by-step explanation

1. Identify the problem

Find gcd(2178,10000000) using the Extended Euclidean Algorithm.

gcd(2178,10000000)

2. Apply the Euclidean algorithm

2178 = 10000000*0 + 2178

10000000 = 2178*4591 + 802

2178 = 802*2 + 574

802 = 574*1 + 228

574 = 228*2 + 118

228 = 118*1 + 110

118 = 110*1 + 8

110 = 8*13 + 6

8 = 6*1 + 2

6 = 2*3 + 0

gcd(2178,10000000)=2

3. Back-substitute to find coefficients

gcd(2178,10000000) = 2.

Bezout coefficients: 2178*(1271809) + 10000000*(-277) = 2.

2178⋅(1271809)+10000000⋅(−277)=2

4. Verify the result

2178*(1271809) + 10000000*(-277) = 2 = 2. Verified.

Why learn this

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

Terms and topics