OFFSET
0,1
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)
FORMULA
G.f.: ( 3+4*x-6*x^2 )/((x-1)*(x^2+x-1)). - R. J. Mathar, Mar 11 2011
a(n) = 3*Lucas(n+1) + Fibonacci(n+2) - 1. - Greg Dresden, Oct 10 2020
MATHEMATICA
LinearRecurrence[{2, 0, -1}, {3, 10, 14}, 40] (* Harvey P. Dale, Dec 01 2015 *)
CoefficientList[Series[(3+4*x-6*x^2)/((x-1)*(x^2+x-1)), {x, 0, 50}], x] (* G. C. Greubel, Mar 01 2018 *)
PROG
(PARI) x='x+O('x^30); Vec(( 3+4*x-6*x^2 )/((x-1)*(x^2+x-1))) \\ G. C. Greubel, Mar 01 2018
(Magma) I:=[3, 10, 14]; [n le 3 select I[n] else 2*Self(n-1) - Self(n-3): n in [1..30]]; // G. C. Greubel, Mar 01 2018
CROSSREFS
KEYWORD
nonn
AUTHOR
EXTENSIONS
Terms a(31) onward added by G. C. Greubel, Mar 01 2018
STATUS
approved