解答 - 整数論計算機
手順を追って説明
1. Identify the problem
Find gcd(914,10000000) using the Extended Euclidean Algorithm.
2. Apply the Euclidean algorithm
914 = 10000000*0 + 914
10000000 = 914*10940 + 840
914 = 840*1 + 74
840 = 74*11 + 26
74 = 26*2 + 22
26 = 22*1 + 4
22 = 4*5 + 2
4 = 2*2 + 0
3. Back-substitute to find coefficients
gcd(914,10000000) = 2.
Bezout coefficients: 914*(2297593) + 10000000*(-210) = 2.
4. Verify the result
914*(2297593) + 10000000*(-210) = 2 = 2. Verified.
なぜこれを学ぶのか
Tigerでさらに学ぶ
Number theory underlies cryptography, coding theory, and many competitive programming problems.