OFFSET
1,3
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (7,-21,35,-35,21,-7,1).
FORMULA
a(n) = n*(n-1)*(15*n^4 + 30*n^3 - 105*n^2 - 700*n + 1344)/8.
G.f.: -x^2*(481*x^4 - 1624*x^3 + 2256*x^2 + 236*x + 1) / (x-1)^7. - Colin Barker, May 28 2015
MATHEMATICA
LinearRecurrence[{7, -21, 35, -35, 21, -7, 1}, {0, 1, 243, 3936, 20860, 72315, 197421}, 30] (* Harvey P. Dale, Mar 27 2022 *)
PROG
(Magma) [n*(n-1)*(15*n^4+30*n^3-105*n^2-700*n+1344)/8: n in [1..45]]; // Vincenzo Librandi, Jun 30 2011
(PARI) concat(0, Vec(-x^2*(481*x^4-1624*x^3+2256*x^2+236*x+1) / (x-1)^7 + O(x^100))) \\ Colin Barker, May 28 2015
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Paolo Dominici (pl.dm(AT)libero.it)
EXTENSIONS
a(1) corrected by Vincenzo Librandi, Jun 30 2011
STATUS
approved