GRE
Exam
Numerical Ability
Number System
The Euclidean algorithm is used to find the greatest common divisor (gcd) of two positive integers a and b .
input(a)
input(b)
while b>0
begin
r := a mod b
a := b
b := r
end
gcd := a
output(gcd)
When the algorithm is used to find the greatest common divisor of a = 273 and b = 110, which of the
following is the sequence of computed values for r ?
(A) 2, 26, 1, 0
(B) 2, 53, 1, 0
(C) 53, 2, 1, 0
(D) 53, 4, 1, 0
(E) 53, 5, 1, 0
Read Solution (Total 0)
GRE Other Question