OFFSET
1,2
LINKS
Eric Weisstein's World of Mathematics, Harary Index
Eric Weisstein's World of Mathematics, Queen Graph
Index entries for linear recurrences with constant coefficients, signature (5, -10, 10, -5, 1).
FORMULA
a(n) = n*(n - 1)*(3*n^2 + 13*n - 2)/12.
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 - x + x^2)/(-1 + x)^5.
MATHEMATICA
Table[n (n - 1) (3 n^2 + 13 n - 2)/12, {n, 20}]
LinearRecurrence[{5, -10, 10, -5, 1}, {0, 6, 32, 98, 230}, 40]
CoefficientList[Series[2 x (-3 - x + x^2)/(-1 + x)^5, {x, 0, 20}], x]
PROG
(PARI) first(n) = Vec(2*x^2*(-3 - x + x^2)/(-1 + x)^5 + O(x^(n+1)), -n) \\ Iain Fox, Dec 07 2017
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Eric W. Weisstein, Dec 07 2017
STATUS
approved