OFFSET
0,1
COMMENTS
Sequence is identical to its third differences. Binomial transform of 3, -1, -1, 3, -1, -1, 3, -1, -1, ... .
LINKS
Index entries for linear recurrences with constant coefficients, signature (3, -3, 2).
FORMULA
a(n) = 2^n/3 + (8/3)cos(n*Pi/3). - Emeric Deutsch, Oct 15 2007
G.f.: -(3-7*x+3*x^2)/(2*x-1)/(x^2-x+1). - R. J. Mathar, Nov 14 2007
a(n) = 2*A086953(n-1) for n>0. - Rick L. Shepherd, Aug 02 2017
MAPLE
seq((1/3)*2^n+8*cos((1/3)*n*Pi)*1/3, n=0..33); # Emeric Deutsch, Oct 15 2007
MATHEMATICA
a = {3, 2, 0}; Do[AppendTo[a, 3*a[[ -1]] - 3*a[[ -2]] + 2*a[[ -3]]], {60}]; a (* Stefan Steinerberger, Oct 04 2007 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Paul Curtz, Sep 30 2007
EXTENSIONS
More terms from Stefan Steinerberger, Oct 04 2007
STATUS
approved