OFFSET
6,2
COMMENTS
a(n) is the number of binary strings of length n-2 that are devoid of runs of ones (i.e., maximal runs of ones) of length <= 4. - Félix Balado, Sep 09 2025
REFERENCES
R. K. Guy, ``Anyone for Twopins?,'' in D. A. Klarner, editor, The Mathematical Gardner. Prindle, Weber and Schmidt, Boston, 1981, pp. 2-15.
N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).
LINKS
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.
Richard K. Guy, Anyone for Twopins?, in D. A. Klarner, editor, The Mathematical Gardner. Prindle, Weber and Schmidt, Boston, 1981, pp. 2-15. [Annotated scanned copy, with permission]
V. C. Harris and Carolyn C. Styles, A generalization of Fibonacci numbers, Fib. Quart. 2 (1964) 277-289, sequence u(n,4,2).
Simon Plouffe, Approximations de séries génératrices et quelques conjectures, Dissertation, Université du Québec à Montréal, 1992; arXiv:0911.4975 [math.NT], 2009.
Simon Plouffe, 1031 Generating Functions, Appendix to Thesis, Montreal, 1992
Index entries for linear recurrences with constant coefficients, signature (2,-1,0,0,0,1).
FORMULA
G.f.: x^6*(1+x^2+x^3+x^4+x^5)/(1-2*x+x^2-x^6). - Ralf Stephan, Apr 20 2004
Sum{k=0..floor(n/6), binomial(n-4k, 2k)} is 1, 1, 1, 1, 1, 1, 2, 4, 7, 11, ... - Paul Barry, Sep 16 2004
MAPLE
A005689:=-(1+z**2+z**3+z**4+z**5)/(z**3+z-1)/(z**3-z+1); # Conjectured by Simon Plouffe in his 1992 dissertation.
MATHEMATICA
LinearRecurrence[{2, -1, 0, 0, 0, 1}, {1, 2, 4, 7, 11, 16}, 40] (* Harvey P. Dale, Feb 02 2019 *)
PROG
(Python)
from sympy import Matrix
def A005689(n):
A = Matrix([[2, -1]+[0]*3+[1]]+[[0]*i+[1]+[0]*(5-i) for i in range(5)])
return (A**(n-6)*Matrix([1]*6))[0] # Chai Wah Wu, Jun 11 2026
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved
