login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A066178 Number of binary bit strings of length n with no block of 8 or more 0's. Nonzero heptanacci numbers, A122189. 17
1, 1, 2, 4, 8, 16, 32, 64, 127, 253, 504, 1004, 2000, 3984, 7936, 15808, 31489, 62725, 124946, 248888, 495776, 987568, 1967200, 3918592, 7805695, 15548665, 30972384, 61695880, 122895984, 244804400, 487641600 (list; graph; refs; listen; history; internal format)
OFFSET

0,3

COMMENTS

Analogous bit string description and O.g.f. (1-x)/(1-2x+x^{k+1}) works for nonzero k-nacci numbers.

REFERENCES

Tony D. Noe and Jonathan Vos Post, Primes in Fibonacci n-step and Lucas n-step Sequences, Journal of Integer Sequences, Vol. 8 (2005), Article 05.4.4.

LINKS

T. D. Noe, Table of n, a(n) for n=0..200

Eric Weisstein's World of Mathematics, Fibonacci n-Step Number

Eric Weisstein's World of Mathematics, Heptanacci Number

Du, Zhao Hui, Link giving derivation and proof of the formula

FORMULA

O.g.f.: 1/(1-x-x^2-x^3-x^4-x^5-x^6-x^7); a(n)=sum(a(i), i=n-7..n-1).

a(n)=round({r-1}/{(t+1)r-2t} * r^{n-1}), where r is the heptanacci constant, the real root of the equation x^{t+1)-2x^t+1=0 which is greater than 1. The formula could also be used for a k-step Fibonacci sequence if r is replaced by the k-bonacci constant, as in A000045, A000073, A000078, A001591, A001592 - Du, Zhao Hui (zhao.hui.du(AT)gmail.com), Aug 24 2008

For a(0)=a(1)=1, a(2)=2, a(3)=4, a(4)=8, a(5)=16, a(6)=32, a(7)=64, a(n)=2*a(n-1)-a(n-8). [From Vincenzo Librandi, Dec 20 2010]

MATHEMATICA

a[0] = a[1] = 1; a[2] = 2; a[3] = 4; a[4] = 8; a[5] = 16; a[6] = 32; a[7] = 64; a[n_] := 2*a[n - 1] - a[n - 8]; Array[a, 31, 0]

CoefficientList[ Series[(1 - x)/(1 - 2 x + x^8), {x, 0, 30}], x]

CROSSREFS

Cf. A000045 (k=2, Fibonacci numbers), A000073 (k=3, tribonacci) A000078 (k=4, tetranacci) A001591 (k=5, pentanacci) A001592 (k=6, hexanacci), A122189 (k=7, heptanacci).

Row 7 of arrays A048887 and A092921 (k-generalized Fibonacci numbers).

Sequence in context: A062257 A172316 A062258 * A122189 A194630 A133024

Adjacent sequences:  A066175 A066176 A066177 * A066179 A066180 A066181

KEYWORD

nonn

AUTHOR

Len Smiley (smiley(AT)math.uaa.alaska.edu), Dec 14 2001

EXTENSIONS

Definition corrected by Vincenzo Librandi, Dec 20 2010

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 12 13:31 EST 2012. Contains 205412 sequences.