Solution - Number theory calculator
Step-by-step explanation
1. Identify the problem
Find gcd(125014192,10000) using the Extended Euclidean Algorithm.
2. Apply the Euclidean algorithm
125014192 = 10000*12501 + 4192
10000 = 4192*2 + 1616
4192 = 1616*2 + 960
1616 = 960*1 + 656
960 = 656*1 + 304
656 = 304*2 + 48
304 = 48*6 + 16
48 = 16*3 + 0
3. Back-substitute to find coefficients
gcd(125014192,10000) = 16.
Bezout coefficients: 125014192*(198) + 10000*(-2475281) = 16.
4. Verify the result
125014192*(198) + 10000*(-2475281) = 16 = 16. Verified.
Why learn this
Learn more with Tiger
Number theory underlies cryptography, coding theory, and many competitive programming problems.