OFFSET
0,1
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..4500
Index entries for linear recurrences with constant coefficients, signature (2,0,-1).
FORMULA
From R. J. Mathar, Mar 11 2011: (Start)
a(n+1) - a(n) = A022132(n-1).
G.f.: ( 3+6*x-8*x^2 ) / ( (x-1)*(x^2+x-1) ). (End)
MATHEMATICA
LinearRecurrence[{2, 0, -1}, {3, 12, 16}, 40] (* Harvey P. Dale, Jan 26 2014 *)
PROG
(PARI) x='x+O('x^30); Vec((3+6*x-8*x^2)/((x-1)*(x^2+x-1))) \\ G. C. Greubel, Feb 28 2018
(Magma) m:=30; R<x>:=PowerSeriesRing(Integers(), m); Coefficients(R!((3+6*x-8*x^2)/((x-1)*(x^2+x-1)))); // G. C. Greubel, Feb 28 2018
CROSSREFS
KEYWORD
nonn
AUTHOR
EXTENSIONS
Terms a(31) onward added by G. C. Greubel, Feb 28 2018
STATUS
approved