This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
%I A220638 #37 Feb 16 2025 08:33:18 %S A220638 1,1,10,369,92801,128171936,1040315976961,48590896359378961, %T A220638 13140746227808545282304,20540255065209806005525289313, %U A220638 185661218973084382181156348510614065,9703072851259276652446200332793680010752000,2932144456272256572796083896528773941130429279461761 %N A220638 Number of ways to reciprocally link elements of an n X n array either to themselves or to exactly one king-move neighbor. %C A220638 Main diagonal of A220644. %C A220638 Row sums of A243424. - _Alois P. Heinz_, Jun 04 2014 %C A220638 Number of matchings (i.e., Hosoya index) in the n X n kings graph. - _Andrew Howroyd_, Apr 07 2016 %H A220638 Alois P. Heinz, <a href="/A220638/b220638.txt">Table of n, a(n) for n = 0..16</a> %H A220638 Eric Weisstein's World of Mathematics, <a href="https://mathworld.wolfram.com/IndependentEdgeSet.html">Independent Edge Set</a> %H A220638 Eric Weisstein's World of Mathematics, <a href="https://mathworld.wolfram.com/KingGraph.html">King Graph</a> %H A220638 Eric Weisstein's World of Mathematics, <a href="https://mathworld.wolfram.com/Matching.html">Matching</a> %e A220638 Some solutions for n=3 0=self 1=nw 2=n 3=ne 4=w 6=e 7=sw 8=s 9=se (reciprocal directions total 10) %e A220638 ..8..6..4....0..9..7....6..4..0....0..6..4....9..0..8....6..4..0....8..0..0 %e A220638 ..2..7..0....9..3..1....8..6..4....6..4..7....0..1..2....0..0..8....2..6..4 %e A220638 ..3..6..4....0..1..0....2..0..0....0..3..0....0..0..0....0..0..2....6..4..0 %p A220638 b:= proc(n, l) option remember; local d, f, k; %p A220638 d:= nops(l)/2; f:=false; %p A220638 if n=0 then 1 %p A220638 elif l[1..d]=[f$d] then b(n-1, [l[d+1..2*d][], true$d]) %p A220638 else for k to d while not l[k] do od; b(n, subsop(k=f, l))+ %p A220638 `if`(k<d and n>1 and l[k+d+1], %p A220638 b(n, subsop(k=f, k+d+1=f, l)), 0)+ %p A220638 `if`(k>1 and n>1 and l[k+d-1], %p A220638 b(n, subsop(k=f, k+d-1=f, l)), 0)+ %p A220638 `if`(n>1 and l[k+d], b(n, subsop(k=f, k+d=f, l)), 0)+ %p A220638 `if`(k<d and l[k+1], b(n, subsop(k=f, k+1=f, l)), 0) %p A220638 fi %p A220638 end: %p A220638 a:= n-> b(n, [true$(n*2)]): %p A220638 seq(a(n), n=0..10); # _Alois P. Heinz_, Jun 03 2014 %t A220638 b[n_, l_] := b[n, l] = Module[{d, f, k}, d = Length[l]/2; f = False; Which[ n == 0, 1, l[[1 ;; d]] == Array[f&, d], b[n - 1, Join [l[[d+1 ;; 2d]], Array[True&, d]]], True, For[k = 1, !l[[k]], k++]; b[n, ReplacePart[l, k -> f]] + If[k < d && n > 1 && l[[k + d + 1]], b[n, ReplacePart[l, k | k + d + 1 -> f]], 0] + If[k > 1 && n > 1 && l[[k + d - 1]], b[n, ReplacePart[l, k | k + d - 1 -> f]], 0] + If[n > 1 && l[[k + d]], b[n, ReplacePart[l, k | k + d -> f]], 0] + If[k < d && l[[k + 1]], b[n, ReplacePart[l, k | k + 1 -> f]], 0]]]; a[n_] := b[n, Array[True&, 2n]]; Table[Print["a(", n, ") = ", a[n]]; a[n], {n, 0, 12}] (* _Jean-François Alcover_, Feb 01 2017, after _Alois P. Heinz_ *) %Y A220638 Cf. A239273 (perfect matchings), A063443 (independent vertex sets), A234622 (cycles). %K A220638 nonn %O A220638 0,3 %A A220638 _R. H. Hardin_, Dec 17 2012 %E A220638 a(10)-a(12) from _Alois P. Heinz_, Jun 03 2014