Generate Lucas Numbers
Generate customizable sequences of Lucas numbers using high-precision math.
What is the Lucas Sequence?
The Lucas sequence is an integer sequence named after the mathematician Édouard Lucas, who studied both this sequence and the closely related Fibonacci sequence. Like the Fibonacci numbers, each Lucas number is defined as the sum of its two immediate predecessors. However, the Lucas sequence starts with different initial values:
$$L_0 = 2,\quad L_1 = 1$$ $$L_n = L_{n-1} + L_{n-2} \quad \text{for } n \ge 2$$
The first few terms of the classic Lucas sequence are: $$2, 1, 3, 4, 7, 11, 18, 29, 47, 76, 123, 199, 322, 521, 843, 1364, 2207, 3571, \dots$$
Relationship to the Fibonacci Sequence
Although they start with different values, the Fibonacci sequence ($F_n$) and the Lucas sequence ($L_n$) are deeply connected. They satisfy many beautiful algebraic identities:
- Sum Relation: Any Lucas number can be written as the sum of two Fibonacci numbers: $$L_n = F_{n-1} + F_{n+1} \quad \text{for } n \ge 1$$
- Fibonacci Doubling: The product of Fibonacci and Lucas numbers yields another Fibonacci number: $$F_{2n} = F_n L_n$$
- Golden Ratio Limit: Just like Fibonacci numbers, the ratio of successive Lucas numbers approaches the Golden Ratio ($\phi \approx 1.6180339887$): $$\lim_{n \to \infty} \frac{L_{n+1}}{L_n} = \phi$$
How to Use This Generator
This high-precision tool allows you to generate and customize the Lucas sequence instantly:
- Select the Generation Mode: Choose "First N Numbers" to get the beginning of the sequence, or "Indices Range" to generate numbers within a specific index band (e.g. index 50 to 100).
- Customize the Starting Values: By default, the tool uses classic Lucas values $L_0 = 2$ and $L_1 = 1$. You can input custom integers to explore generalized sequences.
- Choose a Number Format: Convert results to Decimal (Base 10), Hexadecimal (Base 16), Octal (Base 8), or Binary (Base 2).
- Customize formatting options, such as separating results with newlines, commas, or spaces, and toggling index prefix labels.
- Use the quick buttons in the output panel to copy the sequence to your clipboard or download it as a text file.
Frequently Asked Questions
What is the difference between Fibonacci and Lucas numbers?
Both sequences use the exact same additive recurrence relation where each term is the sum of the previous two ($x_n = x_{n-1} + x_{n-2}$). The only difference is their starting terms: the Fibonacci sequence starts with $F_0 = 0$ and $F_1 = 1$, whereas the Lucas sequence starts with $L_0 = 2$ and $L_1 = 1$.
How fast do Lucas numbers grow?
Lucas numbers grow exponentially at the exact same rate as Fibonacci numbers, scaling by the Golden Ratio ($\approx 1.618$) with each step. For example, while $L_5$ is only $11$, $L_{50}$ has 11 digits ($48120585024$), and $L_{500}$ has over 100 digits!
What are generalized starting values?
By changing the default starter terms $L(0)$ and $L(1)$ in the settings panel, you can generate any Generalized Fibonacci sequence (also known as a Gibonacci sequence). The tool will use your custom values for the first two terms and apply the same addition rule for all subsequent terms.
Related tools
Your recent visits