Lucas Sequence Calculator
Generate the first N Lucas numbers — a Fibonacci-like sequence that starts 2, 1, 3, 4, 7, 11, …
How it works
- 1Enter how many terms you want (1–40) and the sequence is computed immediately.
- 2The Lucas sequence starts with L₁ = 2 and L₂ = 1; every subsequent term is the sum of the two preceding it: Lₙ = Lₙ₋₁ + Lₙ₋₂.
- 3The result panel displays every term as a comma-separated list along with the value of the final term.
Use cases
- Students exploring number theory and the relationship between Lucas and Fibonacci sequences.
- Programmers verifying recursive or iterative Lucas-sequence implementations against a reference.
- Puzzle designers and recreational mathematicians who need Lucas numbers up to a given index.
Frequently asked questions
How does the Lucas sequence differ from Fibonacci?
Both follow the same recurrence Lₙ = Lₙ₋₁ + Lₙ₋₂, but use different starting values. Fibonacci begins 0, 1, while Lucas begins 2, 1, giving 2, 1, 3, 4, 7, 11, 18, …
Why does the calculator cap at 40 terms?
The 40th Lucas number is already over 1.6 × 10⁸, and higher terms quickly exceed JavaScript’s safe-integer range, making exact display unreliable.
Are Lucas numbers related to the golden ratio?
Yes — like Fibonacci numbers, successive Lucas numbers converge to the golden ratio φ ≈ 1.618. In fact Lₙ is the nearest integer to φⁿ, tying them closely to φ.
Related tools
See all →Calculate the area and perimeter of a rectangle from its width and height, with a labeled diagram.
Calculate the area and circumference of a circle from its radius, with a labeled diagram.
Calculate the area (Heron’s formula) and perimeter of a triangle from its three sides.
Calculate the area and perimeter of a trapezoid from its two parallel sides, height, and legs.