cp's OEIS Frontend

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.

A165458 a(0)=1, a(1)=4, a(n) = 12*a(n-2) - a(n-1).

This page as a plain text file.
%I A165458 #20 Sep 08 2022 08:45:47
%S A165458 1,4,8,40,56,424,248,4840,-1864,59944,-82312,801640,-1789384,11409064,
%T A165458 -32881672,169790440,-564370504,2601855784,-9374301832,40596571240,
%U A165458 -153088193224,640247048104,-2477305366792,10160269944040,-39887934345544,161811173674024
%N A165458 a(0)=1, a(1)=4, a(n) = 12*a(n-2) - a(n-1).
%C A165458 a(n)/a(n-1) tends to -4.
%H A165458 G. C. Greubel, <a href="/A165458/b165458.txt">Table of n, a(n) for n = 0..1000</a>
%H A165458 <a href="/index/Rec#order_02">Index entries for linear recurrences with constant coefficients</a>, signature (-1,12).
%F A165458 G.f.: (1+5*x)/(1+x-12*x^2).
%F A165458 a(n) = Sum_{k, k=0..n} A112555(n,k)*3^k.
%F A165458 a(n) = (8*3^n-(-4)^n)/7. - _Klaus Brockhaus_, Sep 26 2009
%F A165458 E.g.f.: (8*exp(3*x) - exp(-4*x))/7. - _G. C. Greubel_, Oct 20 2018
%p A165458 A165458:=n->(8*3^n-(-4)^n)/7: seq(A165458(n), n=0..40); # _Wesley Ivan Hurt_, May 26 2015
%t A165458 LinearRecurrence[{-1,12},{1,4},30] (* _Harvey P. Dale_, Dec 26 2015 *)
%o A165458 (PARI) vector(40, n, n--; (8*3^n-(-4)^n)/7) \\ _G. C. Greubel_, Oct 20 2018
%o A165458 (Magma) [(8*3^n-(-4)^n)/7: n in [0..40]]; // _G. C. Greubel_, Oct 20 2018
%o A165458 (Python) for n in range(0, 30): print(int((8*3**n-(-4)**n)/7), end=', ') # _Stefano Spezia_, Oct 21 2018
%o A165458 (GAP) a:=[1,4];; for n in [3..27] do a[n]:=12*a[n-2]-a[n-1]; od; a; # _Muniru A Asiru_, Oct 21 2018
%K A165458 easy,sign
%O A165458 0,2
%A A165458 _Philippe Deléham_, Sep 20 2009