Consider one iteration with and . If , then . If , the quotient is , so . In either case , whenceRepeated application, or mathematical induction, provesThis 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 satisfiesAs is an integer, this impliesFor , 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 satisfieswhenever 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. ConsequentlyThis 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
There are currently no matching articles.