OFFSET
1,3
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
V. Kotesovec, Non-attacking chess pieces, 6ed, 2013
Index entries for linear recurrences with constant coefficients, signature (2, 4, -10, -5, 20, 0, -20, 5, 10, -4, -2, 1).
FORMULA
Explicit formula: 1/12*(n-2)^2*n^2*(2*n^2-4*n+5+3(-1)^n).
G.f.: -2*x^3*(3*x^8+58*x^7+160*x^6+518*x^5+442*x^4+518*x^3+160*x^2+58*x+3)/((x-1)^7*(x+1)^5).
MATHEMATICA
CoefficientList[Series[- 2 x^2 * (3 x^8 + 58 x^7 + 160 x^6 + 518 x^5 + 442 x^4 + 518 x^3 + 160 x^2 + 58 x + 3)/((x - 1)^7 * (x + 1) ^5), {x, 0, 1 50}], x] (* Vincenzo Librandi, May 31 2013 *)
LinearRecurrence[{2, 4, -10, -5, 20, 0, -20, 5, 10, -4, -2, 1}, {0, 0, 6, 128, 600, 2688, 7350, 19968, 42336, 89600, 163350, 297600}, 30] (* Harvey P. Dale, Aug 31 2024 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vaclav Kotesovec, May 13 2010
STATUS
approved