### Generating Fibonacci numbers

The Fibonacci numbers F_{1},F_{2},... are defined by F_{1}=1=F_{2} and F_{m}=F_{m-1}+F_{m-2} for m ≥ 3.

F_{m}=(α^{m}-β^{m})/√5, where α=(1+√5)/2 and β=(1-√5)/2.

If m and n are positive integers, m ≤ n, not greater than 10000, the Fibonacci numbers F_{m},...,F_{n} are printed.

*Last modified 30th April 2012*

Return to main page