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 A246313 #24 Nov 10 2024 14:46:49 %S A246313 -1,3,7,27,95,339,1207,4299,15311,54531,194215,691707,2463551,8774067, %T A246313 31249303,111296043,396386735,1411752291,5028030343,17907595611, %U A246313 63778847519,227151733779,809012896375,2881342156683,10262052262799,36548841101763,130170627830887,463609565696187,1651169952750335 %N A246313 G.f.: (-1+6*x)/(1-3*x-2*x^2). %C A246313 Encountered during the analysis of a certain cellular automaton. %H A246313 Vincenzo Librandi, <a href="/A246313/b246313.txt">Table of n, a(n) for n = 0..1000</a> %H A246313 <a href="/index/Rec#order_02">Index entries for linear recurrences with constant coefficients</a>, signature (3,2). %F A246313 a(n) = 3*a(n-1) + 2*a(n-2) with a(0)=-1, a(1)=3. %F A246313 a(n) = -(17+9*sqrt(17))/34*(3/2-sqrt(17)/2)^n+(-17+9*sqrt(17))/34*(3/2+sqrt(17)/2)^n. For n >= 3, a(n) = round((-17+9*sqrt(17))/34*(3/2+sqrt(17)/2)^n). - _Robert Israel_, Aug 27 2014 %F A246313 a(n) = 6*A007482(n-1)+A007482(n). - _R. J. Mathar_, Feb 27 2019 %p A246313 a:= LRETools[REtoproc](a(n)=3*a(n-1)+2*a(n-2),a(n),{a(0)=-1,a(1)=3}): %p A246313 seq(a(i),i=0..100); # _Robert Israel_, Aug 27 2014 %t A246313 CoefficientList[Series[(6 x - 1)/(1 - 3 x - 2 x^2), {x, 0, 30}], x] (* _Vincenzo Librandi_, Aug 27 2014 *) %o A246313 (Magma) I:=[-1,3]; [n le 2 select I[n] else 3*Self(n-1)+2*Self(n-2): n in [1..30]]; // _Vincenzo Librandi_, Aug 27 2014 %o A246313 (PARI) Vec((-1+6*x)/(1-3*x-2*x^2)+O(x^99)) \\ _Charles R Greathouse IV_, Sep 02 2014 %K A246313 sign,easy %O A246313 0,2 %A A246313 _N. J. A. Sloane_, Aug 26 2014