OFFSET
0,3
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..730
Index entries for linear recurrences with constant coefficients, signature (4,-6,4,-1).
FORMULA
From G. C. Greubel, May 11 2017: (Start)
a(n) = 4*a(n-1) - 6*a(n-2) + 4*a(n-3) - a(n-4).
G.f.: (1 - 4*x - x^2 - 2*x^3)/(1 - x)^4.
E.g.f.: (1 - x - 3*x^2 - x^3)*exp(x). (End)
MATHEMATICA
Table[1 - n^3, {n, 0, 50}] (* Bruno Berselli, Jun 12 2015 *)
CoefficientList[Series[(1 - 4*x - x^2 - 2*x^3)/(1 - x)^4, {x, 0, 50}], x] (* G. C. Greubel, May 11 2017 *)
PROG
(Magma) [1-n^3: n in [0..50]]; // Vincenzo Librandi, Apr 29 2011
(PARI) x='x+O('x^50); Vec((1 - 4*x - x^2 - 2*x^3)/(1 - x)^4) \\ G. C. Greubel, May 11 2017
CROSSREFS
KEYWORD
sign,easy
AUTHOR
EXTENSIONS
More terms from Henry Bottomley, Jan 08 2001
STATUS
approved