Build any recurrence with order, coefficients, and initials. Find T(n) instantly, plus a neat table. Download results, then share calculations in class or projects.
Example: Fibonacci recurrence (k=2, a1=1, a2=1, c=0, T0=0, T1=1).
| n | T(n) |
|---|---|
| 0 | 0 |
| 1 | 1 |
| 2 | 1 |
| 3 | 2 |
| 4 | 3 |
| 5 | 5 |
| 6 | 8 |
| 7 | 13 |
This calculator evaluates a linear recurrence of order k: T(n) = a1·T(n−1) + a2·T(n−2) + … + ak·T(n−k) + c.
It starts from the given initial terms T(0)…T(k−1) and iterates forward to compute any requested T(n). For k=1 and k=2 homogeneous cases, it also shows standard closed-form notes.
It supports linear recurrences with constant coefficients, up to order six, plus an optional constant term. You can model Fibonacci-like sequences, growth/decay sequences, and many classroom examples.
Order k means each new term uses the previous k terms. For k=1 you use one previous term; for k=2 you use two, and so on. You must enter k initial values.
The constant term shifts each step by a fixed amount. When c=0, the recurrence is homogeneous. When c≠0, it is non-homogeneous, which commonly appears in “plus a fixed cost” processes.
It always computes numeric values by iteration. For first-order and second-order homogeneous cases, it also shows standard closed-form patterns and approximate constants to help you verify work.
Very large n can be slow in a browser-hosted environment. A cap keeps the calculator responsive. If you need larger ranges, export CSV and compute further values in a math tool.
Yes. Coefficients and initial terms accept decimals and negatives. This is useful for alternating sequences, damped systems, or modeling with weighted averages. Rounding control helps format outputs.
After a successful calculation, the page stores the latest table in your session. The download buttons then generate a CSV file or a simple one-page PDF summarizing the recurrence and values.
Large coefficients or fast-growing recurrences may exceed floating precision and show Infinity or NaN. Reduce n, scale inputs, or use big-number libraries for exact integer arithmetic when required.
Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.