Skip to content
math

Lucas Sequence Calculator

Generate the first N Lucas numbers — a Fibonacci-like sequence that starts 2, 1, 3, 4, 7, 11, …

First 10 Lucas numbers
2, 1, 3, 4, 7, 11, 18, 29, 47, 76
Each term is the sum of the two before it (like Fibonacci but starting 2, 1). Term 10 = 76.

How it works

  1. 1Enter how many terms you want (1–40) and the sequence is computed immediately.
  2. 2The Lucas sequence starts with L₁ = 2 and L₂ = 1; every subsequent term is the sum of the two preceding it: Lₙ = Lₙ₋₁ + Lₙ₋₂.
  3. 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 φ.

See all →