Solution - Calculateur de théorie des nombres
Explication étape par étape
1. Identify the problem
Find gcd(7849782,100000000) using the Extended Euclidean Algorithm.
2. Apply the Euclidean algorithm
7849782 = 100000000*0 + 7849782
100000000 = 7849782*12 + 5802616
7849782 = 5802616*1 + 2047166
5802616 = 2047166*2 + 1708284
2047166 = 1708284*1 + 338882
1708284 = 338882*5 + 13874
338882 = 13874*24 + 5906
13874 = 5906*2 + 2062
5906 = 2062*2 + 1782
2062 = 1782*1 + 280
1782 = 280*6 + 102
280 = 102*2 + 76
102 = 76*1 + 26
76 = 26*2 + 24
26 = 24*1 + 2
24 = 2*12 + 0
3. Back-substitute to find coefficients
gcd(7849782,100000000) = 2.
Bezout coefficients: 7849782*(3928211) + 100000000*(-308356) = 2.
4. Verify the result
7849782*(3928211) + 100000000*(-308356) = 2 = 2. Verified.
Cette explication a-t-elle été utile ?
Comment nous en sommes-nous sortis ?
Laisse-nous un commentairePourquoi apprendre cela
Apprendre plus avec Tiger
Number theory underlies cryptography, coding theory, and many competitive programming problems.