%I #37 Sep 08 2022 08:44:49
%S 0,3,14,39,84,155,258,399,584,819,1110,1463,1884,2379,2954,3615,4368,
%T 5219,6174,7239,8420,9723,11154,12719,14424,16275,18278,20439,22764,
%U 25259,27930,30783,33824,37059,40494,44135,47988,52059,56354,60879,65640,70643,75894
%N a(n) = n^3 + n^2 + n.
%C For n>1, a(n) is the volume of a truncated square pyramid with height n and base lengths n+2 and n-1. - _Wesley Ivan Hurt_, Apr 05 2016
%H Vincenzo Librandi, <a href="/A027444/b027444.txt">Table of n, a(n) for n = 0..1000</a>
%H D. Applegate, M. LeBrun, N. J. A. Sloane, <a href="https://cs.uwaterloo.ca/journals/JIS/VOL14/Sloane/carry2.html">Dismal Arithmetic</a>, J. Int. Seq. 14 (2011) # 11.9.8.
%H Milan Janjic, <a href="http://www.pmfbl.org/janjic/">Enumerative Formulas for Some Functions on Finite Sets</a>
%H Eric Weisstein's World of Mathematics, <a href="https://mathworld.wolfram.com/MagicCircles.html">Magic Circles</a> - _Eric W. Weisstein_, Feb 06 2009
%H <a href="/index/Rec#order_04">Index entries for linear recurrences with constant coefficients</a>, signature (4,-6,4,-1).
%F O.g.f.: x*(3 + 2*x + x^2)/(1 - x)^4. - _R. J. Mathar_, Feb 04 2008
%F a(n) = 4*a(n-1) - 6*a(n-2) + 4*a(n-3) - a(n-4) for n>3. - _Wesley Ivan Hurt_, Apr 05 2016
%e For n = 4, 4^3 + 4^2 + 4 = 64 + 16 + 4 = 84.
%p A027444:=n->n^3+n^2+n: seq(A027444(n), n=0..100); # _Wesley Ivan Hurt_, Apr 05 2016
%t Table[n^3 + n^2 + n, {n, 0, 50}] (* _Harvey P. Dale_, Dec 13 2013 *)
%o (Magma) [n^3 + n^2 + n: n in [0..50]]; // _Vincenzo Librandi_, Jun 09 2011
%Y Column k=3 of A228275.
%Y Cf. A270109.
%K nonn,easy
%O 0,2
%A _Patrick De Geest_, Mark Milhet (mm992395(AT)shellus.com)