OFFSET
0,4
COMMENTS
For n>1, number of ways to place two dominoes horizontally on an n X n chessboard.
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (5,-10,10,-5,1).
FORMULA
G.f.: x*(-2*x^3 + 17*x^2 - 4*x + 1) / (1-x)^5.
E.g.f.: exp(x)*x*(2 - x + 4*x^2 + x^3)/2. - Stefano Spezia, Jan 21 2026
MATHEMATICA
Table[n/2 (n^3-2n^2-2n+5), {n, 0, 40}] (* or *) LinearRecurrence[{5, -10, 10, -5, 1}, {0, 1, 1, 12, 58}, 40] (* Harvey P. Dale, Jul 19 2018 *)
CoefficientList[Series[x*(-2*x^3+17*x^2-4*x+1)/(1-x)^5, {x, 0, 35}], x] (* Vincenzo Librandi, Jan 20 2026 *)
PROG
(Magma) m := 35; R<x> := PowerSeriesRing(Integers(), m+1); f := x * (-2*x^3 + 17*x^2 - 4*x + 1) / (1 - x)^5; [ Coefficient(f, n) : n in [0..m] ]; // Vincenzo Librandi, Jan 20 2026
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Ralf Stephan, Jun 09 2014
STATUS
approved
