Questions: The Euclidean Algorithm

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

A student tries to find gcd(252, 105) by listing all divisors of each number and finding the largest match. The Euclidean algorithm finds the same answer far more efficiently because:

AThe Euclidean algorithm uses prime factorization, which is faster than enumerating divisors
BThe Euclidean algorithm only works when one number divides the other evenly
CThe Euclidean algorithm avoids factoring entirely by repeatedly replacing gcd(a, b) with gcd(b, a mod b), reducing problem size in O(log n) steps
DThe Euclidean algorithm is only more efficient for numbers larger than one million
Question 2 Multiple Choice

After running the Euclidean algorithm on two coprime inputs a and b (gcd = 1), what does the extended Euclidean algorithm additionally produce, and why is this output critical in RSA cryptography?

AThe prime factorizations of a and b, needed to construct the RSA public key
BIntegers x and y satisfying ax + by = 1, which gives a modular inverse of a mod b — used to compute the RSA private key from the public exponent
CThe least common multiple of a and b, needed to verify RSA signatures
DThe binary representation of gcd(a, b), enabling efficient modular exponentiation
Question 3 True / False

The Euclidean algorithm terminates when the remainder equals 1, because 1 is a divisor of most integers and therefore the GCD of any two numbers is at least 1.

TTrue
FFalse
Question 4 True / False

The Euclidean algorithm can compute gcd(a, b) without ever determining the prime factorizations of a or b.

TTrue
FFalse
Question 5 Short Answer

Explain why the identity gcd(a, b) = gcd(b, a mod b) is true — why does replacing a with its remainder after division by b not change the GCD?

Think about your answer, then reveal below.