|
|
A288919
|
|
Number of 5-cycles in the n X n king graph.
|
|
4
|
|
|
0, 0, 52, 176, 372, 640, 980, 1392, 1876, 2432, 3060, 3760, 4532, 5376, 6292, 7280, 8340, 9472, 10676, 11952, 13300, 14720, 16212, 17776, 19412, 21120, 22900, 24752, 26676, 28672
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,3
|
|
LINKS
|
|
|
FORMULA
|
G.f.: 4*x^3*(13 + 5*x) / (1 - x)^3.
a(n) = 3*a(n-1) - 3*a(n-2) + a(n-3) for n > 4. (End)
E.g.f.: 4*(exp(x)*(28 - 23*x + 9*x^2) - 28 - 5*x). - Stefano Spezia, Aug 14 2022
|
|
MATHEMATICA
|
Table[If[n == 1, 0, 4 (n - 2) (9 n - 14)], {n, 30}]
Join[{0, 0}, LinearRecurrence[{3, -3, 1}, {20, 0, 52}, {3, 20}]]
CoefficientList[Series[-((4 x^2 (13 + 5 x))/(-1 + x)^3), {x, 0, 20}], x]
|
|
PROG
|
(PARI) concat([0, 0], Vec(4*x^3*(13 + 5*x) / (1 - x)^3 + O(x^40))) \\ Colin Barker, Mar 11 2019
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|