OFFSET
0,2
LINKS
Index entries for linear recurrences with constant coefficients, signature (-3,-3,-1).
FORMULA
G.f.: (x^3 - x^2 - 1)/(x + 1)^3.
a(n) = -3*a(n-1) -3*a(n-2) -a(n-3).
From Franck Maminirina Ramaharo, Dec 27 2018: (Start)
a(n) = (A143689(n) + 1)*(-1)^(n + 1), n >= 1.
E.g.f.: 1 - (1/2)*(4 - 2*x + 3*x^2)*exp(-x). (End)
MATHEMATICA
p[x_] = (x^3 - x^2 - 1)/(x + 1)^3;
a = Table[SeriesCoefficient[ Series[p[x], {x, 0, 50}], n], {n, 0, 50}]
PROG
(Magma) [-1] cat [(-1)^n*(n-4-3*n^2)/2: n in [1..50]]; // Vincenzo Librandi, Apr 20 2015
(PARI) Vec((x^3 - x^2 - 1)/(x + 1)^3 + O(x^50)) \\ Michel Marcus, Apr 20 2015
CROSSREFS
KEYWORD
sign,easy
AUTHOR
Roger L. Bagula, Feb 13 2010
EXTENSIONS
Definition simplified by the Assoc. Editors of the OEIS, Feb 21 2010
Incorrect comment removed by Joerg Arndt, Dec 27 2018
STATUS
approved