Soluție - Calculator de teoria numerelor
Explicații pas cu pas
1. Identify the problem
Find gcd(973866,10000000) using the Extended Euclidean Algorithm.
2. Apply the Euclidean algorithm
973866 = 10000000*0 + 973866
10000000 = 973866*10 + 261340
973866 = 261340*3 + 189846
261340 = 189846*1 + 71494
189846 = 71494*2 + 46858
71494 = 46858*1 + 24636
46858 = 24636*1 + 22222
24636 = 22222*1 + 2414
22222 = 2414*9 + 496
2414 = 496*4 + 430
496 = 430*1 + 66
430 = 66*6 + 34
66 = 34*1 + 32
34 = 32*1 + 2
32 = 2*16 + 0
3. Back-substitute to find coefficients
gcd(973866,10000000) = 2.
Bezout coefficients: 973866*(-302403) + 10000000*(29450) = 2.
4. Verify the result
973866*(-302403) + 10000000*(29450) = 2 = 2. Verified.
De ce să învăț asta
Învață mai mult cu Tiger
Number theory underlies cryptography, coding theory, and many competitive programming problems.