Solution - Number theory calculator
Step-by-step explanation
1. Identify the problem
Find gcd(87000000,100000000) using the Extended Euclidean Algorithm.
2. Apply the Euclidean algorithm
87000000 = 100000000*0 + 87000000
100000000 = 87000000*1 + 13000000
87000000 = 13000000*6 + 9000000
13000000 = 9000000*1 + 4000000
9000000 = 4000000*2 + 1000000
4000000 = 1000000*4 + 0
3. Back-substitute to find coefficients
gcd(87000000,100000000) = 1000000.
Bezout coefficients: 87000000*(23) + 100000000*(-20) = 1000000.
4. Verify the result
87000000*(23) + 100000000*(-20) = 1000000 = 1000000. Verified.
Why learn this
Learn more with Tiger
Number theory underlies cryptography, coding theory, and many competitive programming problems.