OFFSET
0,8
COMMENTS
For n>=1, a(n) is the number of binary strings of length n-1 which are devoid of runs of ones of length <=5. For example, there are a(8)=4 binary strings of length 7 devoid of runs of length <=5: 0000000, 0111111, 1111110, and 1111111. - Félix Balado, Sep 09 2025
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
Richard Austin and Richard K. Guy, Binary sequences without isolated ones, Fib. Quart., 16 (1978), 84-86.
Félix Balado and Guénolé C. M. Silvestre, Systematic Enumeration of Fundamental Quantities Involving Runs in Binary Strings, arXiv:2602.10005 [math.CO], 2026. See p. 24.
V. C. Harris and Carolyn C. Styles, A generalization of Fibonacci numbers, Fib. Quart. 2 (1964) 277-289, sequence u(n,5,2).
Index entries for linear recurrences with constant coefficients, signature (2,-1,0,0,0,0,1).
FORMULA
G.f.: (1-x)/(1-2*x+x^2-x^7).
MATHEMATICA
CoefficientList[Series[(1-x)/(1-2*x+x^2-x^7), {x, 0, 50}], x] (* G. C. Greubel, Feb 03 2018 *)
PROG
(PARI) a(n) = sum(k=0, n\7, binomial(n-5*k, 2*k)); \\ Michel Marcus, Sep 06 2017
(PARI) my(x='x+O('x^50)); Vec((1-x)/(1-2*x+x^2-x^7)) \\ G. C. Greubel, Feb 03 2018
(Magma) Q:=Rationals(); R<x>:=PowerSeriesRing(Q, 40); Coefficients(R!((1-x)/(1-2*x+x^2-x^7))); // G. C. Greubel, Feb 03 2018
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Paul Barry, Sep 16 2004
STATUS
approved
