OFFSET
0,3
LINKS
Harry J. Smith, Table of n, a(n) for n = 0..500
Index entries for linear recurrences with constant coefficients, signature (5,-9,5,5,-9,5,-1).
FORMULA
From Chai Wah Wu, Aug 01 2020: (Start)
a(n) = 5*a(n-1) - 9*a(n-2) + 5*a(n-3) + 5*a(n-4) - 9*a(n-5) + 5*a(n-6) - a(n-7) for n > 6.
G.f.: x*(-x^5 - 2*x^4 + x^3 + 21*x^2 + 4*x + 1)/((x - 1)^6*(x + 1)). (End)
MATHEMATICA
LinearRecurrence[{5, -9, 5, 5, -9, 5, -1}, {0, 1, 9, 57, 210, 585, 1355}, 40] (* Harvey P. Dale, Nov 18 2022 *)
PROG
(PARI) { for (n=0, 500, a=(6*n^4 + 30*n^3 - 20*n^2 + 14)*n/30 + n%2; write("b064838.txt", n, " ", a/2) ) } \\ Harry J. Smith, Sep 28 2009
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Oct 25 2001
EXTENSIONS
Offset changed from 1 to 0 by Harry J. Smith, Sep 28 2009
STATUS
approved