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/ii/solution

Count the final division producing zero as an iteration, and let the total be . The terminal product alone gives no useful bound. Instead apply (i) to each nonterminal product, which is a positive integer and hence at least .
If , the penultimate product satisfies
As is an integer, this implies
For , the same bound holds since implies . In particular the Euclidean algorithm uses divisions, in big O notation. The convention that includes the final zero-producing division explains the one-step offset in the argument.

New to topics? Read the docs here!