Hexanacci Number

DOWNLOAD Mathematica Notebook

The hexanacci numbers are a generalization of the Fibonacci numbers defined by H_0=0, H_1=1, H_2=1, H_3=2, H_4=4, H_5=8, and the recurrence relation

 H_n=H_(n-1)+H_(n-2)+H_(n-3)+H_(n-4)+H_(n-5)+H_(n-6)
(1)

for n>=6. They represent the n=6 case of the Fibonacci n-step numbers.

The first few terms for n=1, 2, ... are 1, 1, 2, 4, 8, 16, 32, 63, 125, 248, ... (OEIS A001592).

An exact formula for the nth hexanacci number can be given explicitly in terms of the six roots x_i of

 P(x)=x^6-x^5-x^4-x^3-x^2-x-1
(2)

as

 H_n=sum_(i=1)^6(x_i^n)/(-x_i^5+x_i^3+2x_i^2+10x_i-1).
(3)

The ratio of adjacent terms tends to the positive root of P(x), namely 1.98358284342... (OEIS A118427), sometimes called the hexanacci constant.

Wolfram Web Resources

Mathematica »

The #1 tool for creating Demonstrations and anything technical.

Wolfram|Alpha »

Explore anything with the first computational knowledge engine.

Wolfram Demonstrations Project »

Explore thousands of free applications across science, mathematics, engineering, technology, business, art, finance, social sciences, and more.

Computerbasedmath.org »

Join the initiative for modernizing math education.

Online Integral Calculator »

Solve integrals with Wolfram|Alpha.

Step-by-step Solutions »

Walk through homework problems step-by-step from beginning to end. Hints help you try the next step on your own.

Wolfram Problem Generator »

Unlimited random practice problems and answers with built-in Step-by-step solutions. Practice online or make a printable study sheet.

Wolfram Education Portal »

Collection of teaching and learning tools built by Wolfram education experts: dynamic textbook, lesson plans, widgets, interactive Demonstrations, and more.

Wolfram Language »

Knowledge-based programming for everyone.