OFFSET
0,2
COMMENTS
Volume of a pyramid (square base) with side and height 3*n. - Wesley Ivan Hurt, Aug 25 2014
Volume of the smallest square cuboid containing a ring torus where the tube and hole diameters are both n. - Torlach Rush, Jun 04 2019
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (4,-6,4,-1).
FORMULA
G.f.: 9*x*(1 + 4*x + x^2)/(1 - x)^4.
a(n) = 4*a(n-1) - 6*a(n-2) + 4*a(n-3) - a(n-4) for n>3.
E.g.f.: 9*x*(1 + 3*x + x^2)*exp(x). - G. C. Greubel, Jun 30 2019
MAPLE
MATHEMATICA
Table[9n^3, {n, 0, 40}] (* or *) CoefficientList[Series[9*x*(1+4*x+x^2)/(1- x)^4, {x, 0, 40}], x]
PROG
(Magma) [9*n^3: n in [0..40]] /* or */ I:=[0, 9, 72, 243]; [n le 4 select I[n] else 4*Self(n-1)-6*Self(n-2)+4*Self(n-3)-Self(n-4): n in [1..40]];
(PARI) vector(40, n, n--; 9*n^3) \\ G. C. Greubel, Jun 30 2019
(Sage) [9*n^3 for n in (0..40)] # G. C. Greubel, Jun 30 2019
(GAP) List([0..40], n-> 9*n^3) # G. C. Greubel, Jun 30 2019
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vincenzo Librandi, Jul 05 2014
STATUS
approved