Řešení - Kalkulačka teorie čísel
Vysvětlení krok za krokem
1. Identify the problem
Find gcd(8754,100000000) using the Extended Euclidean Algorithm.
2. Apply the Euclidean algorithm
8754 = 100000000*0 + 8754
100000000 = 8754*11423 + 3058
8754 = 3058*2 + 2638
3058 = 2638*1 + 420
2638 = 420*6 + 118
420 = 118*3 + 66
118 = 66*1 + 52
66 = 52*1 + 14
52 = 14*3 + 10
14 = 10*1 + 4
10 = 4*2 + 2
4 = 2*2 + 0
3. Back-substitute to find coefficients
gcd(8754,100000000) = 2.
Bezout coefficients: 8754*(21190313) + 100000000*(-1855) = 2.
4. Verify the result
8754*(21190313) + 100000000*(-1855) = 2 = 2. Verified.
Proč se to učit
Dozvědět se více s Tigerem
Number theory underlies cryptography, coding theory, and many competitive programming problems.