Enter an equation or problem
Camera input is not recognized!

Solution - Number theory calculator

Solution

gcd(314159265,1000000)=5
gcd(314159265,1000000)=5

Other Ways to Solve

Number theory calculator

Step-by-step explanation

1. Identify the problem

Find gcd(314159265,1000000) using the Extended Euclidean Algorithm.

gcd(314159265,1000000)

2. Apply the Euclidean algorithm

314159265 = 1000000*314 + 159265

1000000 = 159265*6 + 44410

159265 = 44410*3 + 26035

44410 = 26035*1 + 18375

26035 = 18375*1 + 7660

18375 = 7660*2 + 3055

7660 = 3055*2 + 1550

3055 = 1550*1 + 1505

1550 = 1505*1 + 45

1505 = 45*33 + 20

45 = 20*2 + 5

20 = 5*4 + 0

gcd(314159265,1000000)=5

3. Back-substitute to find coefficients

gcd(314159265,1000000) = 5.

Bezout coefficients: 314159265*(44517) + 1000000*(-13985428) = 5.

314159265⋅(44517)+1000000⋅(−13985428)=5

4. Verify the result

314159265*(44517) + 1000000*(-13985428) = 5 = 5. Verified.

Why learn this

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

Terms and topics