OFFSET
0,2
LINKS
Eric Weisstein's World of Mathematics, Graph Cycle
Eric Weisstein's World of Mathematics, Path Complement Graph
Index entries for linear recurrences with constant coefficients, signature (7,-21,35,-35,21,-7,1).
FORMULA
G.f.: x*(-5 - 15*x - 20*x^2 - 16*x^3 - 3*x^4 - x^5)/(-1 + x)^7.
a(n) = 7*a(n-1) - 21*a(n-2) + 35*a(n-3) - 35*a(n-4) + 21*a(n-5) - 7*a(n-6) + a(n-7).
a(n) = n*(4 + 22*n + 17*n^2 + 13*n^3 + 3*n^4 + n^5)/12.
MATHEMATICA
Table[n (4 + 22 n + 17 n^2 + 13 n^3 + 3 n^4 + n^5)/12, {n, 0, 20}]
LinearRecurrence[{7, -21, 35, -35, 21, -7, 1}, {5, 50, 265, 996, 2985, 7610, 17185}, {0, 20}]
CoefficientList[Series[x (-5 - 15 x - 20 x^2 - 16 x^3 - 3 x^4 - x^5)/(-1 + x)^7, {x, 0, 20}], x]
PROG
(PARI) a(n) = n*(4+22*n+17*n^2+13*n^3+3*n^4+n^5)/12; \\ Altug Alkan, Apr 12 2018
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Eric W. Weisstein, Apr 11 2018
STATUS
approved