5 questions to test your understanding
Why does gcd(a, b) = gcd(b, a mod b)? What justifies this reduction step?
If gcd(a, n) = 3, does a have a multiplicative inverse modulo n?
The extended Euclidean algorithm computes not just gcd(a, b) but also integers x and y such that ax + by = gcd(a, b). Its primary practical application is computing multiplicative inverses modulo n.
A naive algorithm for gcd(a, b) lists most divisors of both numbers and finds the largest shared one. The Euclidean algorithm is faster primarily because it checks fewer divisor pairs.
Using the Euclidean algorithm, compute gcd(91, 35). Show your steps.