OFFSET
1,3
LINKS
Colin Barker, Table of n, a(n) for n = 1..1000
Eric Weisstein's World of Mathematics, Black Bishop Graph
Eric Weisstein's World of Mathematics, Graph Cycle
Index entries for linear recurrences with constant coefficients, signature (2,2,-6,0,6,-2,-2,1).
FORMULA
a(n) = (n-1)^2*(2*n^2-4*n+3-3*(-1)^n)/24.
a(n) = 2*a(n-1)+2*a(n-2)-6*a(n-3)+6*a(n-5)-2*a(n-6)-2*a(n-7)+a(n-8).
G.f.: (-2*x^3*(1+x+4*x^2+x^3+x^4))/((-1+x)^5*(1+x)^3).
MATHEMATICA
Table[(n - 1)^2 (2 n^2 - 4 n + 3 - 3 (-1)^n)/24, {n, 20}]
LinearRecurrence[{2, 2, -6, 0, 6, -2, -2, 1}, {0, 0, 2, 6, 24, 50, 114, 196}, 20]
CoefficientList[Series[-((2 x^2 (1 + x + 4 x^2 + x^3 + x^4))/((-1 + x)^5 (1 + x)^3)), {x, 0, 20}], x]
PROG
(PARI) concat(vector(2), Vec(2*x^3*(1 + x + 4*x^2 + x^3 + x^4) / ((1 - x)^5*(1 + x)^3) + O(x^50))) \\ Colin Barker, Jun 27 2017
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Eric W. Weisstein, Jun 26 2017
STATUS
approved