|
|
A164389
|
|
Number of binary strings of length n with no substrings equal to 0000 or 0101.
|
|
1
|
|
|
1, 2, 4, 8, 14, 25, 45, 81, 145, 260, 467, 838, 1503, 2697, 4840, 8684, 15581, 27958, 50166, 90012, 161509, 289799, 519989, 933019, 1674126, 3003903, 5389930, 9671201, 17353133, 31136896, 55869228, 100246695, 179873620, 322748972, 579111590, 1039105525
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,2
|
|
LINKS
|
|
|
FORMULA
|
G.f.: -(x+1)*(x^2+1)^2/(x^4+2*x^3+x-1). - R. J. Mathar, Dec 01 2011
|
|
MATHEMATICA
|
LinearRecurrence[{1, 0, 2, 1}, {1, 2, 4, 8, 14, 25}, 50] (* G. C. Greubel, Sep 18 2017; amended for offset 0 by Georg Fischer, Apr 02 2019 *)
|
|
PROG
|
(PARI) x='x+O('x^50); Vec(((x+1)*(x^2+1)^2)/(1-x-2*x^3-x^4)) \\ G. C. Greubel, Sep 18 2017; amended for offset 0 by Georg Fischer, Apr 02 2019
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,easy
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|