j
k
j a
j l
When you have g, s and t, which are claimed to satisfy
g = gcd(a, b) = s * a + t * b
then a sufficient test (besides the range checks) would be that
g == s*a + t * b a % g == 0 b % g == 0
Then it follows that g = gcd(a, b);
Back to the thread
Back to the list