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!)
A269916 Number of ternary strings of length n with maximal run length four containing 11112. 6
1, 5, 21, 81, 296, 1043, 3585, 12095, 40221, 132225, 430633, 1391623, 4467689, 14262766, 45311977, 143343279, 451768405, 1419092951, 4444424613, 13882255419, 43256925753, 134492621659, 417322590000, 1292554593007, 3996626787973, 12338508959035, 38037021764053 (list; graph; refs; listen; history; text; internal format)
OFFSET
5,2
LINKS
Math StackExchange, Words built with 0,1,2
FORMULA
G.f.: x^5*(x+1)*(x^2+1)*(x^4+x^3+x^2+x+1) / ((x^8+3*x^7+5*x^6+7*x^5 +7*x^4+5*x^3+3*x^2+x-1) * (2*x^4+2*x^3+2*x^2+2*x-1)).
MATHEMATICA
Drop[CoefficientList[Series[x^5 (x + 1) (x^2 + 1) (x^4 + x^3 + x^2 + x + 1)/((x^8 + 3 x^7 + 5 x^6 + 7 x^5 + 7 x^4 + 5 x^3 + 3 x^2 + x - 1) (2 x^4 + 2 x^3 + 2 x^2 + 2 x - 1)), {x, 0, 31}], x], 5] (* Michael De Vlieger, Mar 08 2016 *)
CROSSREFS
Sequence in context: A269915 A273393 A231430 * A273205 A269917 A081038
KEYWORD
nonn
AUTHOR
Marko Riedel, Mar 07 2016
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 25 10:39 EDT 2024. Contains 371967 sequences. (Running on oeis4.)