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 (2,0,-1,2).
FORMULA
From R. J. Mathar, Feb 19 2008: (Start)
O.g.f.: (1/9)*(-3*(x+2)/(x^2-x+1) - 8/(2*x-1) - 2/(x+1)).
a(n) = (1/9)*(2*(-1)^(n+1) + 2^(n+3) + 3*A117373(n+1)). (End)
MAPLE
A117373 := proc(n) coeftayl( (1-3*x)/(1-x+x^2), x=0, n) ; end: A135350 := proc(n) 2*(-1)^(n+1)/9+2^(n+3)/9+A117373(n+1)/3 ; end: seq(A135350(n), n=0..10) ; # R. J. Mathar, Feb 19 2008
MATHEMATICA
LinearRecurrence[{2, 0, -1, 2}, {0, 1, 3, 8}, 25] (* G. C. Greubel, Oct 11 2016 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Paul Curtz, Feb 16 2008
EXTENSIONS
More terms from R. J. Mathar, Feb 19 2008
STATUS
approved