This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
%I A269916 #23 Mar 15 2025 09:18:16 %S A269916 1,5,21,81,296,1043,3585,12095,40221,132225,430633,1391623,4467689, %T A269916 14262766,45311977,143343279,451768405,1419092951,4444424613, %U A269916 13882255419,43256925753,134492621659,417322590000,1292554593007,3996626787973,12338508959035,38037021764053 %N A269916 Number of ternary strings of length n with maximal run length four containing 11112. %H A269916 Math StackExchange, <a href="http://math.stackexchange.com/questions/1685843">Words built with 0,1,2</a> %H A269916 Marko Riedel, <a href="/A269916/a269916.maple.txt">Maple code by total enumeration and by generating function.</a> %H A269916 <a href="/index/Rec#order_12">Index entries for linear recurrences with constant coefficients</a>, signature (3,3,-1,-9,-25,-39,-45,-43,-32,-18,-8,-2). %F A269916 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)). %t A269916 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 *) %Y A269916 Cf. A081038, A269914, A269915, A269917. %K A269916 nonn %O A269916 5,2 %A A269916 _Marko Riedel_, Mar 07 2016