On the Trail

Set 7

0 of 5 solvedLoading account progress…Your progress

Euclidean Speed

The Extended Euclidean Algorithm gives a quick way to calculate the greatest common divisor between two numbers: given two whole numbers xx and yy with x>yx > y, GCD(xx, yy) = GCD(yy, xx%yy). Here, % represents the modulus operator, which computes the remainder after the first number is divided by the second number. As in, 12%8 = 4 and 26%2 = 0.

For example, to calculate the GCD of 212 and 583, you would do 3 steps:

GCD(212, 583) = GCD(212, 159) = GCD(159, 53) = GCD(53, 0)

At this point, the GCD of anything and 0 is itself, and so the answer is 53.

Suppose that you start with two whole numbers xx and yy, and it takes you 10 steps to get a 0. What is the minimum possible sum of x+yx+y?

Type a concept, like “slope” or “photosynthesis”.

↑ ↓ to choose · Enter to openSearch explanations and problems