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!)
A269917 Number of ternary strings of length n with maximal run length five containing 111112. 6
1, 5, 21, 81, 297, 1052, 3635, 12333, 41255, 136449, 447147, 1454091, 4697983, 15094393, 48264551, 153678185, 487510286, 1541427097, 4859385039, 15278735029, 47923821239, 149992151725, 468512665975, 1460770946689, 4546890238683, 14131055304241, 43854326838403 (list; graph; refs; listen; history; text; internal format)
OFFSET
6,2
LINKS
FORMULA
G.f.: x^6*(x+1)*(x^2+x+1)*(x^2-x+1)*(x^4+x^3+x^2+x+1) / ((2*x^5+2*x^4 +2*x^3 +2*x^2+2*x-1) * (x^10+3*x^9+5*x^8+7*x^7+9*x^6+9*x^5 +7*x^4 +5*x^3 +3*x^2+x-1)).
MATHEMATICA
Drop[CoefficientList[Series[x^6 (x + 1) (x^2 + x + 1) (x^2 - x + 1) (x^4 + x^3 + x^2 + x + 1)/((2 x^5 + 2 x^4 + 2 x^3 + 2 x^2 + 2 x - 1) (x^10 + 3 x^9 + 5 x^8 + 7 x^7 + 9 x^6 + 9 x^5 + 7 x^4 + 5 x^3 + 3 x^2 + x - 1)), {x, 0, 32}], x], 6] (* Michael De Vlieger, Mar 08 2016 *)
CROSSREFS
Sequence in context: A231430 A269916 A273205 * A081038 A273389 A153008
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 19 19:02 EDT 2024. Contains 371798 sequences. (Running on oeis4.)