OFFSET
0,3
COMMENTS
LINKS
Paolo Xausa, Table of n, a(n) for n = 0..9999
Index entries for linear recurrences with constant coefficients, signature (1,-1,1).
FORMULA
From Colin Barker, Sep 15 2013: (Start)
a(n) = (6+(-i)^n+i^n)/2 where n > 1, i=sqrt(-1).
a(n) = a(n-1) - a(n-2) + a(n-3) for n > 4.
G.f.: -x*(x+1)*(2*x^2+1) / ((x-1)*(x^2+1)). (End)
MATHEMATICA
A211010[nmax_]:=PadRight[{0, 1, 2, 3}, nmax+1, {4, 3, 2, 3}];
A211010[100] (* Paolo Xausa, Jan 06 2023 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Omar E. Pol, Mar 30 2012
STATUS
approved