Introduceți o ecuație sau problemă
Inputul camerei nu este recunoscut!

Soluție - Calculator de teoria numerelor

Soluție

gcd(4002,100000000)=2
gcd(4002,100000000)=2

Alte moduri de a rezolva

Calculator de teoria numerelor

Explicații pas cu pas

1. Identify the problem

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

gcd(4002,100000000)

2. Apply the Euclidean algorithm

4002 = 100000000*0 + 4002

100000000 = 4002*24987 + 2026

4002 = 2026*1 + 1976

2026 = 1976*1 + 50

1976 = 50*39 + 26

50 = 26*1 + 24

26 = 24*1 + 2

24 = 2*12 + 0

gcd(4002,100000000)=2

3. Back-substitute to find coefficients

gcd(4002,100000000) = 2.

Bezout coefficients: 4002*(3998001) + 100000000*(-160) = 2.

4002⋅(3998001)+100000000⋅(−160)=2

4. Verify the result

4002*(3998001) + 100000000*(-160) = 2 = 2. Verified.

De ce să învăț asta

Învață mai mult cu Tiger
Number theory underlies cryptography, coding theory, and many competitive programming problems.

Termeni și teme

Ultimele exerciții conexe soluționate