\section{Computational details}\label{sec:B} \paragraph{Independent checks of Theorem~\ref{thm:5.5}.} Theorem~\ref{thm:5.5} rests on the classification of the components in Section~\ref{sec:5.4}, so I checked it by two computations that do not use it. \begin{enumerate} \item A transfer-matrix computation of the polynomials $g_n$ for $n \le 10$, based on Lemma~\ref{lem:2.3} and a decomposition by closing the vertices one at a time. It reproduces the values $(-1)^{\binom n2} U_n$, $n \le 10$, which Berndsen computed by a different method \cite[Table~2.2]{Berndsen} (the value for $n = 10$ was new there; $U_9$ also appears in \cite[Table~3]{SW12}) and which are listed in \cite{OEIS}; in the present sign convention $U_9 = 2086844497920$ and $U_{10} = -27369126116720640000$, and its values $g_n(-2)$, $4 \le n \le 10$, agree with Theorem~\ref{thm:5.5}. \item A direct evaluation of the sum in Lemma~\ref{lem:5.1} for $k = 2$, where $\sigma$ runs over representatives of the conjugacy classes of partial derangements (weighted by the class size) and $\tau$ over all partial derangements arc-disjoint from $\sigma$, with exact integer determinants. This uses only the BEST theorem and Lemma~\ref{lem:5.2}. It agrees with Theorem~\ref{thm:5.5} for $4 \le n \le 12$; for $n = 12$ both give the same $82$-digit integer. \end{enumerate} The values $n = 11$ and $n = 12$ were not used in finding the formula. Similarly, Theorem~\ref{thm:A.2} agrees with the transfer-matrix values $g_n(-1)$ for $4 \le n \le 10$, and the reductions of Theorems~\ref{thm:A.3} and~\ref{thm:6.1} agree with the exact values of $g_{p+2}(-1)$ for all $p < 200$ and of $g_{p+3}(-2)$ for all $p < 140$. \paragraph{Checks of the computations for five layers.} I checked the computations behind Theorem~\ref{thm:closed} in several independent ways. \begin{enumerate} \item The first values are $A_4(N,1) = 1, 0, 0, 0, 0, 0, 1382400, -663552000, -10450944000$ for $N = 0, \dots, 8$. For $N \le 7$ they agree with a direct enumeration of the quadruples of arc-disjoint derangements with exact determinants ($4.06 \cdot 10^9$ quadruples for $N = 7$), which does not use Theorem~\ref{thm:7.4}, and for $N = 6$ with Lemma~\ref{lem:7.2}(3) and $D_6 = -199065600$. The same programs with four indices reproduce the values of $A_2(N,1)$ obtained by direct enumeration for $N \le 8$. \item A second evaluation of the pairing, developed and programmed separately, does not use Section~\ref{sec:7.4}: it averages the distinguished index over all six indices, contracts all blocks other than the pairs, and integrates the pair variables over the singular values of a complex antisymmetric Gaussian matrix, which gives a finite sum with $608$ integer coefficients. It leads to the same polynomials $N_A$, $N_B$, and to the same values of $A_4(p+5,1)$ modulo $p^2$ for all $27$ primes $7 \le p \le 113$. \item A direct evaluation of $A_4(p+5,1)$ modulo $p^2$ from the $361$ weights, without the closed form, agrees with Theorem~\ref{thm:crit5} for all $2257$ primes $13 \le p \le 20\,000$. \item The exact value $D_{12} = 203502986486729594070631126659433074964561920000000$, which I computed separately by a recursion for the coefficients of powers of the determinant that uses no result of this paper, gives $D_{12}/7^3 \equiv 6 \pmod 7$, the entry for $p = 7$ in Table~\ref{tab:8.1}. This checks the whole chain from Lemma~\ref{lem:7.1} to Theorem~\ref{thm:crit5}, including Theorem~\ref{thm:7.4}, at $N = 12$. \end{enumerate} The evaluations in items 2 and 3 start from Theorem~\ref{thm:7.4}, so they guard against errors in the evaluation, not against an error in the pairing formula itself; the latter is checked by the direct enumeration for $N \le 7$ and by item 4. \paragraph{The terms $S_i$ of Lemma~\ref{lem:7.6}.} For six indices the terms $S_i$ are of three kinds. (i) For every partition $\tau$ of $\mathcal I$ that has an odd block and no block of size $4$ or $6$, the term $s\,c_P(\tau)\,\varepsilon(\tau)\,z^\tau$ of $P$, where $c_P(\tau) = -\mu(\tau)$ is $-24$, $-4$, $2$, $-2$, $-1$, $1$ for the types $5+1$, $3+3$, $3+2+1$, $3+1+1+1$, $2+2+1+1$, $2+1+1+1+1$, and $0$ if $\{0\}$ is a block. (ii) The terms $t\,\varepsilon(\tau)\,z^\tau$ of $Q$ for the same types and for the type $1+\dots+1$, except those in which $\{0\}$ is a block (they cannot be paired, since $\theta_{\{0\}}$ does not occur in $P$). (iii) For each set $B$ of size $4$ with complement $\{i,j\}$, the variable $y_B$ occurs in the terms of types $4+2$ and $4+1+1$, with coefficients $-6$ and $6$ in $P$ and $1$ and $1$ in $Q$ (times the shuffle signs); writing $s\alpha_B y_B$ and $t\beta_B y_B$ for these terms, the contraction gives $e^{st\alpha_B\beta_B}$, whose exponent is $-6st\,|y_{ij}|^2$ plus monomials containing $\theta_{\{i\}}\theta_{\{j\}}$. Each monomial of (i), (ii) and of the non-scalar part of (iii) is one $S_i$; all are even and square to zero. The elimination of the Grassmann variables expands $\prod_i (1 + S_i)$ in this form.