OFFSET
0,3
LINKS
Robert Israel, Table of n, a(n) for n = 0..2044
M. Schwartz, Efficiently computing the permanent and Hafnian of some banded Toeplitz matrices, Linear Algebra and its Applications 430 (2009), 1364-1374.
Index entries for linear recurrences with constant coefficients, signature (2,1,6,3,2,1,-2,-1).
FORMULA
G.f.: (-x^4 - x^3 - x + 1)/(1 - 2*x - x^2 - 6*x^3 - 3*x^4 - 2*x^5 - x^6 + 2*x^7 + x^8).
EXAMPLE
The a(3) = 12 matchings are (12)(34)(56), (12)(35)(46), (12)(36)(45), (13)(24)(56), (13)(25)(46), (13)(26)(45), (14)(23)(56), (14)(25)(36), (14)(26)(35), (15)(23)(46), (15)(24)(36), (15)(26)(34).
MAPLE
f:= gfun:-rectoproc({a(n) + 2*a(n + 1) - a(n + 2) - 2*a(n + 3) - 3*a(n + 4) - 6*a(n + 5)- a(n + 6) - 2*a(n + 7) + a(n + 8), a(0) = 1, a(1) = 1, a(2) = 3, a(3) = 12, a(4) = 35, a(5) = 105, a(6) = 329, a(7) = 1014}, a(n), remember):
map(f, [$0..100]);
MATHEMATICA
LinearRecurrence[{2, 1, 6, 3, 2, 1, -2, -1}, {1, 1, 3, 12, 35, 105, 329, 1014}, 40] (* Jean-François Alcover, Apr 30 2019 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Robert Israel, Jan 22 2019
EXTENSIONS
a(0)=1 prepended and edited by Alois P. Heinz, Feb 28 2019
STATUS
approved