On this page
Tribonacci numbers take the Fibonacci rule and add one more term: instead of the last two numbers, you add the last three. That one change gives a new constant, a neat counting result and a family of related sequences.
What are tribonacci numbers?
The tribonacci numbers follow the rule a(n) = a(n−1) + a(n−2) + a(n−3), starting from a(0) = 0, a(1) = 0 and a(2) = 1, as defined in OEIS entry A000073. That gives 0, 0, 1, 1, 2, 4, 7, 13, 24, 44, 81, 149, 274, 504 and so on. Check one term yourself: 7 + 13 + 24 = 44.
The same entry notes that the name is less well defined than "Fibonacci": sequences with other starting values have also been called tribonacci. So read a question's first terms before you calculate.
The name came from a school student. According to OEIS A000073, the term was coined in 1963 by Mark Feinberg, a 14-year-old ninth-grader in Pennsylvania, who wrote the note Fibonacci-Tribonacci in The Fibonacci Quarterly.
What is the tribonacci constant?
Divide each term by the one before it: 13/7 ≈ 1.857, 24/13 ≈ 1.846, 44/24 ≈ 1.833, 81/44 ≈ 1.841, 149/81 ≈ 1.840. The ratios swing above and below one value and settle on it quickly.
The tribonacci constant is the real root of x³ = x² + x + 1, about 1.839286755, and it is the limit of the ratio of consecutive tribonacci numbers, according to OEIS A058265. The same entry gives an exact form: t = (1 + ∛(19 + 3√33) + ∛(19 − 3√33)) / 3.
Why that cubic? Suppose the terms grow roughly like xⁿ when n is large. Put xⁿ into the rule: xⁿ = xⁿ⁻¹ + xⁿ⁻² + xⁿ⁻³. Divide both sides by xⁿ⁻³ and you get x³ = x² + x + 1. The cubic's other two roots are a complex pair, about −0.420 ± 0.606i (OEIS A058265), whose size is less than 1. Their share of each term shrinks, so the real root takes over.
How many ways can you climb stairs taking 1, 2 or 3 steps?
Tribonacci numbers count compositions: OEIS A000073 states that a(n) is the number of ways to write n−2 as an ordered sum of parts no bigger than 3. Its example is a(5) = 4, because 3 can be written as 1+1+1, 1+2, 2+1 and 3.
A staircase is the same problem. Here is a worked example for a staircase of 10 steps, where each move climbs 1, 2 or 3 steps. Let W(n) be the number of ways to climb n steps. Your last move was 1, 2 or 3 steps, so W(n) = W(n−1) + W(n−2) + W(n−3). By hand, W(1) = 1, W(2) = 2 (1+1 or 2) and W(3) = 4 (1+1+1, 1+2, 2+1, 3). Then:
W(4) = 4 + 2 + 1 = 7, which you can list: 1111, 112, 121, 211, 22, 13, 31
W(5) = 7 + 4 + 2 = 13
W(6) = 24, then W(7) = 44, W(8) = 81, W(9) = 149
W(10) = 149 + 81 + 44 = 274
So there are 274 ways, and in general W(n) = a(n+2).
What are n-bonacci numbers?
Add the previous k terms instead of three and you get the k-step Fibonacci numbers, often called n-bonacci. With k = 4, the tetranacci numbers run 0, 0, 0, 1, 1, 2, 4, 8, 15, 29, 56, 108 (OEIS A000078).
The limiting ratios climb with k. Wolfram MathWorld's page on Fibonacci n-step numbers lists them as 1.61803 for Fibonacci, 1.83929 for tribonacci, 1.92756 for tetranacci and 1.96595 for k = 5, approaching 2 as k grows.
The tetranacci list shows why 2 is the ceiling. While the window still covers every earlier term, each new term doubles: 1, 1, 2, 4, 8. Once old terms drop out (15, not 16), growth falls just short of doubling. On the staircase, moves of up to k steps give the k-bonacci numbers.
How do you set up a recurrence for a counting problem?
The staircase method works for many JEE-style counting questions:
Name the count, such as W(n), and say in words what n is.
Split every arrangement by its last move or last block.
Write the rule as a sum over those cases.
Find the first few values by listing, not by formula.
Check one more value by listing it fully.
Build a table upwards instead of hunting for a closed form.
If the split in step two is where you get stuck, the Fermi Problem Library has worked problems with a step-by-step solver that explains the reasoning rather than printing an answer. For the background on sequences and recurrences, the Fermi Concept Library gives each concept its own lesson and its place in the map.
To go further, see where the Fibonacci numbers hide in Pascal's triangle, Zeckendorf's theorem on writing every number as a sum of Fibonacci numbers, and JEE Main numerical questions on permutations and combinations to practise counting.



