Question: def ged(a,b): u = 1 g = a x = 0 y = b while y != 0: q = math.floor(g/y) t = g %


def ged(a,b): u = 1 g = a x = 0 y = b while y != 0: q = math.floor(g/y) t = g % y 8 = q* y ut 5 = U - 9 * X u, g = x, y X, y = S, t. V = (g - a * u) / b return(g, u, v) It is often useful to have a solution with u > 0. Modify your program so that it returns a solution with u > 0 and u as small as possible. (Hint. If (u, v) is a solution, then so is (u + b/g, v a/9)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
