%I #48 Jun 04 2024 17:14:10
%S 2,44,224,686,1622,3272,5924,9914,15626,23492,33992,47654,65054,86816,
%T 113612,146162,185234,231644,286256,349982,423782,508664,605684,
%U 715946,840602,980852,1137944,1313174,1507886,1723472,1961372,2223074,2510114,2824076,3166592
%N Number of 2-matchings of the n X n grid graph.
%C Number of ways two dominoes can be placed on an n X n chessboard.
%H Alois P. Heinz, <a href="/A242856/b242856.txt">Table of n, a(n) for n = 2..1000</a>
%H Ralf Stephan, <a href="/A242856/a242856_1.pdf">In how many ways can we place two dominoes on the n x n chessboard?</a> Proof of formula.
%H Ralf Stephan, <a href="/A242856/a242856.pdf">Two dominoes on the 3x3 chessboard</a>, illustration of a(3)=44.
%H <a href="/index/Do#domino">Index entries for sequences related to dominoes</a>.
%H <a href="/index/Mat#matchings">Index entries for sequences related to matchings</a>.
%H <a href="/index/Rec#order_05">Index entries for linear recurrences with constant coefficients</a>, signature (5,-10,10,-5,1).
%F a(n) = 2*n^4 - 4*n^3 - 5*n^2 + 13*n - 4.
%F G.f.: -2*x^2*(x^4-7*x^3+12*x^2+17*x+1) / (x-1)^5. - _Colin Barker_, Jun 26 2014
%F a(n + 1) = (1/2)*A046092(n)*(A046092(n) - 1) - A016742(n) - A054000(n). - _Nicolas Bělohoubek_, May 15 2024
%F E.g.f.: 4 - 2*x + exp(x)*(2*x^4 + 8*x^3 - 3*x^2 + 6*x - 4). - _Stefano Spezia_, Jun 04 2024
%t LinearRecurrence[{5, -10, 10, -5, 1}, {2, 44, 224, 686, 1622}, 50] (* _Paolo Xausa_, May 20 2024 *)
%o (Sage)
%o def a(n):
%o G = Graph(graphs.Grid2dGraph(n,n))
%o G.relabel()
%o return G.matching_polynomial()[n^2-4]
%o (PARI) Vec(-2*x^2*(x^4-7*x^3+12*x^2+17*x+1)/(x-1)^5 + O(x^100)) \\ _Colin Barker_, Jun 26 2014
%Y Second column of A242861. Cf. A016742, A046092, A054000, A210662.
%K nonn,easy
%O 2,1
%A _Ralf Stephan_, May 24 2014
%E a(7)-a(36) from _Alois P. Heinz_, Jun 01 2014