Questions: The Euclidean Algorithm and Greatest Common Divisor

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

Why does gcd(a, b) = gcd(b, a mod b)? What justifies this reduction step?

ABecause dividing a by b produces the same quotient as dividing a mod b by b
BBecause every common divisor of a and b also divides a mod b, and vice versa — so the set of common divisors is identical
CBecause the Euclidean algorithm defines gcd this way, without deeper mathematical justification
DBecause a mod b is always smaller than b, which guarantees the algorithm terminates
Question 2 Multiple Choice

If gcd(a, n) = 3, does a have a multiplicative inverse modulo n?

AYes — any nonzero number has a multiplicative inverse modulo any n
BNo — a multiplicative inverse of a modulo n exists only when gcd(a, n) = 1
CYes — because 3 divides both a and n, they share structure that enables an inverse
DNo — but only because n must be composite in this case
Question 3 True / False

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.

TTrue
FFalse
Question 4 True / False

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.

TTrue
FFalse
Question 5 Short Answer

Using the Euclidean algorithm, compute gcd(91, 35). Show your steps.

Think about your answer, then reveal below.