Lucas Number Calculator

L(n) = φⁿ + ψⁿ

CalculatorsFreeNo Signup
4.7(444 reviews)
All Tools

Loading tool...

About Lucas Number Calculator

A Lucas number calculator computing L(n) = L(n−1)+L(n−2) with L(0)=2, L(1)=1. Shows relationship to Fibonacci: L(n) = F(n−1)+F(n+1). Formula: L(n) = φⁿ+ψⁿ. Verifies identities. All calculations are client-side.

Lucas Number Calculator Features

  • L(n)
  • Fibonacci relation
  • Sequence
  • Formula
  • Identities
Lucas numbers: L(0)=2, L(1)=1, L(n)=L(n−1)+L(n−2). Formula: L(n) = φⁿ+ψⁿ. Relations: L(n) = F(n−1)+F(n+1), F(2n) = F(n)L(n), L(n)² = 5F(n)²+4(−1)ⁿ.

How to Use

Enter n:

  • n: Index
  • L(n): Lucas number
  • F(n): Corresponding Fibonacci

Identities

  • L(n) = F(n−1) + F(n+1)
  • L(n)² − 5F(n)² = 4(−1)ⁿ
  • F(m+n) = (F(m)L(n)+F(n)L(m))/2

Applications

  • Lucas primality test
  • Mersenne number testing
  • Fibonacci identities
  • Pell equations

Step-by-Step Instructions

  1. 1Enter n.
  2. 2Get L(n).
  3. 3View F(n) pair.
  4. 4Check identities.
  5. 5See sequence.

Lucas Number Calculator — Frequently Asked Questions

How are Lucas and Fibonacci related?+

L(n) = F(n−1)+F(n+1). Also F(2n) = F(n)·L(n). They satisfy the same recurrence with different initial conditions. Together they form a 'Lucas pair' that satisfies many beautiful polynomial identities.

What is the Lucas primality test?+

For Mersenne numbers Mₚ = 2ᵖ−1: define s₀=4, sₙ₊₁=sₙ²−2. Then Mₚ is prime iff sₚ₋₂ ≡ 0 (mod Mₚ). This Lucas-Lehmer test is the fastest known primality test for Mersenne numbers.

Why does L(n) = φⁿ+ψⁿ?+

While F(n) = (φⁿ−ψⁿ)/√5 (difference), L(n) = φⁿ+ψⁿ (sum). Since |ψ|<1, ψⁿ→0, so L(n) ≈ φⁿ for large n. The initial conditions L(0)=2=φ⁰+ψ⁰ and L(1)=1=φ+ψ confirm this.

Share this tool: