OFFSET
1,1
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (3,-2,-1,1).
FORMULA
G.f.: x*(7+4*x)/((1-x-x^2)*(1-x)^2).
a(n) = A000032(n+7) - 11*n - 29. - G. C. Greubel, Jun 01 2019
MATHEMATICA
Table[LucasL[n+7] -11*n-29, {n, 1, 40}] (* G. C. Greubel, Jun 01 2019 *)
PROG
(PARI) vector(40, n, fibonacci(n+8) + fibonacci(n+6) -11*n-29) \\ G. C. Greubel, Jun 01 2019
(Magma) [Lucas(n+7) - 11*n - 29 : n in [1..40]]; // G. C. Greubel, Jun 01 2019
(Sage) [lucas_number2(n+7, 1, -1) -11*n-29 for n in (1..40)] # G. C. Greubel, Jun 01 2019
(GAP) List([1..40], n-> Lucas(1, -1, n+7)[2] -11*n-29 ) # G. C. Greubel, Jun 01 2019
(Python)
from sympy import lucas
def a(n): return lucas(n+7) - 11*n - 29
print([a(n) for n in range(1, 35)]) # Michael S. Branicky, Jul 25 2021
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
STATUS
approved