OFFSET
0,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (-1,1,1).
FORMULA
a(n) = -a(n-1)+a(n-2)+a(n-3). G.f.: -(7+20*x+14*x^2)/((x-1)*(1+x)^2). [R. J. Mathar, Aug 07 2009]
MATHEMATICA
CoefficientList[Series[-(7 + 20 x + 14 x^2)/((x - 1) (1 + x)^2), {x, 0, 100}], x] (* Vincenzo Librandi, May 25 2014 *)
PROG
(Magma) &cat[[n+7, 13-n]: n in [0..30]]; // Vincenzo Librandi, May 25 2014
CROSSREFS
KEYWORD
sign,tabf,easy
AUTHOR
Stuart M. Ellerstein (ellerstein(AT)aol.com), Oct 23 2006
EXTENSIONS
Edited with better definition by Omar E. Pol and N. J. A. Sloane, Jan 02 2009
More terms from R. J. Mathar, Aug 07 2009
STATUS
approved