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.

A172085 a(n) = n*(27*n^3 + 22*n^2 - 21*n - 16)/12.

This page as a plain text file.
%I A172085 #35 Aug 04 2025 17:11:48
%S A172085 0,1,41,212,660,1585,3241,5936,10032,15945,24145,35156,49556,67977,
%T A172085 91105,119680,154496,196401,246297,305140,373940,453761,545721,650992,
%U A172085 770800,906425,1059201,1230516,1421812,1634585,1870385,2130816,2417536
%N A172085 a(n) = n*(27*n^3 + 22*n^2 - 21*n - 16)/12.
%C A172085 The sequence is related to A172082 by a(n) = n*A172082(n)-sum(A172082(i), i=0..n-1).
%C A172085 This is the case d=9 in the identity n^2*(n+1)*(2*d*n -2*d +3)/6 - Sum_{k=0..n-1} k*(k+1)*(2*d*k -2*d +3)/6 = n*(n+1)*(3*d*n^2 - d*n + 4*n - 2*d + 2)/12. - _Bruno Berselli_, May 07 2010, Jan 28 2011
%H A172085 Vincenzo Librandi, <a href="/A172085/b172085.txt">Table of n, a(n) for n = 0..1000</a>
%H A172085 B. Berselli, A description of the recursive method in Comments lines: website <a href="http://www.lanostra-matematica.org/2008/12/sequenze-numeriche-e-procedimenti.html">Matem@ticamente</a> (in Italian).
%H A172085 <a href="/index/Rec#order_05">Index entries for linear recurrences with constant coefficients</a>, signature (5,-10,10,-5,1).
%F A172085 a(n) = n*(n+1)*(27*n^2 -5*n -16)/12.
%F A172085 From _Bruno Berselli_, Jan 28 2011: (Start)
%F A172085 G.f.: x*(1 +36*x +17*x^2)/(1-x)^5.
%F A172085 a(n) = 5*a(n-1) - 10*a(n-2) + 10*a(n-3) - 5*a(n-4) + a(n-5). (End)
%F A172085 E.g.f.: x*(12 + 234*x + 184*x^2 + 27*x^3)*exp(x)/12. - _G. C. Greubel_, Aug 30 2019
%p A172085 seq(n*(n+1)*(27*n^2 -5*n -16)/12, n=0..40); # _G. C. Greubel_, Aug 30 2019
%t A172085 CoefficientList[Series[x(1 +36x +17x^2)/(1-x)^5, {x, 0, 40}], x] (* _Vincenzo Librandi_, Jan 02 2014 *)
%t A172085 Table[n*(n+1)*(27*n^2-5*n-16)/12, {n,0,40}] (* _G. C. Greubel_, Aug 30 2019 *)
%o A172085 (Magma) [n*(n+1)*(27*n^2-5*n-16)/12: n in [0..40]]; // _Vincenzo Librandi_, Jan 02 2014
%o A172085 (PARI) vector(40, n, m=n-1; n*m*(27*m^2 -5*m -16)/12) \\ _G. C. Greubel_, Aug 30 2019
%o A172085 (Sage) [n*(n+1)*(27*n^2 -5*n -16)/12 for n in (0..40)] # _G. C. Greubel_, Aug 30 2019
%o A172085 (GAP) List([0..40], n-> n*(n+1)*(27*n^2 -5*n -16)/12); # _G. C. Greubel_, Aug 30 2019
%Y A172085 Cf. A172082.
%K A172085 nonn,easy
%O A172085 0,3
%A A172085 _Vincenzo Librandi_, Jan 25 2010
%E A172085 Librandi's contribution restored and rewritten from _Bruno Berselli_, Feb 29 2012