Tetranacci Number Calculator
Find the Tetranacci number at any index by adding the four previous terms, with growth shown.
What it does
The Tetranacci sequence extends the recurrence one step further than Tribonacci. It begins with three zeros and a one, and each later term is the sum of the four terms immediately before it. The early values 1, 2, 4, 8, 15 and 29 show how the sequence doubles for a while before the four term rule settles into its long term rate.
The name follows the same pattern as Tribonacci and Fibonacci. These numbers count certain strings where no four consecutive positions share a chosen property, and they are a standard example of a linear recurrence with constant coefficients.
The characteristic polynomial is x to the fourth minus x cubed minus x squared minus x minus one, whose largest real root is about 1.928. That root controls the ratio of consecutive terms once the initial transient fades.
This page walks forward from the four seeds, keeping only the last four values at each step. It reports the term at your index, the one before it and their ratio, all with exact integer arithmetic for the terms themselves.
The index limit is 200. The result stays readable while still being far beyond anything a person would compute by hand.
How to use
- Enter an index n from 0 to 200.
- Read the Tetranacci term in the main result box.
- Check the previous term and the growth beside it.
- The default index 10 reproduces the worked example.
- Try index 11 to confirm the value 108.
- Compare with Tribonacci to see how the ratio changes with the order.
Formula
- n
- The index in the sequence, starting at zero.
- a(n)
- The Tetranacci number at that index.
- a(n - 1) ... a(n - 4)
- The four prior terms that are added.
The recurrence needs four starting values, so the first nonzero term appears at index 3. The characteristic polynomial has one dominant real root near 1.928 and three roots of smaller magnitude, which explains the eventual steady growth ratio.
Worked example
Example: index 10
The page opens with n = 10.
- Start from 0, 0, 0 and 1 at indices 0 through 3.
- Compute a(4) = 1 + 0 + 0 + 0 = 1.
- Compute a(5) = 1 + 1 + 0 + 0 = 2.
- Continue with a(6) = 4, a(7) = 8 and a(8) = 15.
- Compute a(9) = 15 + 8 + 4 + 2 = 29.
- Compute a(10) = 29 + 15 + 8 + 4 = 56.
- The tool reports 56, previous term 29, and growth 1.93x.
Reference table
| n | a(n) | Previous | Growth |
|---|---|---|---|
| 3 | 1 | 0 | n/a |
| 4 | 1 | 1 | 1.00x |
| 5 | 2 | 1 | 2.00x |
| 8 | 15 | 8 | 1.88x |
| 10 | 56 | 29 | 1.93x |
| 11 | 108 | 56 | 1.93x |
Limits
- Indices above 200 are rejected to keep the output short.
- The growth column is rounded to two decimals.
- Only one index is evaluated at a time.
- Different seed values define a different sequence.
Common mistakes
- Adding three terms instead of four.
- Placing the initial one at index 4 rather than index 3.
- Expecting the doubling pattern to continue forever.
- Assuming the growth ratio reaches two exactly.
- Rounding intermediate values when checking by hand.
Try it yourself
Quick checks. Answers sit tucked under each question.
What is a(10)?
a(10) = 29 + 15 + 8 + 4 = 56.
What is a(11)?
a(11) = 56 + 29 + 15 + 8 = 108.
What is a(4)?
a(4) = 1 + 0 + 0 + 0 = 1.
Questions
What is the Tetranacci sequence?
A sequence where each term is the sum of the four preceding terms, seeded with three zeros and a one.
What is the limiting ratio?
About 1.928, the largest root of the fourth degree characteristic polynomial.
Why does it start with three zeros?
Four starting values are required, and this convention puts the first one at index 3.
Is every term an integer?
Yes. The recurrence uses addition only.
How is it related to Tribonacci?
Tribonacci adds three terms, while Tetranacci adds four, so the growth is faster.
What is the largest index accepted?
Two hundred.