Consider one iteration with and . If , then . If , the quotient is , so . In either case , whence
Repeated application, or mathematical induction, proves
This also holds for the final iteration, whose left side is zero. For zero iterations the correct relation is equality , rather than a strict inequality.
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.
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).

Articles by others on the same topic (0)

There are currently no matching articles.