OFFSET
0,2
LINKS
FORMULA
a(n) = 3*a(n-1)-a(n-3)+3*a(n-4).
O.g.f.: -(1-x)^2/((3*x-1)*(x^2-x+1)). a(n) = (4*3^n+3*A010892(n)-A010892(n-1))/7. - R. J. Mathar, May 18 2008
MATHEMATICA
LinearRecurrence[{3, 0, -1, 3}, {1, 2, 5, 15}, 30] (* Harvey P. Dale, Jan 12 2019 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Paul Curtz, May 16 2008
EXTENSIONS
More terms from R. J. Mathar, May 18 2008
STATUS
approved