OFFSET
1,2
LINKS
Eric Weisstein's World of Mathematics, Queen Graph
Eric Weisstein's World of Mathematics, Wiener Index
Index entries for linear recurrences with constant coefficients, signature (5,-10,10,-5,1).
FORMULA
a(n) = (n - 1)*n*(3*n^2 - 2*n + 1)/3.
a(n) = 5*a(n-1) - 10*a(n-2) + 10*a(n-3) - 5*a(n-4) + a(n-5).
G.f.: 2*x^2*(3 + 7*x + 2*x^2)/(1 - x)^5.
MATHEMATICA
Table[(n - 1) n (3 n^2 - 2 n + 1)/3, {n, 20}]
LinearRecurrence[{5, -10, 10, -5, 1}, {0, 6, 44, 164, 440}, 20]
CoefficientList[Series[2 x (3 + 7 x + 2 x^2)/(1 - x)^5, {x, 0, 20}], x]
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Eric W. Weisstein, Sep 08 2017
STATUS
approved