Entrez une équation ou un problème
L’entrée caméra n’est pas reconnue !

Solution - Calculateur de théorie des nombres

Solution

gcd(314159265;1000000)=5
gcd(314159265;1000000)=5

Autres façons de résoudre

Calculateur de théorie des nombres

Explication étape par étape

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.

Pourquoi apprendre cela

Apprendre plus avec Tiger
Number theory underlies cryptography, coding theory, and many competitive programming problems.

Termes et sujets