\documentclass[11pt]{article} \usepackage[a4paper,margin=26mm]{geometry} \usepackage[T1]{fontenc} \usepackage{lmodern,amsmath,amssymb,amsthm,mathtools} \usepackage{booktabs,longtable,array,microtype} \usepackage{needspace,etoolbox} \usepackage[round,authoryear]{natbib} \usepackage[hidelinks]{hyperref} \hypersetup{pdftitle={Optimal families of complete cyclotomic factors for finite-field extensions}, pdfauthor={GPT-6.2 Astra},pdfsubject={Finite-field construction and prime distribution}} \newcommand{\Q}{\mathbb Q} \newcommand{\F}{\mathbb F} \newcommand{\Z}{\mathbb Z} \newcommand{\C}{\mathbb C} \newcommand{\ord}{\operatorname{ord}} \newcommand{\Gal}{\operatorname{Gal}} \newcommand{\Spec}{\operatorname{Spec}} \newcommand{\RH}{\operatorname{RH}} \newcommand{\poly}{\operatorname{poly}} \newtheorem{theorem}{Theorem}[section] \newtheorem{proposition}[theorem]{Proposition} \newtheorem{lemma}[theorem]{Lemma} \newtheorem{corollary}[theorem]{Corollary} \theoremstyle{definition} \newtheorem{definition}[theorem]{Definition} \newtheorem{example}[theorem]{Example} \theoremstyle{remark} \newtheorem{remark}[theorem]{Remark} \BeforeBeginEnvironment{theorem}{\Needspace{8\baselineskip}} \BeforeBeginEnvironment{proposition}{\Needspace{8\baselineskip}} \BeforeBeginEnvironment{lemma}{\Needspace{8\baselineskip}} \BeforeBeginEnvironment{corollary}{\Needspace{8\baselineskip}} \BeforeBeginEnvironment{example}{\Needspace{8\baselineskip}} \lefthyphenmin=3 \righthyphenmin=3 \setlength{\emergencystretch}{2em} \usepackage[table]{xcolor} \usepackage{graphicx} \definecolor{passcell}{HTML}{E4F0EC} \definecolor{misscell}{HTML}{FAE9DD} \title{Optimal families of complete cyclotomic factors for finite-field extensions} \author{GPT-6.2 Astra} \date{1 December 2026} \begin{document} \maketitle \begin{abstract} Fix a prime \(r\). Bhargava, Ivanyos, Mittal and Saxena asked for families of squarefree polynomials in which one member has the following property. For some multiple \(d\) of \(r\), the number of its irreducible factors of degree \(d\) is coprime to \(r\). We choose the polynomials before the characteristic \(p\) is known and allow \(O(\sqrt P\log\log P)\) exceptional primes in \(P/21\), the shortest such list has length \((\tfrac12\log P-\log\log P-\log\log\log P)/\log r+O(1)\). Among families of products of complete cyclotomic factors, the least possible leading term of the sum of their degrees is \((r-1)(\log P)^2\log\log P/(8\log^2 r)\). Separate prime-exponent binomials attain it. For fixed degree budgets we give the exact optimal limiting density. The restriction to complete factors matters: classical Gaussian period polynomials achieve the same binomial coverage in total degree \(O_r(\log P)\). A separate density-one result gives simultaneous witnesses for all prime degrees up to \(P^{1/2+o(1)}\). At each such characteristic the witnesses construct extensions of every degree supported on those primes. The estimates use the zero theorem for rational Dirichlet \(L\)-functions. \end{abstract} \section{Precomputing the input polynomial} A polynomial over \(\F_p\) can be useful for constructing an extension even when it is reducible. Write \(N_d(f)\) for the number of degree-\(d\) monic irreducible factors of a squarefree polynomial \(f\). Bhargava, Ivanyos, Mittal and Saxena use the condition \begin{equation}\label{eq:bims} r\mid d,\qquad r\nmid N_d(f)\qquad\text{for some }d. \end{equation} From such a polynomial they construct \(\F_{p^{r^e}}\) for every \(e\ge1\). They ask for families of polynomials in which one member has this property \citep[Property~1.1, Theorem~1.4 and \S6.1]{BhargavaEtAl2017}. Suppose the characteristic will be specified later. How small a family can one prepare now, and how often will all its members fail together? We answer this for products of complete cyclotomic factors. The optimum in total degree is attained by keeping the simplest candidates separate: one binomial for each of the first primes congruent to one modulo \(r\). At a fixed budget the answer is more detailed. In degree three, for example, a total degree budget of twelve allows coverage of exactly eight ninths of prime characteristics in the limit (Corollary~\ref{cor:fixed}). Two cubics from the same cyclotomic fields attain that coverage at total degree six when period polynomials are admitted. For example, over \(\F_{41}\) the binomials \(X^{97}-1,\ X^{37}-1,\ X^{61}-1\) work for \(r=2,3,5\), respectively. After removing \(X-1\) their factor degrees and counts are \((96,1),(18,2),(10,6)\). The three witnesses therefore suffice to construct, among others, the extension of degree \(2^2\cdot3\cdot5=60\). The calculation uses three modular orders. It requires none of the irreducible factors as input. Let \(P\) tend to infinity through integers and let \(I_P=(P/2,P]\). All logarithms are natural. For a finite list \(\mathcal S\) of distinct primes \(\ell\equiv1\bmod r\), count a prime \(p\in I_P\) as a failure if none of \(X^\ell-1,\ \ell\in\mathcal S,\ \ell\ne p\), satisfies \eqref{eq:bims}. Write \(E_r(\mathcal S;P)\) for the number of failures. Lists may vary with \(P\). The analytic input throughout is the zero theorem for rational Dirichlet characters, including the trivial character: every nontrivial zero has real part \(1/2\) \citep{Alpoge2026}. All algebraic equivalences below hold independently of that input. \begin{theorem}[Number of candidates]\label{thm:length} Fix a prime \(r\) and a real \(A>1\). Suppose every member of \(\mathcal S=\mathcal S(P)\) is at most \((\log P)^A\), and put \(k=|\mathcal S|\). Then \begin{equation}\label{eq:iff} E_r(\mathcal S;P)=O(\sqrt P\log\log P) \quad\Longleftrightarrow\quad r^k\gg\frac{\sqrt P}{\log P\,\log\log P}. \end{equation} One can take the first \(k\) primes in the stricter progression \(\ell\equiv1\bmod 12r\) at the threshold. Conversely, suppose a family of squarefree products of complete cyclotomic polynomials, each product of degree \(\le(\log P)^A\), has \eqref{eq:bims} for some member at all but \(O(\sqrt P\log\log P)\) primes in \(I_P\). Then the same lower bound on \(r^k\) holds with \(k\) the number of distinct primes \(\ell\equiv1\bmod r\) dividing the indices of its cyclotomic factors. \end{theorem} Thus combining factors in a more elaborate polynomial cannot save prime conductors at this accuracy. The assertion concerns the number of conductors, which can differ from the number of polynomials in such a family. The additive constant in the length depends on the constants allowed in \eqref{eq:iff}. Theorem~\ref{thm:short} gives uniform estimates for growing \(r\). Theorem~\ref{thm:edge} shows that the same precomputation works for all prime degrees up to \(P^{1/2+\eta(P)}\), where \(\eta(P)\ge0\) tends to zero, for a proportion of characteristics tending to one. \paragraph{Relation to earlier algorithms.} Adleman and Lenstra already choose a prime for which \(p\) is inert in a prescribed cyclotomic subfield and use Gaussian periods to construct an extension \citep[Algorithm~A, steps 2--3]{AdlemanLenstra1986}. Tang's Lemma~2.1 gives the exact progression \(1\bmod12r\) and power test used here for each individual \(p>\max(n,3)\), \(r\le n\), with witness size \(O(B^{32})\), \(B=20+(n+1)(1+\lceil\log_2p\rceil)\) \citep{Tang2026}. The same pointwise argument with the zero-free lines of \citet{Hu2026Hecke} and \citet{Liu2026Mixed} gives exponents \(8\) and \(<7.895\), respectively, as detailed in the companion, \S21. The general construction of fields also follows from Shoup's reduction and OpenAI's prime-field factorization theorem \citep{Shoup1990,OpenAI2026}. Our cost question is how much information can be prepared before \(p\) is given. Altman's amortized factorization across primes starts with one specified irreducible integer polynomial \citep{Altman2025}. The earlier extended manuscript gives a cyclotomic factor-count obstruction, a selected-list sieve, and a simultaneous bound up to polylogarithmic degree \citep[Theorems~1.12, 1.14 and Proposition~27.2]{Earlier}. \section{Recognizing a witness by one modular power} \begin{lemma}\label{lem:test} Let \(\ell\ne p\) be prime and \(r\mid\ell-1\) prime. Over \(\F_p\) the binomial \(X^\ell-1\) satisfies \eqref{eq:bims} if and only if \[ p^{(\ell-1)/r}\not\equiv1\pmod\ell . \] \end{lemma} \begin{proof} Put \(h=\ord_\ell(p)\). Frobenius has orbits of size \(h\) on the primitive \(\ell\)th roots, so \(\Phi_\ell\) has \((\ell-1)/h\) factors of degree \(h\). The additional root \(1\) has degree one. Consequently \eqref{eq:bims} says exactly \(v_r(h)=v_r(\ell-1)>0\). This is equivalent to \(h\nmid(\ell-1)/r\). \end{proof} For \(r=2\) it matters that all nonlinear factors of each candidate have one degree. Stickelberger's discriminant criterion for a squarefree polynomial in odd characteristic counts the parity of the \emph{total} number of even-degree factors. The observation following the general family question in \citet[\S6.1]{BhargavaEtAl2017} would infer a nonsquare discriminant from \eqref{eq:bims} for the whole polynomial. Over \(\F_3\) take \[ (X^2+1)(X^4+X+2). \] The quadratic has no root. For the quartic \(g\), \(X^9-X\equiv X^2(X+1) \bmod g\), and \(g(0)=g(-1)=2\). Thus \(g\) has no factor of degree one or two and is irreducible. There is one factor of degree two and one of degree four. The product satisfies \eqref{eq:bims} and has square discriminant. Extracting a single equal-degree block is precisely what restores the discriminant argument. The binomials of Lemma~\ref{lem:test} already have that block. There is a permutation interpretation of \eqref{eq:bims}. An \(r\)th power in a symmetric group has each cycle length divisible by \(r\) occurring with multiplicity divisible by \(r\), and this condition is sufficient \citep[\S2]{Pouyanne2002}. Thus \eqref{eq:bims} detects exactly when the Frobenius permutation on the roots has no \(r\)th root in the full symmetric group. \begin{proposition}[Exact reduction to separate conductors]\label{prop:compress} Every finite family of squarefree products of complete cyclotomic factors can be replaced by a family of separate polynomials \(\Phi_\ell\) for primes \(\ell\equiv1\bmod r\), optionally together with \(\Phi_{r^2}\). The replacement has at most the original total degree and supplies a witness at every characteristic \(p\ne r\) where the original supplied one. At a given characteristic a witness must have squarefree reduction and satisfy \eqref{eq:bims}. \end{proposition} \begin{proof} For each index \(n\), inspect its exact prime powers \(q^j\). If just one has \(r\mid\varphi(q^j)\), keep \(\Phi_q\) when \(q\ne r\) and \(\Phi_{r^2}\) when \(q=r\). Discard repetitions. Each polynomial kept can be charged to a different source block \(\Phi_n\). Its degree divides \(\varphi(n)\), so the total degree cannot increase. Fix a characteristic \(p\ne r\) at which some product passes. Its blocks have squarefree reductions with disjoint roots. At the successful degree \(d\), some block contributes a number of degree-\(d\) factors prime to \(r\). First suppose \(p\nmid n\). Then \(d=\ord_n(p)\), \(r\mid d\), and \(v_r(d)=v_r(\varphi(n))>0\). Writing \(n=\prod q^j\) in exact prime powers, the valuation on the left is the maximum of \(v_r(\ord_{q^j}(p))\), while that on the right is the sum of the \(v_r(\varphi(q^j))\). Each local order divides its local totient. Therefore exactly one local totient has positive valuation and its local order attains that valuation. If \(q\ne r\), reduction from \(q^j\) to \(q\) changes the order by a power of \(q\); so \(q\equiv1\bmod r\) and \(\Phi_q\) passes by Lemma~\ref{lem:test}. If \(q=r\), necessarily \(j\ge2\). If \(p^{r-1}\equiv1\bmod r^2\), successive powering gives \(p^{(r-1)r^{j-2}}\equiv1\bmod r^j\), precluding the full local valuation. Hence \(r\mid\ord_{r^2}(p)\), and \(\Phi_{r^2}\) itself passes since \(v_r(\varphi(r^2))=1\). This includes \(r=2\). Finally, if \(n=p^a m\) with \(p\nmid m\) and \(a>0\), reduction of \(\Phi_{p^a m}(X)=\Phi_m(X^{p^a})/\Phi_m(X^{p^{a-1}})\) gives \(\Phi_m^{\varphi(p^a)}\). Squarefreeness forces \(p=2,\ a=1\). Deleting this prime power leaves both the reduced polynomial and the list of local totients divisible by \(r\) unchanged. The preceding argument applied to \(m\) gives the same replacement. \end{proof} In particular, for any finite set of characteristics other than \(r\), the minimum total degree needed to cover at least a prescribed number of them is the same in these two classes. This holds at finite scale without an estimate for primes. The replacement can strictly improve coverage. Over \(\F_3\) the polynomials \(\Phi_5\) and \(\Phi_{10}\) are distinct irreducible quartics: \(3\) has order four modulo both conductors. Their product has two factors of degree four and fails for \(r=2\). Both blocks select the same \(\Phi_5\), which succeeds alone. \begin{corollary}[The optimal density at fixed cost]\label{cor:fixed} Fix a total degree budget \(W\). Sort the costs \(\ell-1\) for the primes \(\ell\equiv1\bmod r\), together with one additional cost \(r(r-1)\), counting ties separately. Let \(j\) be the largest number of initial costs whose sum is at most \(W\). Among families of complete cyclotomic products of total degree at most \(W\), the largest fraction of primes in \(I_P\) that can be covered tends to \(1-r^{-j}\). Taking the separate factors for those \(j\) costs attains this limit. \end{corollary} \begin{proof} For a prime conductor \(\ell\), the failing units form a subgroup of index \(r\) modulo \(\ell\) by Lemma~\ref{lem:test}. For the additional factor \(\Phi_{r^2}\), the same orbit count gives failure exactly when \(p^{r-1}=1\bmod r^2\). Each nonzero class modulo \(r\) lifts uniquely to such a root, giving index \(r\) here too. The moduli are pairwise coprime. For any choice of \(t\) separate factors their simultaneous failure thus occupies \(r^{-t}\) of the reduced classes. The prime number theorem in fixed progressions gives this same fraction of primes in \(I_P\) asymptotically. Only finitely many separate factors have degree at most \(W\), so the convergence is uniform over their subsets. Proposition~\ref{prop:compress} reduces an arbitrary family to such a subset at the same or lower cost, and its size cannot exceed \(j\). \end{proof} For \(r=3\), the two smallest costs are both six. At total degree twelve the choice \(\Phi_7,\Phi_9\) covers a limiting fraction \(8/9\). No family of complete cyclotomic products with that budget can do better. This calculation only needs the prime number theorem for fixed moduli. \paragraph{What changes for period polynomials.} For the same two conductors put \[ g_7(T)=T^3+T^2-2T-1,\qquad g_9(T)=T^3-3T+1. \] The identities \(Z^3g_j(Z+Z^{-1})=\Phi_j(Z)\), \(j=7,9\), pair each primitive root with its inverse. For \(p\nmid j\) these pairs give three distinct roots of \(g_j\): the equation \(u+u^{-1}=v+v^{-1}\) forces \(u=v\) or \(u=v^{-1}\). Frobenius acts by multiplication by \(p\) on the three classes modulo sign. Hence \(g_j\bmod p\) is irreducible exactly for \(p\not\equiv\pm1\bmod j\). These are precisely the successes of \(\Phi_j\) on units. The two cubics therefore cover the same \(32\) of the \(36\) reduced classes modulo \(63\). More generally, for prime \(\ell\equiv1\bmod r\) let \(H\) be the subgroup of \(r\)th powers in \((\Z/\ell\Z)^\times\). Form the Gaussian periods \(\eta_{aH}=\sum_{h\in H}\zeta_\ell^{ah}\) and the monic integral polynomial \(G_{\ell,r}(T)=\prod_{aH}(T-\eta_{aH})\), before specifying \(p\). If \(p\ne\ell\) and \(p\notin H\bmod\ell\), Frobenius generates the quotient of order \(r\). The periods form an integral basis of the corresponding cyclic subfield, so their reductions at the inert prime are distinct conjugates. This is Kummer's period lemma \citep[Lemma~6]{AdlemanLenstra1986}. If \(p\in H\bmod\ell\), Frobenius fixes every period and all roots lie in \(\F_p\). At \(p=\ell\) they coalesce. Thus \(G_{\ell,r}\) passes at exactly the same primes as \(\Phi_\ell\). For the first \(k=\lceil\log P/(2\log r)\rceil\) conductors the resulting total degree is \(rk\). Its coefficients are small as well: \(|\eta_{aH}|\le(\ell-1)/r\) bounds each coefficient by \((1+(\ell-1)/r)^r\). Since the largest conductor is \(O_r(k\log(2k))\), each coefficient uses \(O_r(\log\log P)\) bits for fixed \(r\). \begin{figure}[htbp] \centering\includegraphics[width=.84\linewidth]{cyclotomic_cost.pdf} \caption{Optimal limiting coverage by complete cyclotomic factors for \(r=3\). Each jump adds the indicated cyclotomic polynomial. The vertical scale gives equal height to each threefold reduction in the fraction of characteristics missed.} \label{fig:cost} \end{figure} \section{Counting simultaneous power residues} We write \(\Lambda\) for the von Mangoldt function. The subgroup-character average with weight \(\log(x/n)\) already appears in \citet[\S4, equation~(4.2)]{LLS2015}. Here the index is prescribed by the list of conductors, and a difference of three such weights counts failures inside \(I_P\). \begin{lemma}\label{lem:dirichlet-log-weight} There is an absolute constant $C_0$ such that, for every Dirichlet character $\chi$ modulo $q\ge1$ and every $x\ge2$, \[ \left|\operatorname{Re}\sum_{n\le x}\Lambda(n)\chi(n) \log(x/n)-\delta_\chi x\right| \le C_0\sqrt{x}\log(2q), \] where $\delta_\chi=1$ for the principal character and is zero otherwise. \end{lemma} \begin{proof} We include the uniformity argument because the modulus below can be larger than any fixed power of $x$. For a primitive nonprincipal character of conductor $q\ge3$, use Lemma~2.2 and the real-part identity in the corrected author version of \citet[corrected author pp.~5--7, Lemmas~2.1--2.3]{LLS2015}. Their Lemma~2.3, evaluated at the fixed value $x_0=100$, gives \[ |\operatorname{Re}B(\chi)|\ll\log(2q). \] Indeed the denominator in that identity is at least $1-2/10+1/100=81/100$, and its finite prime sum and elementary terms are bounded absolutely. Lemma~2.2 therefore gives the asserted bound: its remaining terms are $O(\log(2q)\log x+(\log x)^2+1)$, which are absorbed in $O(\sqrt{x}\log(2q))$. The primitive principal character is the Riemann zeta case, covered by their Lemma~2.1. If $\chi$ is induced by a primitive character $\chi^*$, the two sums differ only at prime powers whose prime divides $q$. For each such prime $v$ the absolute difference is at most \[ \log v\sum_{1\le j\le\log x/\log v}\log(x/v^j) \le(\log x)^2. \] There are at most $\log(2q)/\log2$ such primes. Finally $(\log x)^2\ll\sqrt{x}$ uniformly for $x\ge2$. This proves the assertion, including imprimitive principal characters, with an absolute constant and without a restriction on $q$. \end{proof} \begin{lemma}\label{lem:count} For any such list let \(M=\prod_{\ell\in\mathcal S}\ell\). For \(P\ge4\), with absolute implied constants, \[ E_r(\mathcal S;P)\ \ll\ k+\frac{P/r^k+\sqrt P\log(2M)}{\log P}. \] If \(m\) is coprime to \(M\) and \(H\subseteq(\Z/m\Z)^\times\) is a subgroup of index \(J\), the number of primes in \(I_P\) that belong to \(H\bmod m\) and are nonzero \(r\)th powers at \emph{every} listed \(\ell\) is at least \[ c\,\frac{P}{Jr^k\log P} -C\,\frac{\sqrt P\log(2mM)}{\log P} \] for absolute \(c,C>0\). \end{lemma} \begin{proof} At each \(\ell\) choose a character of exact order \(r\). The average of its first \(r\) powers is the indicator of the subgroup of \(r\)th powers, extended by zero on nonunits. Multiply these indicators, and for the lower bound also multiply by the average of the \(J\) characters trivial on \(H\) modulo \(m\). The product \(I(n)\) has a character expansion modulo \(mM\) with nonnegative coefficients summing to one. CRT gives exactly one principal term, of weight \(w=1/(Jr^k)\). Lemma~\ref{lem:dirichlet-log-weight} consequently gives \[ S(x):=\sum_{n\le x}\Lambda(n)I(n)\log(x/n) =wx+O(\sqrt{x}\log(2mM)). \] At \(m=1,\ x=2P\), each failing prime coprime to \(M\) contributes at least \(\log(P/2)\log2\). There are at most \(k\) candidate primes dividing \(M\). This proves the upper bound. For the lower bound take \(S(P)-2S(P/\sqrt2)+S(P/2)\). The weight on \([P/2,P/\sqrt2]\) is \(\log(2n/P)\); on \([P/\sqrt2,P]\) it is \(\log(P/n)\), and elsewhere it is zero. Its main term is \(wP(1-1/\sqrt2)^2\). Proper prime powers cost \(O(\sqrt P)\), since \(\sum_{q^j\le P,\,j\ge2,\ q\ {\rm prime}}\log q\ll\sqrt P\) by Chebyshev's bound. Each prime contributes at most \(\log P\log\sqrt2\). This proves the stated inequality. \end{proof} \begin{proof}[Proof of Theorem~\ref{thm:length}] Set \(k_0=\lceil\log P/(2\log r)\rceil\). For \(k\le k_0\) the cap on \(\ell\) gives \(\log(2M)=O_{r,A}(\log P\log\log P)\). Taking \(m=1\) in Lemma~\ref{lem:count} sandwiches \(E_r\) between positive absolute multiples of \(P/(r^k\log P)\), up to additive \(O_{r,A}(\sqrt P\log\log P)\) errors on both sides. For \(k>k_0\) any \(k_0\) candidates give the required upper bound, and the length condition holds automatically. This proves \eqref{eq:iff}. The prime number theorem in the fixed progression \(1\bmod12r\) supplies \(\gg_{r,A}(\log P)^A/\log\log P\) candidates under the cap. Taking \(k\) to be the ceiling of \(\log(\sqrt P/(\log P\log\log P))/\log r\) now proves attainability. For a product \(f=\prod_{n\in T}\Phi_n\) of the stated degree, every prime \(q\mid n\) satisfies \(q-1\le\varphi(n)\le\deg f\). For large \(P\) the primes in \(I_P\) thus avoid all the conductors. By Proposition~\ref{prop:compress}, the whole family fails whenever the listed binomials fail and \(p^{r-1}\equiv1\bmod r^2\). The latter condition defines a subgroup of index \(r\): each nonzero class modulo \(r\) has exactly one lift solving \(X^{r-1}=1\bmod r^2\). This gives the subgroup \(\{1\}\) modulo four when \(r=2\). Use the lower half of Lemma~\ref{lem:count} with \(m=r^2,\ J=r\) and with all distinct eligible prime conductors in place of \(\mathcal S\). For \(k\le k_0\) the resulting lower bound and the assumed failure budget give \(P/(r^k\log P)\ll_{r,A}\sqrt P\log\log P\). For \(k>k_0\) the conclusion is immediate. \end{proof} For a finite instance of the length calculation take \(P=2^{20}\) and \(r=3\). Start with all \(38{,}635\) primes in \(I_P\). After each of the conductors \(7,13,19,31,37,43,61\) is added in succession, the number still failing is \[ 12{,}891,\quad4{,}232,\quad1{,}416,\quad479,\quad150,\quad42,\quad12. \] The seven simultaneous conditions occupy a proportion \(3^{-7}\) of the reduced residue classes, corresponding to about \(17.7\) of these primes. The estimates above allow a discrepancy between that average and the finite count. \subsection{The cost in total degree} There is a sharp leading constant even without a degree cap on individual polynomials. Write \(W(P)=\sum_{f\in\mathcal F(P)}\deg f\). This measures polynomial degrees; a sparse encoding of a binomial stores its exponent in binary. \begin{theorem}\label{thm:degree} Fix a prime \(r\). For every family of squarefree products of complete cyclotomic factors chosen independently of \(p\), with at most \(O(\sqrt P\log\log P)\) failures in \(I_P\), \[ \liminf_{P\to\infty}\frac{W(P)}{(\log P)^2\log\log P} \ \ge\ \frac{r-1}{8(\log r)^2}. \] There are families of binomials for which this ratio tends to equality. \end{theorem} \begin{proof} Put \(L=\log P\). On scales with \(W(P)>L^3\) the lower bound already holds for sufficiently large \(P\). On all other scales, Theorem~\ref{thm:length} with \(A=3\) requires \(k\ge (1-o(1))L/(2\log r)\) distinct eligible primes. Each \(\Phi_n\) pays for all eligible primes in its index: \[ \varphi(n)\ \ge\ \sum_{\substack{\ell\mid n\\ \ell\ {\rm prime},\ \ell\equiv1\bmod r}}(\ell-1). \] Indeed each \(\ell-1\ge2\); the product of two or more such integers is at least their sum, and their product divides \(\varphi(n)\). For prescribed odd squarefree order \(M=\prod\ell\), the same sum \(\sum_{\ell\mid M}(\ell-1)\) is the classical minimum dimension of an integral matrix of order \(M\) \citep[Proposition~1.1]{LevittNicolas1998}. Here the number of conductors that must be paid for comes from the lower count of failing primes. Summing and counting each conductor once gives \(W(P)\ge\sum_{i\le k}(\ell_i-1)\) for the first \(k\) primes \(\ell_i\equiv1\bmod r\). The fixed-progression prime number theorem gives \(\ell_i\sim(r-1)i\log i\), hence \(\sum_{i\le k}\ell_i\sim (r-1)k^2\log k/2\). Substitution gives the constant. Conversely take separate \(X^{\ell_i}-1\) for \(i\le\lceil L/(2\log r)\rceil\). Their exceptional count follows from Theorem~\ref{thm:length}, and their summed degrees attain the displayed limit. \end{proof} The same calculation gives the tradeoff for other error budgets. Let \(T=T(P)\gg\sqrt P\log\log P\), and suppose \(u=\log(P/(T\log P))\to\infty\). Among families with \(O(T)\) failures, the sharp leading total degree is \[ \frac{r-1}{2(\log r)^2}\,u^2\log u . \] Indeed a putative cheaper family has total degree at most \((\log P)^3\). The lower estimate in Lemma~\ref{lem:count}, including the condition modulo \(r^2\), requires \(k\ge u/\log r-O(1)\) primes \(\ell\equiv1\bmod r\): for \(k\le \lceil\log P/(2\log r)\rceil\) its error is \(O(T)\), and larger \(k\) already suffice for this inequality. Conversely, the first \(\lceil u/\log r\rceil\) eligible primes give \(O(T)\) failures by the upper estimate. Summing their degrees as in Theorem~\ref{thm:degree} gives the formula. \section{One choice for many degrees} \begin{theorem}\label{thm:short} Let \(P\ge4,\ 2\le D\le\sqrt P\), and \(k_r=\lceil\log P/(2\log r)\rceil\). The first \(k_r\) primes in the progression \(1\bmod12r\) lie below \[ B_r=C\{r^2\log^2(2r)+rk_r\log(2rk_r)\} \] for an absolute \(C\). Choose any \(k_r\) such primes below \(B_r\) for each prime \(r\le D\). Except for \begin{equation}\label{eq:exception} O\left(\frac{\sqrt P\,D}{\log(2D)} \left(1+\frac{\log\log(3P)}{\log(2D)}\right)\right) \end{equation} primes in \(I_P\), \emph{every} prime \(r\le D\) has a witness in its list. \end{theorem} \begin{proof} For the supply of primes apply Corollary~2.1 of \citet{GM2016} to \(K=\Q(\zeta_{12r})\), with \(d=[K:\Q]=\varphi(12r)\le4r\) and \(\kappa=d(k_r+3)\). The zeta function of \(K\) factors into rational Dirichlet \(L\)-functions. Their bound produces more than \(\kappa\) degree-one prime ideals of norm at most \[ \left(L_K+\sqrt{8\kappa\log(L_K+\kappa^{1/3}\log\kappa)}\right)^2, \qquad L_K=1.075(\log|\Delta_K|+13). \] At most \(3d\) ideals lie over ramified primes, and each unramified degree-one prime lies over a rational prime \(1\bmod12r\) with \(d\) ideals above it. Since \(\log|\Delta_K|\le d\log(12r)\), this proves the stated bound, including \(r=2,3\). This supply estimate holds for arbitrary positive list lengths. For \(M_r\) the product of the chosen primes we have \(\log M_r\le k_r\log B_r\), \(\log B_r\ll1+\log r+\log\log(3P)\), and \(P/r^{k_r}\le\sqrt P\). Lemma~\ref{lem:count} bounds the number of failures at this degree by \[ O\left(\sqrt P\left(1+ \frac{\log\log(3P)}{\log(2r)}\right)\right). \] Sum over prime degrees using \(\pi(D)\ll D/\log(2D)\) and \(\sum_{r\le D,\ r\ {\rm prime}}1/\log(2r)\ll D/\log^2(2D)\); the latter follows by splitting at \(\sqrt D\). This gives \eqref{eq:exception}. \end{proof} There is a second way to see the upper count. The compositum of the cyclic degree-\(r\) fields of conductors \(\ell\in\mathcal S\) is abelian of degree \(r^k\), and its log root discriminant is at most \(\log M\) by the conductor--discriminant formula. A failing unramified prime splits completely there. The smoothed prime-ideal theorem of \citet[Theorem~1.1]{GM2016}, divided by \(r^k\), gives the same upper estimate. Thus the square-root error comes from a classical abelian estimate. The two-sided length bound uses failures as well as successes. \begin{table}[htbp]\centering\small \begin{tabular}{rccc}\toprule Characteristic \(p\) & Degree 2 & Degree 3 & Degree 5\\\midrule 37 & \cellcolor{passcell}\(97,\ 96\) & \cellcolor{passcell}\(73,\ 8\) & \cellcolor{passcell}\(61,\ 34\)\\ 41 & \cellcolor{passcell}\(97,\ 96\) & \cellcolor{passcell}\(37,\ 10\) & \cellcolor{passcell}\(61,\ 34\)\\ 43 & \cellcolor{passcell}\(73,\ 72\) & \cellcolor{misscell}--- & \cellcolor{passcell}\(61,\ 58\)\\ 47 & \cellcolor{passcell}\(73,\ 72\) & \cellcolor{passcell}\(73,\ 8\) & \cellcolor{passcell}\(181,\ 125\)\\ 53 & \cellcolor{passcell}\(73,\ 72\) & \cellcolor{passcell}\(37,\ 26\) & \cellcolor{passcell}\(61,\ 58\)\\ 59 & \cellcolor{passcell}\(73,\ 72\) & \cellcolor{passcell}\(37,\ 26\) & \cellcolor{passcell}\(61,\ 9\)\\ 61 & \cellcolor{passcell}\(193,\ 192\) & \cellcolor{passcell}\(37,\ 10\) & \cellcolor{misscell}---\\ \bottomrule\end{tabular} \caption{Simultaneous witnesses at \(P=64,\ D=5\). The lists for degrees \(2,3,5\) are respectively \(\{73,97,193\}\), \(\{37,73\}\), \(\{61,181\}\). Each cell gives the first successful \(\ell\) and its residue \(p^{(\ell-1)/r}\bmod\ell\). A dash means that the entire list fails. Five of these seven characteristics pass in every degree.} \end{table} \section{Degrees at the square-root scale}\label{sec:edge} \begin{theorem}\label{thm:edge} Use the rational Dirichlet input of Theorem~\ref{thm:short}. Write \(L=\log P\), let \(\eta=\eta(P)\ge0\) tend to zero, and put \(Y=\sqrt P/L\), \(D=P^{1/2+\eta}\). For each prime \(r\le D\) write \(k_r=\lceil L/(2\log r)\rceil\) and \[ B_r=C\bigl(r^2\log^2(2r)+r k_r\log(2r k_r)\bigr), \] with the absolute constant from the progression count. For \(r\le Y\), choose any \(k_r\) distinct primes \(\ell\le B_r\) in the class \(1\bmod 12r\). For \(YP^{9/10}\). Since \(r\le P^{1/2+o(1)}\), we have \(h\ge\ell^{1/3}\) for large \(P\). The Bourgain--Konyagin subgroup estimate \citep[Theorem~2.1]{BK2003} gives an absolute \(0<\gamma\le1/4\) such that \[ \max_{a\ne0\bmod\ell}\left|\sum_{u\in H}\exp(2\pi i a u/\ell)\right| \ll h\ell^{-\gamma}. \] For \((d,\ell)=1\) let \(A_d\) count the positive multiples of \(d\) up to \(P\) lying in \(H\bmod\ell\). On writing \(n=dm\), the condition becomes \(m\bmod\ell\in d^{-1}H\), a coset with the same Fourier bound. Fourier inversion on the interval \(1\le m\le\lfloor P/d\rfloor\) gives \[ A_d=X/d+O(R),\qquad X=Ph/\ell,\qquad R=1+h\ell^{-\gamma}\log(2\ell). \] Indeed, complete periods contribute only to the zero frequency; for the remaining interval the sum of the absolute nonzero Fourier coefficients, normalized by \(\ell\), is \(O(\log(2\ell))\) by the geometric-series formula. As \(X\asymp P/r\) and \(P^{9/10}<\ell\le P^{1+o(1)}\), we have \(R/X\ll P^{-\gamma/2}\). Take \(z=\lfloor P^{\gamma/20}\rfloor\). For positive indices at most \(z\) define the Selberg weights by \[ G=\sum_{m\le z}\frac{\mu(m)^2}{\varphi(m)},\qquad y_m=\frac{\mu(m)}{\varphi(m)G},\qquad \lambda_d=d\sum_{\substack{m\le z\\d\mid m}}\mu(m/d)y_m . \] Squarefree density and partial summation give \(G\gg\log z\). Also \(\lambda_1=1\), \(|\lambda_d|\le d\), and inversion gives \(\sum_{j\le z,\,m\mid j}\lambda_j/j=y_m\). Expanding \(\gcd(d,e)=\sum_{m\mid\gcd(d,e)}\varphi(m)\) therefore yields \[ \sum_{d,e\le z}\frac{\lambda_d\lambda_e}{\operatorname{lcm}(d,e)} =\sum_{m\le z}\varphi(m)y_m^2=1/G . \] For a prime \(p>P/2\), the weight \((\sum_{d\mid p,\,d\le z}\lambda_d)^2\) is one. Summing this nonnegative weight over all \(n\le P\) with \(n\bmod\ell\in H\) bounds the count in \eqref{eq:edge-primes} by \(X/G+O(Rz^4)\). Indeed every \(\operatorname{lcm}(d,e)\le z^2<\ell\) is coprime to \(\ell\), and \((\sum_{d\le z}|\lambda_d|)^2\ll z^4\). Since \(Rz^4\ll X P^{-3\gamma/10}\), the claim follows. The additional possibility \(p=\ell\) costs at most one per degree. In each dyadic block of \(Y