Řešení - Kalkulačka teorie čísel
Vysvětlení krok za krokem
1. Identify the problem
Find gcd(368701352,10000) using the Extended Euclidean Algorithm.
2. Apply the Euclidean algorithm
368701352 = 10000*36870 + 1352
10000 = 1352*7 + 536
1352 = 536*2 + 280
536 = 280*1 + 256
280 = 256*1 + 24
256 = 24*10 + 16
24 = 16*1 + 8
16 = 8*2 + 0
3. Back-substitute to find coefficients
gcd(368701352,10000) = 8.
Bezout coefficients: 368701352*(429) + 10000*(-15817288) = 8.
4. Verify the result
368701352*(429) + 10000*(-15817288) = 8 = 8. 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.