OFFSET
0,5
LINKS
Colin Barker, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (2,1,-1,-2,-1).
FORMULA
G.f.: (x^3*(1 + x + x^2))/((1 - x - x^2)*(1 - x - x^2 - x^3)).
a(n) = 2*a(n-1) + a(n-2) - a(n-3) - 2*a(n-4) - a(n-5) for n>5. - Colin Barker, Nov 22 2019
EXAMPLE
There are a(6) = 18 such binary words:
01: 001110
02: 001111
03: 010111
04: 011100
05: 011101
06: 011110
07: 011111
08: 100111
09: 101110
10: 101111
11: 110111
12: 111001
13: 111010
14: 111011
15: 111100
16: 111101
17: 111110
18: 111111
MATHEMATICA
nn=30; CoefficientList[Series[(x^3+x^4+x^5)/(1-2x-x^2+x^3+2x^4+x^5), {x, 0, nn}], x]
PROG
(PARI) concat([0, 0, 0], Vec(x^3*(1 + x + x^2) / ((1 - x - x^2)*(1 - x - x^2 - x^3)) + O(x^40))) \\ Colin Barker, Nov 22 2019
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Geoffrey Critzer, Mar 08 2014
STATUS
approved