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 A015555 #44 Mar 14 2025 17:04:01 %S A015555 0,1,7,51,371,2699,19635,142843,1039171,7559883,54997523,400102427, %T A015555 2910712035,21175189099,154047747763,1120684612539,8152887783299, %U A015555 59311583708171,431486861523795,3139031198082907,22836192109627939 %N A015555 Expansion of x/(1 - 7*x - 2*x^2). %C A015555 For n>0, a(n) equals the number of words of length n-1 over {0,1,...,8} in which 0 and 1 avoid runs of odd lengths. - _Milan Janjic_, Jan 08 2017 %H A015555 Vincenzo Librandi, <a href="/A015555/b015555.txt">Table of n, a(n) for n = 0..1000</a> %H A015555 <a href="/index/Rec#order_02">Index entries for linear recurrences with constant coefficients</a>, signature (7,2). %F A015555 a(n) = 7*a(n-1) + 2*a(n-2). %F A015555 E.g.f.: (exp(x*(7 + sqrt(57))/2) - exp(x*(7 - sqrt(57))/2))/sqrt(57). - _Iain Fox_, Dec 30 2017 %t A015555 Join[{a=0,b=1},Table[c=7*b+2*a;a=b;b=c,{n,100}]] (* _Vladimir Joseph Stephan Orlovsky_, Jan 17 2011 *) %t A015555 LinearRecurrence[{7, 2}, {0, 1}, 30] (* _Vincenzo Librandi_ Nov 13 2012 *) %t A015555 CoefficientList[Series[x/(1-7x-2x^2),{x,0,20}],x] (* _Harvey P. Dale_, Mar 14 2025 *) %o A015555 (Sage) [lucas_number1(n,7,-2) for n in range(0, 21)] # _Zerinvary Lajos_, Apr 24 2009 %o A015555 (Magma) [n le 2 select n-1 else 7*Self(n-1) + 2*Self(n-2): n in [1..30]]; // _Vincenzo Librandi_, Nov 13 2012 %o A015555 (PARI) x='x+O('x^30); concat([0], Vec(x/(1-7*x-2*x^2))) \\ _G. C. Greubel_, Dec 30 2017 %K A015555 nonn,easy %O A015555 0,3 %A A015555 _Olivier Gérard_