OFFSET
0,3
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (3,-3,1,-1).
FORMULA
MAPLE
MATHEMATICA
CoefficientList[Series[(1-x)*(1-x+x^2)/(1-3*x+3*x^2-x^3+x^4), {x, 0, 50}], x] (* Vincenzo Librandi, Jul 10 2012 *)
PROG
(Magma)I:=[1, 1, 2, 3 ]; [n le 4 select I[n] else 3*Self(n-1)-3*Self(n-2)+Self(n-3)-Self(n-4): n in [1..40]]; // Vincenzo Librandi, Jul 10 2012
CROSSREFS
KEYWORD
sign,easy
AUTHOR
Johannes W. Meijer, Aug 11 2011
STATUS
approved