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