Rozwiązanie - Kalkulator teorii liczb
Krok po kroku wyjaśnienie
1. Identify the problem
Find gcd(4806,10000000) using the Extended Euclidean Algorithm.
2. Apply the Euclidean algorithm
4806 = 10000000*0 + 4806
10000000 = 4806*2080 + 3520
4806 = 3520*1 + 1286
3520 = 1286*2 + 948
1286 = 948*1 + 338
948 = 338*2 + 272
338 = 272*1 + 66
272 = 66*4 + 8
66 = 8*8 + 2
8 = 2*4 + 0
3. Back-substitute to find coefficients
gcd(4806,10000000) = 2.
Bezout coefficients: 4806*(1213067) + 10000000*(-583) = 2.
4. Verify the result
4806*(1213067) + 10000000*(-583) = 2 = 2. Verified.
Dlaczego uczyć się tego
Dowiedz się więcej z Tiger
Number theory underlies cryptography, coding theory, and many competitive programming problems.