OFFSET
0,2
COMMENTS
After 0, subsequence of A038855.
Volume of a truncated square pyramid with base lengths n and 2n, and height 3n. - Wesley Ivan Hurt, Apr 05 2016
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.: 7*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.: 7*exp(x)*x*(1 + 3*x + x^2). - Stefano Spezia, May 09 2023
MAPLE
MATHEMATICA
Table[7 n^3, {n, 0, 40}] (* or *) CoefficientList[Series[7 x (1 + 4 x + x^2)/(1 - x)^4, {x, 0, 40}], x]
7 Range[0, 50]^3 (* Wesley Ivan Hurt, Apr 05 2016 *)
LinearRecurrence[{4, -6, 4, -1}, {0, 7, 56, 189}, 40] (* Harvey P. Dale, Apr 04 2024 *)
PROG
(Magma) [7*n^3: n in [0..40]] /* or */ I:=[0, 7, 56, 189]; [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]];
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vincenzo Librandi, Jul 05 2014
STATUS
approved