Solution

ID: past-exam-of-the-year-1-of-the-computer-science-course-of-the-university-of-oxford/2015/discrete-mathematics-continuous-mathematics-and-probability/3/d/iii/solution

The second coordinate after two iterations satisfies
whenever those two divisions are needed, by the same remainder bound, now applied to . Let . If the Euclidean algorithm has not already stopped after iterations, then its positive second coordinate is at most : for ,
For the original is already . A second coordinate of requires just one more division. Consequently
This removes dependence on the potentially much larger input . It improves the scale to one involving only the smaller input; the rounded numerical bound need not be smaller for every pair. One may always take the minimum of the bounds in (ii) and (iii).

New to topics? Read the docs here!