OFFSET
0,3
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (1, 1, 1, -1).
FORMULA
From R. J. Mathar, Mar 31 2008: (Start)
O.g.f.: x*(1+x)/(1-x-x^2-x^3+x^4).
MATHEMATICA
LinearRecurrence[{1, 1, 1, -1}, {0, 1, 2, 3}, 40] (* Vladimir Joseph Stephan Orlovsky, Feb 03 2012 *)
nxt[{a_, b_, c_, d_}]:={b, c, d, d+c+b-a}; NestList[nxt, {0, 1, 2, 3}, 40][[All, 1]] (* Harvey P. Dale, Feb 28 2021 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Mohamed Bouhamida, Dec 13 2007
STATUS
approved