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 A155120 #23 Sep 08 2022 08:45:40 %S A155120 -2,4,26,76,166,308,514,796,1166,1636,2218,2924,3766,4756,5906,7228, %T A155120 8734,10436,12346,14476,16838,19444,22306,25436,28846,32548,36554, %U A155120 40876,45526,50516,55858 %N A155120 a(n) = 2*(n^3 + n^2 + n - 1). %H A155120 Vincenzo Librandi, <a href="/A155120/b155120.txt">Table of n, a(n) for n = 0..2000</a> %H A155120 <a href="/index/Rec#order_04">Index entries for linear recurrences with constant coefficients</a>, signature (4,-6,4,-1). %F A155120 a(n) = 2*(n^3 +n^2 +n -1). %F A155120 G.f.: 2*(-1 +6*x -x^2 +2*x^3)/(1-x)^4. %F A155120 E.g.f.: 2*(-1 + 3*x + 4*x^2 + x^3)*exp(x). - _G. C. Greubel_, Mar 25 2021 %p A155120 seq( 2*(n^3 +n^2 +n -1), n=0..40); # _G. C. Greubel_, Mar 25 2021 %t A155120 Table[-2 +2n +2n^2 +2n^3, {n, 0, 30}] %t A155120 LinearRecurrence[{4,-6,4,-1},{-2,4,26,76},40] (* _Harvey P. Dale_, Jun 06 2014 *) %o A155120 (Magma) [2*(n^3+n^2+n-1): n in [0..40] ]; // _Vincenzo Librandi_, May 23 2011 %o A155120 (Sage) [2*(n^3 +n^2 +n -1) for n in (0..40)] # _G. C. Greubel_, Mar 25 2021 %Y A155120 Cf. A142463, A155121, A155122, A155123, A155124. %K A155120 sign,easy %O A155120 0,1 %A A155120 _Roger L. Bagula_, Jan 20 2009