Lucas Number Calculator
Find the nth Lucas number.
Result
How it is calculated
The Lucas numbers follow the Fibonacci rule Ln = Ln−1 + Ln−2, but start from the seeds L0 = 2 and L1 = 1, giving 2, 1, 3, 4, 7, 11, 18, 29 and so on. The tool starts with the pair 2 and 1, adds the previous two terms until it reaches position n, and prints the last term as a whole number. The numbering is the standard one: n = 0 gives 2, n = 1 gives 1, n = 2 gives 3, n = 3 gives 4, n = 5 gives 11. The input must be a whole number from 0 to 90; negatives, decimals, 91 and above, and an empty box give nothing. The arithmetic is exact integer arithmetic, so even the largest result (n = 90, which is 6,440,026,026,380,244,498) is shown digit for digit; 90 is the limit because the next term no longer fits in a 64-bit integer.
Worked example
Find the 12th term. Starting from 2 and 1, the sums run: 3, 4, 7, 11, 18, 29, 47, 76, 123, 199, then 322. That is eleven additions after the first two terms, and the tool prints 322 for n = 12. Check with the identity Ln = Fn−1 + Fn+1: F11 = 89 and F13 = 233, and 89 + 233 = 322.
Common mistakes
- Counting positions from 1 when the sequence starts at index 0. L0 = 2 is the first number listed, so n = 1 gives 1 and n = 2 gives 3; the 5th number in the list 2, 1, 3, 4, 7 is L4, not L5.
- Confusing Lucas with Fibonacci. Both use the same addition rule, but Lucas starts at 2 and 1, so L12 = 322 while F12 = 144.
- Entering 0 and expecting nothing. Zero is a valid position and returns 2, the first seed.
- Asking for a position above 90 or a fractional position such as 2.5. The tool needs a whole number from 0 to 90 and shows no result otherwise.
- Expecting a rounded or approximate answer for large n. The value is exact; very large results simply have many digits, so copy the whole string.
About this calculator
The Lucas sequence is defined by the same recurrence rule as Fibonacci — each term is the sum of the two before it (Lₙ = Lₙ₋₁ + Lₙ₋₂) — but it starts from different seed values: 2 and 1 instead of 0 and 1, producing 2, 1, 3, 4, 7, 11, 18, 29... Named after mathematician Édouard Lucas, who used this sequence to study Fibonacci numbers and develop primality tests, it shares deep structural properties with Fibonacci, including the same limiting ratio between consecutive terms that converges to the golden ratio φ ≈ 1.618.
Lucas numbers appear throughout number theory: they're central to the Lucas-Lehmer primality test used to find Mersenne primes (the basis of the largest known prime number searches), they satisfy elegant identities linking them back to Fibonacci numbers (such as Lₙ = Fₙ₋₁ + Fₙ₊₁), and computer science students encounter them as a standard example for practicing both recursive and closed-form (Binet-like) algorithm design.
This calculator computes the nth term of the Lucas sequence directly, letting you skip the manual recurrence and get the exact value for any position n.
Was this helpful?
You can pick up to 3 reactions.
Popular calculators
Loan Calculator
Monthly payment, total interest and full amortization schedule.
Percentage Calculator
Percent change, percent of, and ratio calculations.
Discount Calculator
Calculate final price, savings, and discount amount.
BMI Calculator
Body mass index from height and weight (metric or imperial).
Age Calculator
Compute your exact age in years, months and days from a birth date.
Compound Interest Calculator
Calculate the final amount and interest earned with compounding.
All Calculators
No calculators found
Comments (0)