Free Online Utility • MATH Studio • Exact BigInt Engine

Generate Tetranacci Numbers

Generate exact arbitrary-precision Tetranacci numbers (OEIS A000078) where each term equals the sum of the preceding four terms, with custom seeds, ratio convergence, and JSON/CSV export.

Formula & Quick Reference Live Engine
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
31
78
815
OEIS A000078 • 4-Step Recurrence
Tetranacci Number Sequence

        
Arbitrary-precision BigInt arithmetic (zero overflow) Exact

Session Calculation Log

No entries recorded in this session yet.

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

  1. 1Set the desired Number of Terms (1–500) or click a preset.
  2. 2Keep the standard OEIS seed (0, 0, 0, 1) or type any custom 4 integers.
  3. 3Choose your delimiter (Comma, New Line, Space, Semicolon) or export JSON/TXT.

Reference Examples & Worked Benchmarks

Index nT(n)Sum of Prior 4
31Seed
781 + 1 + 2 + 4
8151 + 2 + 4 + 8
9292 + 4 + 8 + 15
10564 + 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.

Frequently Asked Questions

What are the first 12 Tetranacci numbers?
Starting with standard OEIS A000078 seeds: 0, 0, 0, 1, 1, 2, 4, 8, 15, 29, 56, 108.
What is the Tetranacci constant?
The ratio T(n)/T(n-1) converges to the unique real root of x⁴ − x³ − x² − x − 1 = 0, approximately 1.927561975482925.