login
A206454
Number of 0..7 arrays of length n avoiding the consecutive pattern 0..7.
1
8, 64, 512, 4096, 32768, 262144, 2097152, 16777215, 134217712, 1073741632, 8589932544, 68719456256, 549755617280, 4398044676096, 35184355311616, 281474825715713, 2251798471507992, 18014386698322304, 144115084996645888, 1152920611253710848, 9223364340274069504
OFFSET
1,1
COMMENTS
Column 7 of A206455.
FORMULA
a(n) = 8*a(n-1) - a(n-8).
a(n) = Sum_{i=0..floor(n/8)} (-1)^i*8^(n-8*i)*binomial(n-7*i,i).
G.f.: x*(8 - x^7) / (1 - 8*x + x^8). - Colin Barker, Jun 16 2018
MATHEMATICA
Table[Sum[(-1)^i*8^(n-8*i)*Binomial[n-7*i, i], {i, 0, Floor[n/8]}], {n, 20}] (* Stefano Spezia, Feb 12 2023 *)
CROSSREFS
Cf. A206455.
Sequence in context: A250360 A190130 A125908 * A001018 A097682 A050738
KEYWORD
nonn,easy
AUTHOR
R. H. Hardin, Feb 07 2012
STATUS
approved