Soluzione - Calcolatore di teoria dei numeri
Spiegazione passo passo
1. Identify the problem
Find gcd(4002,100000000) using the Extended Euclidean Algorithm.
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
3. Back-substitute to find coefficients
gcd(4002,100000000) = 2.
Bezout coefficients: 4002*(3998001) + 100000000*(-160) = 2.
4. Verify the result
4002*(3998001) + 100000000*(-160) = 2 = 2. Verified.
Perché imparare questo
Impara di più con Tiger
Number theory underlies cryptography, coding theory, and many competitive programming problems.