OFFSET
1,2
LINKS
Seiichi Manyama, Table of n, a(n) for n = 1..10000
Index entries for linear recurrences with constant coefficients, signature (10,-45,120,-210,252,-210,120,-45,10,-1).
FORMULA
a(n) = (n^9 - n)/10 = A196289(n)/10.
G.f.: 3*x^2*(17 + 486*x + 2943*x^2 + 5204*x^3 + 2943*x^4 + 486*x^5 + 17*x^6) / (1 - x)^10. - Colin Barker, Jun 11 2017
MATHEMATICA
Table[(n^9-n)/10, {n, 30}] (* or *) LinearRecurrence[{10, -45, 120, -210, 252, -210, 120, -45, 10, -1}, {0, 51, 1968, 26214, 195312, 1007769, 4035360, 13421772, 38742048, 99999999}, 30] (* Harvey P. Dale, Jun 11 2019 *)
PROG
(PARI) concat(0, Vec(3*x^2*(17 + 486*x + 2943*x^2 + 5204*x^3 + 2943*x^4 + 486*x^5 + 17*x^6) / (1 - x)^10 + O(x^30))) \\ Colin Barker, Jun 11 2017
(PARI) a(n)=(n^9-n)/10 \\ Charles R Greathouse IV, Jun 11 2017
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Seiichi Manyama, Jun 11 2017
STATUS
approved