login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A294049 Number of binary strings of length n avoiding substrings 1000, 1011, 1101, or 1111. 1
1, 2, 4, 8, 12, 18, 27, 41, 61, 88, 129, 189, 276, 401, 582, 848, 1233, 1791, 2601, 3779, 5492, 7976, 11584, 16826, 24441, 35500, 51558, 74885, 108767, 157976, 229445, 333247, 484017, 702994, 1021035, 1482962, 2153874, 3128318, 4543603, 6599180, 9584730 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
LINKS
FORMULA
G.f.: (x+1)*(x^5+x^4-x^3-x^2-1)/((x-1)*(x^7+x^6-x^5-x^4-x^3-x^2+1)).
MAPLE
a:= n-> (Matrix(8, (i, j)-> `if`(i+1=j, 1, `if`(i=8,
[1, 0, -2, 0$3, 1$2][j], 0)))^n. <<1, 2, 4, 8, 12, 18, 27, 41>>)[1$2]:
seq(a(n), n=0..45);
MATHEMATICA
LinearRecurrence[{1, 1, 0, 0, 0, -2, 0, 1}, {1, 2, 4, 8, 12, 18, 27, 41}, 40] (* Jean-François Alcover, Nov 02 2021 *)
CROSSREFS
Sequence in context: A224814 A224810 A074633 * A006500 A134181 A171645
KEYWORD
nonn,easy
AUTHOR
Alois P. Heinz, Oct 22 2017
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 18 07:55 EDT 2024. Contains 371769 sequences. (Running on oeis4.)