% Appendix B. Exact computations and data. \section{Exact computations}\label{app:data} \subsection{The method}\label{ss:data-method} For a hypergeometric datum $(\alpha,\beta)$ defined over $\Q$, a prime $p$ and $t\in\F_{p^r}$, the trace of Frobenius on the motive is given, in the normalisation of Beukers, Cohen and Mellit \cite{BCM2015}, by a finite hypergeometric sum, a polynomial in Gauss sums of $\F_{p^r}$. When $p^r\not\equiv1$ modulo the denominators of the datum, the sum is not defined over $\F_{p^r}$ and we pass to $\F_{p^{2r}}$. Floating-point evaluation is not reliable for $p^r$ beyond a few thousand, and all traces used in the paper were computed exactly as follows. \begin{enumerate}[label=\textup{(\arabic*)},leftmargin=2.2em] \item Every Gauss sum $g(\chi^k)=\sum_{x}\chi^k(x)\zeta_p^{\Tr x}$ of $\F_{p^r}$ is computed in a prime field $\F_\lambda$ with $\lambda\equiv1$ modulo $2(p^r-1)p$ and $\lambda<2^{40}$, which contains the required roots of unity. The discrete Fourier transform of length $p^r-1$ is converted into a convolution by Bluestein's chirp transform, and the convolution is computed exactly over $\Z$ by floating-point fast Fourier transforms on $8$-bit limbs, the partial sums staying far below the precision of double-precision arithmetic, and then reduced modulo $\lambda$. \item The normalised trace, multiplied by a power of $p$, is an integer $N$ with $|N|\le n\,p^{rw/2}$ by the Weil bound. It is reconstructed by the Chinese remainder theorem from enough moduli $\lambda$, and the bound is checked: a wrong residue produces a reconstruction far outside it, so that each value certifies itself. \item From the exact power sums $p_1,p_2,p_3$ of the normalised Frobenius $\phi$ and the functional equation $x^nc(1/x)=\delta\,c(x)$, with $\delta=\det\phi=\pm1$, the characteristic polynomial $c$ is determined when only one value of $\delta$ gives roots on the unit circle; for $\phi^2$ the sign is $\det(\phi)^2=1$. \item The polynomial is factored over $\Q$. Monic factors with integer coefficients are cyclotomic, by Kronecker's theorem. A non-cyclotomic irreducible quadratic $x^2-sx+1$ is attributed to $W$ if the $q$-adic valuation of $s$ is $-2$ (Newton slopes $0$ and $4$) and to $C$ if it is $-1$ (slopes $1$ and $3$); by Mazur's inequality the Newton polygon of each summand lies above its Hodge polygon, which is $(0,2,4)$ for $S$ and $(1,3)$ for $C$, so this attribution is forced. \end{enumerate} The scripts (\code{m5_hgmexact.py} for the Gauss sums, and \code{density_check.py}, \code{h2_table.py}, \code{noncm_check.py}, \code{rank7_table.py} and \code{make_tables.py} for the computations of this appendix) are in the deposit with their output; the tables below are generated from that output. The self-test of the Gauss-sum code compares the exact traces with floating-point values at small primes. \subsection{The classification at small primes}\label{ss:data-classify} \Cref{tab:classify} lists, for each of the three motives, the primes $q\le97$ (excluding the bad primes and $\ell$) at which the characteristic polynomial was determined, sorted by whether $W$ and $C$ are potentially Tate. For $\Hone$ the only prime at which $W$ is potentially Tate is $q=31$; for the other two motives there is none among the computed primes. At every computed prime, $C$ is potentially Tate exactly when $q$ is inert in $K_\Mot$, in accordance with \cref{lem:cm-det}. \input{generated/tab-classify.tex} \Cref{tab:witness} gives the witnesses used in the proofs of \cref{lem:cm-det} and \cref{thm:density}. For $\Hone$ the fixed prime is $\ell=3$ and the bad prime is $2$; for $\Sthreethree$ and $\Sthree$ the fixed prime is $\ell=5$ and the bad primes are $2$ and $3$. The characters are those of the quadratic fields $\Q(\sqrt D)$ unramified outside these primes. \input{generated/tab-witness.tex} \subsection{The motive \texorpdfstring{$\Hone$}{H2} up to 1000}\label{ss:data-h2} For all $\AHMhtwoN$ primes $5\le q\le\AHMhtwoMax$ the exact power sums $p_1=\tr\phi$ and $p_2=\tr\phi^2$ were computed. In every case they are those of the decomposition described in \cref{ss:numerics}: with $\ve=(\frac{-2}{q})$ on $L$, the polynomial $x^2-\frac{a_q}qx+\chi_{-4}(q)$ on $C$, and $t_W=p_1-\ve-\frac{a_q}{q}$, the identity $p_2=1+(\frac{a_q^2}{q^2}-2\chi_{-4}(q))+(t_W^2-2)$ holds exactly ($\AHMhtwoFail$ failures). In this decomposition $W$ is potentially Tate only at $q=\AHMhtwoPot$, where $t_W=2$. Two power sums do not determine the characteristic polynomial, so this computation is not a proof of the decomposition beyond $q\le97$, where \cref{tab:classify} applies; it is a consistency check over a larger range. \Cref{tab:h2} gives the values for $q<100$. \input{generated/tab-h2.tex} \subsection{The scan and rank seven}\label{ss:data-scan} The enumeration of \cref{prop:scan} runs over all multisets $\alpha$ that are unions of Galois orbits of roots of unity of order at most $30$, of total size at most eight, with $\beta=\alpha+\frac12$ and $\alpha\cap\beta=\emptyset$; for each, the Hodge numbers are computed from the interlacing of $\alpha$ and $\beta$, and the Levelt involution, the eigenspaces and their Gram matrices are computed in exact rational arithmetic. Of the $146$ data, $14$ have rank five; six of these have Hodge numbers $(1,1,1,1,1)$, forming three pairs exchanged by $\alpha\leftrightarrow\beta$. The rank-seven data and the classification of \cref{tab:rank7-data} are computed from exact characteristic polynomials in the same way, with the eigenvalues $\pm1$ counted with multiplicity.