next up previous
Next: About this document ... Up: Analyzing the efficiency of Previous: Fibonacci numbers and the

The Euclidean algorithm stops in $\hbox{$O\!\left(\log(N)\right)$}$ steps

Let Fn be the largest Fibonacci number less than or equal to N. By Proposition 1, we need to show that $n=\hbox{$O\!\left(\log N\right)$}$. We have  
 \begin{displaymath}
 n \log\tau=\log\tau^n\le\log F_n\le\log N
 \quad\hbox{$\Rig...
 ...row$}\quad n\le \log N/\log\tau=\hbox{$O\!\left(\log N\right)$}\end{displaymath} (4)
as required. Thus, the Euclidean algorithm stops in $\hbox{$O\!\left(\log N\right)$}$ steps as advertized!

David Hayes
2/4/1999