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 A078005 #13 Sep 08 2022 08:45:08 %S A078005 1,1,0,-4,-10,-12,4,52,120,128,-88,-672,-1424,-1328,1536,8576,16736, %T A078005 13248,-24128,-108224,-194688,-124672,356480,1351680,2239744,1063168, %U A078005 -5056512,-16718848,-25451008,-7351296,69637120,204878848,285186048,21340160,-937449472,-2487951360,-3143684096 %N A078005 Expansion of (1-x)/(1-2*x+2*x^2+2*x^3). %H A078005 G. C. Greubel, <a href="/A078005/b078005.txt">Table of n, a(n) for n = 0..1000</a> %H A078005 <a href="/index/Rec#order_03">Index entries for linear recurrences with constant coefficients</a>, signature (2,-2,-2). %F A078005 a(n+3) = 2*a(n+2) - 2*a(n+1) - 2*a(n), where a(0)=1, a(1)=1, a(2)=0. - _Sergei N. Gladkovskii_, Aug 21 2012 %t A078005 LinearRecurrence[{2,-2,-2}, {1,1,0}, 40] (* or *) CoefficientList[ %t A078005 Series[(1-x)/(1-2*x+2*x^2+2*x^3), {x,0,40}], x] (* _G. C. Greubel_, Jun 27 2019 *) %o A078005 (PARI) my(x='x+O('x^40)); Vec((1-x)/(1-2*x+2*x^2+2*x^3)) \\ _G. C. Greubel_, Jun 27 2019 %o A078005 (Magma) R<x>:=PowerSeriesRing(Integers(), 40); Coefficients(R!( (1-x)/( 1-2*x+2*x^2+2*x^3) )); // _G. C. Greubel_, Jun 27 2019 %o A078005 (Sage) ((1-x)/(1-2*x+2*x^2+2*x^3)).series(x, 40).coefficients(x, sparse=False) # _G. C. Greubel_, Jun 27 2019 %o A078005 (GAP) a:=[1,1,0];; for n in [4..40] do a[n]:=2*(a[n-1]-a[n-2]-a[n-3]); od; a; # _G. C. Greubel_, Jun 27 2019 %K A078005 sign %O A078005 0,4 %A A078005 _N. J. A. Sloane_, Nov 17 2002