OFFSET
0,3
LINKS
Index entries for linear recurrences with constant coefficients, signature (-1,1,0,1).
FORMULA
a(n+1)-a(n) = (-1)^(n+1)*A005314(n+2). - R. J. Mathar, Mar 14 2011
a(0)=1, a(1)=-1, a(2)=2, a(3)=-3, a(n)=-a(n-1)+a(n-2)+a(n-4). - Harvey P. Dale, Feb 20 2013
MATHEMATICA
CoefficientList[Series[1/(1-x)/(1+2x+x^2+x^3), {x, 0, 50}], x] (* or *) LinearRecurrence[ {-1, 1, 0, 1}, {1, -1, 2, -3}, 50] (* Harvey P. Dale, Feb 20 2013 *)
PROG
(PARI) Vec((1-x)^(-1)/(1+2*x+x^2+x^3)+O(x^99)) \\ Charles R Greathouse IV, Sep 24 2012
CROSSREFS
KEYWORD
sign,easy
AUTHOR
N. J. A. Sloane, Nov 17 2002
STATUS
approved