OFFSET
1,2
LINKS
Giovanni Resta, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (2,-1,1,-1,-1,1,-1,2,-1).
FORMULA
From Stefano Spezia, Jun 20 2020: (Start)
G.f.: 4*x*(25 + 53*x + 83*x^2 + 87*x^3 + 67*x^4 + 35*x^5 + 10*x^6)/((1 - x)^4*(1 + 2*x + 3*x^2 + 3*x^3 + 2*x^4 + x^5)).
a(n) = 2*a(n-1) - a(n-2) + a(n-3) - a(n-4) - a(n-5) + a(n-6) - a(n-7) + 2*a(n-8) - a(n-9) for n > 9. (End)
a(n) = 20*n^3 - 83/6*n^2 + O(1). - Charles R Greathouse IV, May 31 2026
PROG
(PARI) a(n)=(120*n^3-83*n^2+[0, -37, -28, -21, -16, -37, -12, -37, -16, -21, -28, -37][n%12+1])/6 \\ Charles R Greathouse IV, May 31 2026
CROSSREFS
KEYWORD
nonn,easy,changed
AUTHOR
N. J. A. Sloane, Jun 13 2020
EXTENSIONS
Terms a(6) and beyond from Giovanni Resta, Jun 20 2020
STATUS
approved
