### Generating Lucas numbers

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

L_{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 Lucas numbers L_{m},...,L_{n} are printed.

*Last modified 3rd January 2012*

Return to main page