OFFSET
1,2
COMMENTS
a(n) is the number of bit strings of length n+3 with the pattern 01 at least twice, and without the pattern 110, see example. - John M. Campbell, Jan 25 2013
LINKS
Paolo Xausa, Table of n, a(n) for n = 1..1000
FORMULA
a(n) = Fibonacci(n+6) - 4*n - 8. - Ralf Stephan, Feb 15 2004
EXAMPLE
From John M. Campbell, Jan 25 2013: (Start)
There are a(3) = 14 bit strings of length 3+3 with the pattern 01 at least twice, and without the pattern 110:
000101, 001001, 001010, 001011, 010001, 010010, 010011,
010100, 010101, 010111, 100101, 101001, 101010, 101011
(End)
MATHEMATICA
A023652[n_] := Fibonacci[n + 6] - 4*n - 8;
Array[A023652, 50] (* Paolo Xausa, Sep 19 2025 *)
PROG
(PARI) a(n) = fibonacci(n+6) - 4*n - 8; \\ Michel Marcus, Sep 19 2025
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved
