OFFSET
3,2
LINKS
G. C. Greubel, Table of n, a(n) for n = 3..1000
Index entries for linear recurrences with constant coefficients, signature (4,-5,1,2,-1).
FORMULA
G.f.: x^3*(1+2*x)/((1-x)^3*(1-x-x^2)). Differences of A027964. - Ralf Stephan, Feb 07 2004
a(n) = Lucas(n+4) - (3*n^2 + 5*n + 14)/2.
MATHEMATICA
t[_, 0] = 1; t[_, 1] = 3; t[n_, k_] /; (k == 2*n) = 1; t[n_, k_] := t[n, k] = t[n-1, k-2] + t[n-1, k-1]; Table[t[n, n+3], {n, 3, 33}] (* Jean-François Alcover, Dec 27 2013 *)
Table[LucasL[n+4] -(3*n^2+5*n+14)/2, {n, 3, 40}] (* G. C. Greubel, Jun 01 2019 *)
PROG
(PARI) {a(n) = fibonacci(n+5) + fibonacci(n+3) - (3*n^2+5*n+14)/2}; \\ G. C. Greubel, Jun 01 2019
(Magma) [Lucas(n+4) -(3*n^2+5*n+14)/2: n in [3..40]]; // G. C. Greubel, Jun 01 2019
(Sage) [lucas_number2(n+4, 1, -1) - (3*n^2+5*n+14)/2 for n in (3..40)] # G. C. Greubel, Jun 01 2019
(GAP) List([3..40], n-> Lucas(1, -1, n+4)[2] - (3*n^2+5*n+14)/2 ) # G. C. Greubel, Jun 01 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
EXTENSIONS
Terms a(34) onward added by G. C. Greubel, Jun 01 2019
STATUS
approved