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 =

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!