Navigation

HomeImage ToolsCode ToolsMath ToolsDate ToolsGeneratorsUtilities
Color ToolsText ToolsPDF Tools

Linear Recurrence Calculator

Compute terms of any linear recurrence relation. Define coefficients and initial values.

What Is a Linear Recurrence?

Punch in your coefficients and initial values, then watch the sequence roll out — Fibonacci, Lucas, Tribonacci, Pell, or whatever custom recurrence you cook up. Integer runs use BigInt, so terms past 100 digits stay exact instead of rounding to garbage. And everything runs in your browser. Nothing gets uploaded.

FAQ

How do I define the recurrence?

Enter the coefficients c₁, c₂, ..., cₖ as a comma-separated list. The relation will be a(n) = c₁·a(n-1) + c₂·a(n-2) + ... + cₖ·a(n-k). Provide exactly k initial values.

Can I use negative or fractional coefficients?

Yes. Any real number coefficients are supported. Results may be non-integer if coefficients or initial values are fractional.

What is the maximum number of terms?

You can generate up to 1000 terms. The calculation uses BigInt for integer sequences to maintain exact precision.

What if my initial values don't match the coefficient count?

The number of initial values must equal the number of coefficients (the order of the recurrence). The tool will alert you if they don't match.

Related Tools