해결방법 - 정수론 계산기
단계별 설명
1. Identify the problem
Find gcd(31415926536,10000000000) using the Extended Euclidean Algorithm.
2. Apply the Euclidean algorithm
31415926536 = 10000000000*3 + 1415926536
10000000000 = 1415926536*7 + 88514248
1415926536 = 88514248*15 + 88212816
88514248 = 88212816*1 + 301432
88212816 = 301432*292 + 194672
301432 = 194672*1 + 106760
194672 = 106760*1 + 87912
106760 = 87912*1 + 18848
87912 = 18848*4 + 12520
18848 = 12520*1 + 6328
12520 = 6328*1 + 6192
6328 = 6192*1 + 136
6192 = 136*45 + 72
136 = 72*1 + 64
72 = 64*1 + 8
64 = 8*8 + 0
3. Back-substitute to find coefficients
gcd(31415926536,10000000000) = 8.
Bezout coefficients: 31415926536*(146965153) + 10000000000*(-461704645) = 8.
4. Verify the result
31415926536*(146965153) + 10000000000*(-461704645) = 8 = 8. Verified.
왜 이 것을 배워야하나요
타이거와 함께 더 배우기
Number theory underlies cryptography, coding theory, and many competitive programming problems.