Complete Technical Guide to Generate Tetranacci Numbers
Tetranacci numbers (OEIS A000078) generalize the Fibonacci and Tribonacci recurrences to order four: starting from 0, 0, 0, 1, every subsequent term equals the sum of the four immediately preceding terms (0, 0, 0, 1, 1, 2, 4, 8, 15, 29, 56, 108, 208, 401, ...).
Using native JavaScript BigInt arithmetic, this generator computes up to 500 consecutive Tetranacci terms with 100% exact decimal digits, tracks convergence toward the Tetranacci constant (~1.927562), and supports custom 4-term starting seeds.
Tetranacci Recurrence & Characteristic Polynomial
T(0) = 0, T(1) = 0, T(2) = 0, T(3) = 1 T(n) = T(n-1) + T(n-2) + T(n-3) + T(n-4) for n >= 4 Characteristic equation: x⁴ - x³ - x² - x - 1 = 0 => Tetranacci Constant ≈ 1.927561975482925
Notice how the first four non-zero terms double cleanly (1, 2, 4, 8) before the zero seed falls outside the 4-term window at T(8) = 1 + 2 + 4 + 8 = 15.
How to Use Generate Tetranacci Numbers
- 1Set the desired Number of Terms (1–500) or click a preset.
- 2Keep the standard OEIS seed (0, 0, 0, 1) or type any custom 4 integers.
- 3Choose your delimiter (Comma, New Line, Space, Semicolon) or export JSON/TXT.
Reference Examples & Worked Benchmarks
| Index n | T(n) | Sum of Prior 4 |
|---|---|---|
| 3 | 1 | Seed |
| 7 | 8 | 1 + 1 + 2 + 4 |
| 8 | 15 | 1 + 2 + 4 + 8 |
| 9 | 29 | 2 + 4 + 8 + 15 |
| 10 | 56 | 4 + 8 + 15 + 29 |
Practical Applications & Engineering Workflows
Combinatorics & Tiling
T(n+3) counts the exact number of ways to tile a 1×n strip with tiles of length 1, 2, 3, or 4 (and binary strings with no four consecutive 1s).
Algorithm & BigInt Benchmarks
Test arbitrary-precision recurrence implementations cleanly against exact OEIS A000078 terms.
Accuracy, Edge Cases & Best Practices
- JavaScript Number loses precision past 2^53 (~16 digits); our BigInt engine stays exact even at T(500) (142 digits).
All calculations execute locally inside your browser using JavaScript with zero server round-trips, guaranteeing instant responsiveness and complete data privacy.