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 A123947 #16 Sep 08 2022 08:45:28 %S A123947 0,1,3,9,29,90,284,890,2797,8780,27574,86581,271881,853732,2680833, %T A123947 8418132,26433983,83005929,260648825,818469251,2570093890,8070410030, %U A123947 25342077544,79577232067,249882270390,784660981474,2463931734897 %N A123947 Expansion of x^2*(1+x-x^2)/(1-2*x-4*x^2+x^3+x^4). %H A123947 G. C. Greubel, <a href="/A123947/b123947.txt">Table of n, a(n) for n = 1..1000</a> %H A123947 <a href="/index/Rec#order_04">Index entries for linear recurrences with constant coefficients</a>, signature (2,4,-1,-1). %p A123947 seq(coeff(series(x^2*(1+x-x^2)/(1-2*x-4*x^2+x^3+x^4), x, n+1), x, n), n = 1..30); # _G. C. Greubel_, Aug 05 2019 %t A123947 M = {{0,-1,-1,0,1}, {-1,0,0,0,-1}, {-1,0,1,0,-1}, {0,0,-1,0,0}, {1,-1, -1,0,1}}; v[1] = {0,0,0,0,1}; v[n_]:= v[n] = M.v[n-1]; Table[v[n][[1]], {n, 30}] %t A123947 CoefficientList[Series[x^2*(1+x-x^2)/(1-2*x-4*x^2+x^3+x^4), {x, 0, 30}], x] (* _G. C. Greubel_, Aug 05 2019 *) %o A123947 (PARI) my(x='x+O('x^30)); concat([0], Vec(x^2*(1+x-x^2)/(1-2*x-4*x^2+x^3+x^4))) \\ _G. C. Greubel_, Aug 05 2019 %o A123947 (Magma) R<x>:=PowerSeriesRing(Integers(), 30); [0] cat Coefficients(R!( x^2*(1+x-x^2)/(1-2*x-4*x^2+x^3+x^4) )); // _G. C. Greubel_, Aug 05 2019 %o A123947 (Sage) a=(x^2*(1+x-x^2)/(1-2*x-4*x^2+x^3+x^4)).series(x, 30).coefficients(x, sparse=False); a[1:] # _G. C. Greubel_, Aug 05 2019 %o A123947 (GAP) a:=[0,1,3,9];; for n in [5..30] do a[n]:=2*a[n-1]+4*a[n-2]-a[n-3] -a[n-4]; od; a; # _G. C. Greubel_, Aug 05 2019 %Y A123947 Cf. A122773, A122771. %K A123947 nonn %O A123947 1,3 %A A123947 _Gary W. Adamson_ and _Roger L. Bagula_, Oct 26 2006