Free Online Utility • MATH Studio • Exact BigInt Engine

Generate Lucas Numbers

Generate exact BigInt Lucas numbers (OEIS A000032: 2, 1, 3, 4, 7, 11, 18, 29, 47, ...) with Golden Ratio convergence, custom start index, sum total, and JSON/TXT export.

Formula & Quick Reference Live Engine
L(0) = 2,  L(1) = 1,  L(n) = L(n-1) + L(n-2)
Closed Form: L(n) = φⁿ + (1 - φ)ⁿ   where φ = (1 + √5) / 2
Identity:    L(n) = F(n - 1) + F(n + 1)
02
11
511
OEIS A000032 • Companion to Fibonacci
Lucas Number Sequence

        
Arbitrary-precision BigInt arithmetic (zero overflow) Exact

Session Calculation Log

No entries recorded in this session yet.

Complete Technical Guide to Generate Lucas Numbers

Named after French mathematician François Édouard Anatole Lucas, the Lucas sequence (OEIS A000032) obeys the exact same recurrence as the Fibonacci numbers—L(n) = L(n-1) + L(n-2)—but begins with seeds L(0) = 2 and L(1) = 1 instead of 0 and 1.

Remarkably, for every n >= 1, L(n) equals the nearest integer to φ^n (where φ = (1+√5)/2 ≈ 1.6180339887), and L(n) = F(n-1) + F(n+1) links Lucas and Fibonacci numbers directly.

Lucas Recurrence & Closed Form

L(0) = 2,  L(1) = 1,  L(n) = L(n-1) + L(n-2)
Closed Form: L(n) = φⁿ + (1 - φ)ⁿ   where φ = (1 + √5) / 2
Identity:    L(n) = F(n - 1) + F(n + 1)

Because |1 − φ| ≈ 0.618 < 1, the second term vanishes rapidly so φ^n is extraordinarily close to the exact integer L(n).

How to Use Generate Lucas Numbers

  1. 1Set Start Index and Term Count (up to 500).
  2. 2Toggle index labels L(n) = value if needed.
  3. 3Copy, export JSON, or download as TXT.

Reference Examples & Worked Benchmarks

nL(n)F(n)L(n) = F(n-1)+F(n+1)
020—
1110 + 1
51153 + 8
101235534 + 89

Practical Applications & Engineering Workflows

Primality Testing

Lucas pseudoprimes and the Baillie–PSW primality test rely directly on Lucas sequences.

Number Theory Identities

Verify F(2n) = F(n)·L(n) and L(n)² − 5·F(n)² = 4·(−1)^n interactively.

Accuracy, Edge Cases & Best Practices

  • Exact BigInt arithmetic computes L(1000) cleanly with 209 exact digits.

All calculations execute locally inside your browser using JavaScript with zero server round-trips, guaranteeing instant responsiveness and complete data privacy.

Frequently Asked Questions

What are the first 10 Lucas numbers?
2, 1, 3, 4, 7, 11, 18, 29, 47, 76 (starting at index n = 0).
How are Lucas numbers related to Fibonacci numbers?
Every Lucas number satisfies L(n) = F(n−1) + F(n+1), and the product F(n)·L(n) always equals F(2n).