OFFSET
3,1
COMMENTS
All elements of the sequence are multiples of 3.
LINKS
Heinrich Ludwig, Table of n, a(n) for n = 3..1000
Index entries for linear recurrences with constant coefficients, signature (9,-36,84,-126,126,-84,36,-9,1).
FORMULA
a(n) = (n-1)*(n-2)*(n^6 + 7*n^5 + 13*n^4 - 7*n^3 - 230*n^2 - 408*n + 1152)/384.
G.f.: -3*x^3*(2*x^6 - 11*x^5 + 21*x^4 - 14*x^3 + x^2 + 34*x + 2) / (x-1)^9. - Colin Barker, Feb 09 2014
MATHEMATICA
LinearRecurrence[{9, -36, 84, -126, 126, -84, 36, -9, 1}, {6, 156, 1191, 5565, 19620, 57351, 146391, 336951, 714555}, 40] (* Harvey P. Dale, Sep 29 2019 *)
PROG
(PARI) Vec(-3*x^3*(2*x^6-11*x^5+21*x^4-14*x^3+x^2+34*x+2)/(x-1)^9 + O(x^100)) \\ Colin Barker, Feb 09 2014
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Heinrich Ludwig, Feb 09 2014
STATUS
approved