OFFSET
0,2
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (3,-2,-2,3,-1).
FORMULA
G.f.: ( -1+5*x-x^2+9*x^3 ) / ( (1+x)*(x-1)^4 ). - R. J. Mathar, Aug 06 2012
E.g.f.: x*(1 + 3*x + x^2)*exp(x) - exp(-x). - G. C. Greubel, Oct 12 2017
MATHEMATICA
CoefficientList[Series[(-1 + 5*x - x^2 + 9*x^3)/((1 + x)*(x - 1)^4), {x, 0, 50}], x] (* G. C. Greubel, Oct 12 2017 *)
PROG
(PARI) for(n=0, 50, print1(n^3 + (-1)^(n+1), ", ")) \\ G. C. Greubel, Oct 12 2017
(Magma) [n^3 + (-1)^(n+1): n in [0..50]]; // G. C. Greubel, Oct 12 2017
CROSSREFS
KEYWORD
sign,easy
AUTHOR
Chenxing (cxwind(AT)gmail.com), Oct 12 2006
EXTENSIONS
Corrected and extended by N. J. A. Sloane, Oct 14 2006
STATUS
approved