OFFSET
0,3
LINKS
Colin Barker, Table of n, a(n) for n = 0..1000
Eric Weisstein's World of Mathematics, Graph Cycle.
Eric Weisstein's World of Mathematics, Queen Graph.
Index entries for linear recurrences with constant coefficients, signature (3,-1,-5,5,1,-3,1).
FORMULA
G.f.: 4*x^2*(1 + 6*x + 5*x^2 + x^3 - x^4) / ((1 - x)^5*(1 + x)^2).
a(n) = A030117(n) + (3*n-1)*binomial(n,3).
MATHEMATICA
Table[n (5 - 10 n + 2 n^2 + 2 n^3 - (-1)^n)/4, {n, 20}] (* Eric W. Weisstein, Jun 19 2017 *)
LinearRecurrence[{3, -1, -5, 5, 1, -3, 1}, {0, 4, 36, 124, 320, 672, 1260}, 20] (* Eric W. Weisstein, Jun 19 2017 *)
CoefficientList[Series[(4 x (-1 - 6 x - 5 x^2 - x^3 + x^4))/((-1 + x)^5 (1 + x)^2), {x, 0, 20}], x] (* Eric W. Weisstein, Jun 19 2017 *)
PROG
(PARI) concat(vector(2), Vec(4*x^2*(1 + 6*x + 5*x^2 + x^3 - x^4) / ((1 - x)^5*(1 + x)^2) + O(x^30))) \\ Colin Barker, May 11 2017
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Sergey Perepechko, Dec 04 2008
STATUS
approved