\documentclass[reqno,12pt]{amsart} \usepackage[margin=1.1in, footskip=1cm]{geometry} \usepackage{amsmath, amsthm, amssymb, booktabs} \usepackage{mathrsfs} \usepackage[usenames,dvipsnames]{color} \ifdefined\pdfpagewidth\pdfpagewidth=\paperwidth\pdfpageheight=\paperheight\fi \newtheorem{maintheorem}{Theorem} \newtheorem{theorem}{Theorem}[section] \newtheorem{lemma}[theorem]{Lemma} \newtheorem{corollary}[theorem]{Corollary} \newtheorem{conjecture}[theorem]{Conjecture} \newtheorem{hypothesis}[theorem]{Hypothesis} \theoremstyle{definition} \newtheorem{definition}[theorem]{Definition} \newtheorem{example}[theorem]{Example} \newtheorem{xca}[theorem]{Exercise} \theoremstyle{remark} \newtheorem{remark}[theorem]{Remark} \numberwithin{equation}{section} \newcommand{\abs}[1]{\lvert#1\rvert} \newcommand{\mmod}[1]{\,\,({\rm{mod}}\,\,#1)} \newcommand{\blankbox}[2]{% \parbox{\columnwidth}{\centering \setlength{\fboxsep}{0pt}% \fbox{\raisebox{0pt}[#2]{\hspace{#1}}}% }% } \def\bfa{{\mathbf a}} \def\bfb{{\mathbf b}} \def\bfc{{\mathbf c}} \def\bfd{{\mathbf d}} \def\bfe{{\mathbf e}} \def\bff{{\mathbf f}} \def\bfg{{\mathbf g}} \def\bfh{{\mathbf h}} \def\bfi{{\mathbf i}} \def\bfj{{\mathbf j}} \def\bfm{{\mathbf m}} \def\bfn{{\mathbf n}} \def\bfp{{\mathbf p}} \def\bfq{{\mathbf q}} \def\bft{{\mathbf t}} \def\bfu{{\mathbf u}} \def\bfv{{\mathbf v}} \def\bfw{{\mathbf w}} \def\bfx{{\mathbf x}} \def\bfy{{\mathbf y}} \def\bfz{{\mathbf z}} \def\calA{{\mathscr A}} \def\calAbar{{\overline \calA}} \def\calAtil{{\widetilde \calA}} \def\calB{{\mathscr B}} \def\calBtil{{\widetilde \calB}} \def\calBhat{{\widehat \calB}} \def\calC{{\mathscr C}} \def\calCbar{{\overline \calC}} \def\calCtil{{\widetilde \calC}} \def\calD{{\mathscr D}} \def\calE{{\mathscr E}} \def\calF{{\mathscr F}} \def\cG{{\mathscr G}} \def\cH{{\mathscr H}} \def\calI{{\mathscr I}} \def\calJ{{\mathscr J}} \def\calL{{\mathscr L}} \def\calK{{\mathscr K}} \def\Ktil{{\widetilde K}} \def\calM{{\mathscr M}} \def\calN{{\mathscr N}} \def\calO{{\mathscr O}} \def\calP{{\mathscr P}} \def\calQ{{\mathscr Q}} \def\calR{{\mathscr R}} \def\calRbar{{\overline \calR}} \def\calS{{\mathscr S}} \def\calT{{\mathscr T}} \def\calU{{\mathscr U}} \def\calV{{\mathscr V}} \def\calX{{\mathscr X}} \def\calZ{{\mathscr Z}} \def\setmin{{\setminus\!\,}} \def\tx{\tilde{x}}\def\ty{\tilde{y}} \def\tz{\tilde{z}}\def\tw{\tilde{w}} \def\tbz{\tilde{\z}}\def\tbw{\tilde{\w}} \def\tS{\tilde{S}}\def\tT{\tilde{T}} \def\tq{\tilde{q}}\def\tp{\tilde{p}} \def\util{\tilde{u}}\def\tv{\tilde{v}} \def\tM{\tilde{M}}\def\tH{\tilde{H}} \def\tC{\tilde{C}}\def\tQ{\tilde{Q}} \def\tg{\tilde{g}}\def\th{\tilde{h}} \def\dtil{\widetilde{d}}\def\te{\tilde{e}} \def\tc{\tilde{c}}\def\tb{\tilde{b}} \def\tF{\tilde{F}}\def\ftil{\widetilde{f}} \def\Gtil{\widetilde G}\def\Itil{\widetilde I}\def\Ktil{\widetilde K} \def\ctA{\tilde{{\cal A}}}\def\ctB{\tilde{{\cal B}}} \def\dbC{{\mathbb C}}\def\dbF{{\mathbb F}}\def\dbN{{\mathbb N}}\def\dbP{{\mathbb P}} \def\dbR{{\mathbb R}}\def\dbT{{\mathbb T}} \def\dbZ{{\mathbb Z}}\def\dbQ{{\mathbb Q}} \def\gra{{\mathfrak a}}\def\grA{{\mathfrak A}}\def\bfgra{{\boldsymbol \gra}} \def\grb{{\mathfrak b}}\def\grB{{\mathfrak B}} \def\grc{{\mathfrak c}}\def\grC{{\mathfrak C}} \def\grd{{\mathfrak d}}\def\grD{{\mathfrak D}} \def\gre{{\mathfrak e}}\def\grE{{\mathfrak E}} \def\grf{{\mathfrak f}}\def\grF{{\mathfrak F}} \def\grG{{\mathfrak G}} \def\grH{{\mathfrak H}} \def\grJ{{\mathfrak J}} \def\grl{{\mathfrak l}}\def\grL{{\mathfrak L}} \def\grm{{\mathfrak m}}\def\grM{{\mathfrak M}}\def\grN{{\mathfrak N}} \def\grn{{\mathfrak n}}\def\grS{{\mathfrak S}}\def\grP{{\mathfrak P}} \def\grW{{\mathfrak W}}\def\grB{{\mathfrak B}}\def\grC{{\mathfrak C}} \def\grK{{\mathfrak K}}\def\grL{{\mathfrak L}}\def\grp{{\mathfrak p}} \def\grs{{\mathfrak s}}\def\grT{{\mathfrak T}} \def\grx{{\mathfrak x}} \def\grX{{\mathfrak X}} \def\gru{{\mathfrak u}}\def\grU{{\mathfrak U}} \def\grv{{\mathfrak v}}\def\grV{{\mathfrak V}} \def\grw{{\mathfrak w}}\def\grW{{\mathfrak W}} \def\alp{{\alpha}} \def\bfalp{{\boldsymbol \alpha}} \def\bet{{\beta}} \def\bfbet{{\boldsymbol \beta}} \def\gam{{\gamma}} \def\Gam{{\Gamma}} \def\del{{\delta}} \def\Del{{\Delta}} \def\zet{{\zeta}} \def\bfzet{{\boldsymbol \zeta}} \def\zetbar{{\overline \zet}} \def\bfeta{{\boldsymbol \eta}} \def\Eta{{\mathrm H}} \def\tet{{\theta}} \def\bftet{{\boldsymbol \theta}} \def\Tet{{\Theta}} \def\kap{{\kappa}} \def\lam{{\lambda}} \def\Lam{{\Lambda}} \def\Lamtil{{\widetilde \Lambda}} \def\bfnu{{\boldsymbol \nu}} \def\bfxi{{\boldsymbol \xi}} \def\Mu{{\mathrm M}} \def\Nu{{\mathrm N}} \def\sig{{\sigma}} \def\Sig{{\Sigma}} \def\bfsig{{\boldsymbol \sig}} \def\bftau{{\boldsymbol \tau}} \def\Ups{{\Upsilon}} \def\Upshat{{\widehat \Ups}} \def\bfpsi{{\boldsymbol \psi}} \def\ome{{\omega}} \def\Ome{{\Omega}} \def\bfome{{\boldsymbol \ome}} \def\d{{\partial}} \def\eps{\varepsilon} \def\implies{\Rightarrow} \def\l{\ell} \def\le{\leqslant} \def\ge{\geqslant} \def\pleq{\preccurlyeq} \def\ple{\prec} \def\cl{\mathrm{cl}} \def\cupp{\mathop{\cup}} \def\d{{\,{\rm d}}} \def\mdiv{{\,|\,}} %%%% THE SWITCH %%% \def\kp{\kappa} %%% w_k \def\ww{t} %%% w where in conflict with w_k \def\llbracket{\lbrack\;\!\!\lbrack} \def\rrbracket{\rbrack\;\!\!\rbrack} \makeatletter \@namedef{subjclassname@2020}{\textup{2020} Mathematics Subject Classification} \makeatother %%%% ADDITION TO THE STYLE FILE: the one environment used in this paper that is not declared above %%% \theoremstyle{plain} \newtheorem{proposition}[theorem]{Proposition} %%%% HYPERLINKS: cross-references, citations and arXiv identifiers are links %%% \usepackage[colorlinks=true,linkcolor=MidnightBlue,citecolor=MidnightBlue,urlcolor=MidnightBlue, bookmarksnumbered=true]{hyperref} \begin{document} \relpenalty=10000 \binoppenalty=10000 \title[Explicit linear bounds in Waring's problem]{Explicit linear bounds in Waring's problem} \author[T. D. Wooley]{Trevor D. Wooley} \address{Dept.~of Mathematics, Purdue University, 150 N. University Street, West Lafayette, IN 47907-2067, USA} \email{twooley@purdue.edu} \subjclass[2020]{11P05, 11P55, 11L07, 11L15, 11J54} \keywords{Waring's problem, Hardy-Littlewood method, smooth Weyl sums, exponential sums, fractional parts} \date{} \begin{abstract} Let $G(k)$ denote the least number $s$ such that every sufficiently large natural number is the sum of at most $s$ positive integral $k$-th powers. Chow and Dietmann have recently shown that $G(k)\ll k$. We make their method numerically efficient, and prove that $G(k)0$. That theorem shows in addition that, when $k$ is a power of $2$, fewer than $4k$ $k$-th powers suffice for almost all integers in those residue classes modulo $4k$ which permit this; for instance, almost all natural numbers $n\equiv j\pmod{256}$ with $1\le j\le228$ are sums of $228$ sixty-fourth powers. \emph{Mean values.} All these results rest on mean value estimates for smooth Weyl sums. For real numbers $Y,Z\ge1$ let $\mathcal{A}(Y,Z)$ denote the set of natural numbers $n\le Y$ all of whose prime factors are at most $Z$. For fixed $\eta>0$ the set $\mathcal{A}(P,P^\eta)$ has $\gg P$ elements; this is classical, and for small $\eta$ it also follows from \textup{(V)} in \S\ref{ss:arcs}. Mean value estimates for the corresponding sums are the main tool in most applications of the circle method to problems that involve $k$-th powers, and we therefore record the outcome in explicit form. \begin{theorem}\label{thm:mv} Let $k\ge37$ and $s_1:=C_0\,k+7\sqrt k$, or let $k\ge215$ and $s_1:=C_0\,k+3\sqrt k$. Then there is a number $\eta_1>0$, depending only on $k$, such that for $0<\eta\le\eta_1$ and all large $P$ \[ \int_0^1\Bigl|\sum_{n\in\mathcal{A}(P,P^\eta)}e(\alpha n^k)\Bigr|^s\,\mathrm{d}\alpha\asymp P^{s-k}\qquad \text{for all real }s\ge s_1 . \] The implied constants depend on $k$, $\eta$ and $s$. \end{theorem} Theorem~\ref{thm:mv} is a special case of Theorem~\ref{thm:mvexplicit}, which shows in addition that the part of the integral away from the major arcs is smaller by a power of $P$, and of Corollary~\ref{cor:mvranges}, in which the condition on $s$ takes the form $s\ge A_1k+A_2\sqrt k$ for various pairs $(A_1,A_2)$, depending on the size of $k$; for instance, the condition $s\ge7k$ suffices when $k\ge76$, and $s\ge C_0k+2\sqrt k$ when $k\ge12500$. The lower bound is trivial: for $|\alpha|\le(4\pi P^k)^{-1}$ the sum has modulus at least $\frac12\#\mathcal{A}(P,P^\eta)$. For comparison, for the sum over all $n\le P$ a bound of this strength is known when $s$ is of order $k^2$ \cite{Bou2017,BDG2016,Woo2019}, and for the sum over the smooth numbers $n\le P$ it was known when $s$ is $k\log k+O(k)$ \cite{BW2023}. We expect Theorem~\ref{thm:mv} to be useful beyond Waring's problem. An application of the circle method typically requires a mean value estimate of this kind, a nontrivial bound on the minor arcs, and an asymptotic formula on the major arcs. For smooth Weyl sums the latter two are available from the work of Vaughan \cite{Vau1989} and of Br\"udern and Wooley \cite{BW2023,BW2024}, and Theorem~\ref{thm:mv} supplies the first with a number of variables proportional to $k$. One may therefore hope that a number of $k$-th powers proportional to $k$ will suffice in other problems in which $k$-th powers occur, where the known methods need $k\log k$ of them, or more. Examples are representation problems in which $k$-th powers are accompanied by variables of another kind, such as squares \cite{BW2024b}; questions about exceptional sets, of which Theorem~\ref{thm:almost} is an instance; and questions about the distribution of $\alpha n^k$ modulo $1$. Our last theorem is an application of the last kind. \emph{Fractional parts.} Let $\|x\|$ denote the distance from the real number $x$ to the nearest integer. A classical problem asks for upper bounds for $\min_{1\le n\le N}\|\alpha n^k\|$ that hold for all real $\alpha$ and all large $N$; these are known as localised bounds. Following work of Vinogradov and Heilbronn, Danicic proved that the minimum is smaller than $N^{\varepsilon-2^{1-k}}$ (see \cite{Bak1986}). For large $k$ the sharpest result is due to Br\"udern and Wooley \cite[Theorem~1.2]{BW2025}: when $k\ge6$ and $N$ is sufficiently large, one has \[ \min_{1\le n\le N}\|\alpha n^k\|\le N^{-1/(k(\log k+8.02113))} . \] This refines bounds of Wooley \cite[Theorem~1.2]{Woo1993}, \cite[Theorem~1.2]{Woo1995}, in which the exponents are $1/(2k(\log k+\log\log k+2+o(1)))$ and $1/(k(\log k+O(\log\log k)))$. In recent work on small fractional parts of polynomials, Baker \cite[Theorem~2]{Bak2016} showed that the resolution of the main conjecture in Vinogradov's mean value theorem \cite{BDG2016,Woo2019} leads to the bound $N^{\varepsilon-1/(k(k-1))}$ for $k\ge6$, which is the sharper one when $k$ is small. If a bound is required for infinitely many $n$ only, then more is known: Wooley \cite[Theorem~1.1 and Corollary~2]{Woo1993} proved that for $k\ge4$, for every real $\alpha$ and every $\varepsilon>0$, there are infinitely many natural numbers $n$ with \[ \|\alpha n^k\|\le n^{\varepsilon-1/(9.028\,k)} , \] improving a bound of the same shape that is due to Heath-Brown \cite{HB1988}. Thus the exponent in this unlocalised bound is of order $1/k$, whereas the exponents in the localised bounds are of order $1/(k\log k)$ at best. We show that there is a localised bound with an exponent of order $1/k$. \begin{theorem}\label{thm:frac} Let $k\ge37$, and let $\alpha$ be a real number. Then, whenever $N$ is sufficiently large in terms of $k$, one has \[ \min_{1\le n\le N}\|\alpha n^k\|X$ & \raggedright $X^{-10^{-3}/\theta^2}$ for all $U\le\theta$, from a Weyl-type bound on each residue class & \raggedright $X^{-\varsigma(U)}$ with $\varsigma(U)\asymp U^{-2}$: van der Corput differencing adapted to the modulus for small $U$, a mean value over translated residue classes for large $U$ (\S\ref{s:exp})\tabularnewline\addlinespace[1.5pt] \raggedright loss in one step & \raggedright $W^3$ & \raggedright $W^3/V$ when the shorter sums are of relative size $1/V$; in effect $W^2$ (\S\ref{s:iter})\tabularnewline\addlinespace[1.5pt] \raggedright step size & \raggedright $\theta\le3\log k$, tied to $z$ by $\theta\asymp z^{-1/2}$ & \raggedright $\theta\le\Theta$ with $\Theta\asymp k^{1/2}$; the optimal $\theta=\theta(z)$ (\S\ref{s:pot})\tabularnewline\addlinespace[1.5pt] \raggedright large $W$ & \raggedright trivial bound for $z\ge2.5\cdot10^{-7}$ & \raggedright mean values over smooth numbers for $z\ge\frac1{10}$ (\S\ref{s:apriori})\tabularnewline\addlinespace[1.5pt] \raggedright minor arcs and pruning & \raggedright $2k$ auxiliary smooth Weyl sums & \raggedright no auxiliary sums: admissible exponents for the moments of $f$ and \cite{BW2023,BW2024} (\S\ref{s:circle})\tabularnewline\addlinespace[1.5pt] \raggedright major arcs & \raggedright theory of smooth Weyl sums & \raggedright theory of smooth Weyl sums \cite{Vau1989}\tabularnewline\addlinespace[1.5pt] \midrule \raggedright constant & \raggedright $12\,000\,005$ & \raggedright $6.313234$; $6.219627$ in Appendix~\ref{s:appendix}\tabularnewline \bottomrule \end{tabular} \end{table} \subsection{The method}\label{ss:method} We describe the argument of \cite{CD2026} and the points at which we depart from it. Let $N$ be large and $P =N^{1/k}$. In \cite{CD2026} one works with a set of integers $n=p_1\cdots p_l\,u\le P$, in which the $p_i$ are primes from $l$ disjoint intervals of increasing size, one from each, and $u$ is a smooth number. We use the smooth numbers themselves: \begin{equation}\label{eq:vars} n\in\mathcal{A}(P,R),\qquad\text{where}\quad R=P^\eta, \end{equation} with a small $\eta>0$, and the sum $f(\alpha)$ over the $k$-th powers of these integers. More generally, for $X\le P$ we consider sums $F_a(\alpha)=\sum_na(n)e(\alpha n^k)$ over $n\in\mathcal{A}(X,R)$ with coefficients of modulus at most $1$. Let $\mathcal{D}$ be the set of squarefree numbers $d$ of a prescribed size whose prime factors lie in $((\log P)^3,R]$. Grouping the terms according to the divisors $d\in\mathcal{D}$ of $n$ that are coprime to $n/d$, with the weight $1/\#\mathcal{D}(n)$, where $\mathcal{D}(n)$ is the set of these divisors, gives \begin{equation}\label{eq:Fm} F_a(\alpha)=\sum_{d\in\mathcal{D}}F_{a_d^*}(d^k\alpha)+(\text{a small error}), \end{equation} where $F_{a_d^*}$ is a sum of the same kind of length $X/d$, with the coefficients $a(dy)/\#\mathcal{D}(dy)$; the error comes from the integers that have few prime factors in $((\log P)^3,R]$, which are rare (Lemmas~\ref{lem:resid} and~\ref{lem:decomp}(a)). If $|F_a(\alpha)|\ge X/W$, then $|F_{a_d^*}(d^k\alpha)|$ is large for many $d$. The central observation of \cite{CD2026} is a large sieve inequality on the fibres of the map $\alpha\mapsto d^k\alpha$ of $\mathbb{T}=\mathbb{R}/\mathbb{Z}$: for a given $\beta$, the number of $\alpha$ with $d^k\alpha=\beta$ at which an exponential sum $\sum_{n\le X}c_ne(\alpha n^k)$ with bounded coefficients exceeds $X/W$ is $O(W^2)$, provided that the complete sums $\sum_{n\le X,\,(n,d)=1}e(an^k/q)$ to moduli $q\mid d^k$ with $q>X$ are smaller than $X/W^2$; the proof is in the manner of Hal\'asz and Montgomery's treatment of the large values of Dirichlet polynomials (see \S\ref{s:fibre}). This inequality converts a bound for the measure of the set where $F_{a_d^*}$ is large into a bound for the measure of the set where $F_a$ is large, at the cost of a power of $W$, while the length of the sum is reduced from $X$ to $X/d$. Iterating one obtains an essentially optimal estimate for $\int_{\mathbb{T}}|f|^r\,\mathrm{d}\alpha$ with $r\ll k$, and in \cite{CD2026} the circle method, with $2k$ further smooth variables to deal with the minor and major arcs, completes the proof. The decomposition \eqref{eq:Fm} is not of the shape of the sum one starts with, because an integer has many divisors of a given size; this is why we work throughout with sums with arbitrary coefficients of modulus at most $1$, a class that is closed under the operations of the argument (\S\ref{s:setup}). The divisors $d$ have up to $\asymp\log P/\log\log P$ prime factors, and constants that grow exponentially with the number of prime factors of the modulus (\S\ref{s:exp}) therefore amount to factors $P^{o(1)}$. The coprimality of $d$ and $n/d$ is imposed by inclusion--exclusion, and the terms of the inclusion--exclusion are absorbed by means of a bound in which the quantity to be estimated occurs on both sides (\S\S\ref{s:iter} and~\ref{s:pot}). The losses in our estimates are therefore of the form $P^{\varepsilon}$. We keep the framework of \cite{CD2026} and change seven things, which are summarised in Table~\ref{tab:compare}. The constant $C_0$ decomposes as $(2+\log9)+2\Lambda$: the term $2+\log 9=4.197\ldots$ comes from the range $W\ge X^{1/10}$ of large values, which is controlled by the known mean values of smooth Weyl sums, and $2\Lambda=2.116\ldots$ is the cost of the fibre steps. This is explained in \S\ref{ss:origin}. The two rows of the table that concern the minor and the major arcs require some comment. In \cite{CD2026} the sum whose moments are under control is accompanied by $2k$ smooth Weyl sums, for which pointwise bounds are available on the minor arcs and near the major arcs. Here all variables are smooth, and the circle method for smooth Weyl sums can be applied as it stands. Let $\mathfrak{N}(Q)$ denote the set of $\alpha$ having a rational approximation $a/q$ with $q+P^k|q\alpha-a|$ of exact order $Q$, where $1\le Q\le P^{k/2}$. The following are known for $f$; here $b$ is an admissible exponent for the moment of order $r$ in the sense of \cite{BW2023}, that is, one has $\int_{\mathbb{T}}|f|^r\,\mathrm{d}\alpha\ll P^{r-k+b+\varepsilon}$, and $\varepsilon$ denotes a positive exponent that can be made as small as we please by taking $\eta$ small. \begin{enumerate} \item[\textup{(i)}] \emph{Mean values.} One has $\int|f|^r\,\mathrm{d}\alpha\ll P^{r-k+\varepsilon}Q^{2b/k}$, the integral being over the union of the sets $\mathfrak{N}(Q')$ with $Q'\le Q$ \cite[Theorem~4.2]{BW2023}. \item[\textup{(ii)}] \emph{A bound of Weyl type.} For $\alpha\in\mathfrak{N}(Q)$ one has $f(\alpha)\ll PQ^{-2\tau_k/k}$ \cite[Lemma~3.3]{BW2024c}, where $\tau_k:=1/(9.027901\,k)$ is the exponent of \cite[Lemma~7.1]{BW2023}; see Lemma~\ref{lem:height}. \item[\textup{(iii)}] \emph{Small heights.} For real $s>2\lfloor k/2\rfloor+4$ the moment of order $s$ over the union of the sets $\mathfrak{N}(Q')$ with $Q0$ \cite[Lemma~5.4]{Vau1989}. \end{enumerate} From (i) and (ii), Br\"udern and Wooley \cite[Theorem~6.1]{BW2023} deduce a bound for the moment of order $s=r+t$ over the minor arcs as soon as $t\,\tau_k>b$, and we use their theorem as it stands (Proposition~\ref{prop:prune}). What is new here is the mean value: Corollary~\ref{cor:moment} provides admissible exponents $b$ that are small for $r$ near $C_0k$, and both $t$ and the excess of $r$ over $C_0k$ turn out to be $O(\sqrt k)$. The circle method gives an asymptotic formula for the number of representations by $k$-th powers of smooth numbers, with an error term that saves a power of $\log N$; see \eqref{eq:asymp}. \begin{table}[tp] \small \begin{center} \textsc{Principal notation}\label{tab:notation}\\[4pt] \begin{tabular}{@{}lp{0.6\textwidth}l@{}} \toprule symbol & meaning & defined in\\ \midrule $G(k)$, $G^+(k)$ & the least $s$ for all large $n$, and for almost all $n$ & \S\ref{ss:results}\\ $\Lambda$, $C_0$ & $\Lambda=1.058004\ldots$ and $C_0=2+\log9+2\Lambda=6.313234\ldots$ & \eqref{eq:Lambda}, \eqref{eq:C0}\\ $\varsigma$; $\sigma$, $\theta^*$, $I$, $T$ & the saving in complete sums; functions derived from it & Def.~\ref{def:saving}\\ $\kappa$, $\varpi$, $\eta_k$ & rounding losses; admissibility of the largest step $\Theta$ & Def.~\ref{def:round}\\ $R_k$, $C(h)$, $h_k$ & further terms of the bound of Theorem~\ref{thm:explicit} & \S\ref{s:explicit}\\ $\tau_k$, $y_k$, $W_k$ & the Weyl exponent $1/(9.027901\,k)$, and related terms & \eqref{eq:W}\\ $B(k,\Theta)$, $\Theta^\sharp(k)$ & $G(k)\le\lfloor kB\rfloor$; the choice of $\Theta$ & \S\ref{ss:moderate}\\ $a_k$ & the positive root of $a(a+4)=k$ & Lemma~\ref{lem:R}\\ $\gamma$, $\varepsilon$, $\eta$, $R$, $L$ & parameters; $R=P^\eta$, $L=\log P$ & \S\ref{ss:params}\\ $\mathcal{A}(Y,Z)$, $f$ & integers $n\le Y$ without prime factors exceeding $Z$; $f(\alpha)=\sum_{n\in\mathcal{A}(P,R)}e(\alpha n^k)$ & \S\ref{ss:params}\\ $\mathcal{W}(X)$, $F_a$ & functions $a$ with $|a|\le1$, supported on $\mathcal{A}(X,R)$; the sum $\sum_na(n)e(\alpha n^k)$ & \S\ref{ss:params}\\ $D(X,W)$ & $\sup_aX^k\operatorname{meas}\{\alpha:|F_a(\alpha)|\ge X/W\}$ over $a\in\mathcal{W}(X)$ & \S\ref{ss:params}\\ $p_0$, $\mathfrak{u}(n)$, $\mathcal{D}$ & $p_0=L^3$; the product of the primes in $(p_0,R]$ that divide $n$ exactly once; moduli & \S\ref{ss:usable}\\ $\omega_1$, $C_1(J)$ & the largest number of prime factors of a modulus; a constant of \S\ref{s:fibre} & \S\ref{s:iter}\\ $\mathcal{S}$, $\vartheta$, $U$ & complete sum to a modulus $q=X^U\mid m^k$, where $m=X^\vartheta$ & \S\ref{s:exp}\\ $\mathfrak{d}(t)$, $\Psi$ & exponents for smooth Weyl sums; $\Psi(z)=2+\log((1-z)/z)$ & \S\ref{s:apriori}\\ $\mathcal{G}$, $\mathfrak{g}$, $\Phi$ & the potential; $\mathfrak{g}(z)=-z\mathcal{G}'(z)$; $\Phi(x,\lambda)\approx k\lambda\,\mathcal{G}(\lambda/x)$ & \S\ref{ss:potdef}\\ $u_\Theta$, $c_\Theta$ & $\mathcal{G}(z)=\mathcal{G}(u_\Theta)+c_\Theta\log(u_\Theta/z)$ for $00$, this is said explicitly. The dependence of implied constants is described at the end of \S\ref{s:setup}. The principal notation is collected in the table on page~\pageref{tab:notation}. Work on this paper was conducted while the author was supported by NSF grant \mbox{DMS-2502625}. \section{The explicit bound}\label{s:explicit} \subsection{Statement} The bound involves a function $\varsigma$ which measures the saving in certain complete exponential sums, and some quantities derived from it. \begin{definition}[saving function]\label{def:saving} For $U\ge1$ let \[ \varsigma(U):=\begin{cases} (2-U)/2,& 1\le U\le\frac32,\\ (3-U)/6,& \frac32\le U\le\frac94,\\ (4-U)/14,& \frac94\le U\le\frac{25}8,\\ (5-U)/30,& \frac{25}8\le U\le\frac72,\\ \frac1{20},& \frac72\le U\le\frac{15}4,\\[2pt] \dfrac{D+1-U}{(D+1)^2},& D-\dfrac1D\le U\le\dfrac{(D+1)^2}{D+2},\ D\ge4,\\[8pt] \dfrac1{(D+1)(D+2)},& \dfrac{(D+1)^2}{D+2}\le U\le D+1-\dfrac1{D+1},\ D\ge4, \end{cases} \] where $D$ denotes an integer. Further let \[ \sigma(\theta):=\min_{1\le U\le\theta}\varsigma(U)\quad(\theta\ge1),\qquad \theta^*(s):=\max\{\theta\ge1:\ \sigma( \theta)\ge s\}\quad(01$, then $\sum_{n\le X,\,(n,m)=1}e(an^k/q)\ll X^{1-\varsigma(U)+\varepsilon}$ whenever $(a,q)=1$, up to a loss $c(k,\varepsilon)^J$ and a small loss depending on the size of $m$. In the application $J$ is of order $\log X/\log\log X$, so that $c(k,\varepsilon)^J=X^{o(1)}$. Thus $X^{-\sigma(\theta)}$ is the saving that is available for all such moduli when $m\le X^{\theta/k}$, and $\theta^*(s)$ is the largest $\theta$ for which a saving $X^{-s}$ is guaranteed. \begin{definition}[admissible parameters]\label{def:round} For $\theta\ge1$ let \[ \kappa(\theta):=\begin{cases}4,&\theta\le\frac94,\\[1pt] 8,&\frac94<\theta\le\frac{25}8,\\[1pt] \max\{10,\theta+4\},&\theta>\frac{25}8,\end{cases} \qquad \varpi(\theta):=\begin{cases}\frac1{16},&\theta\le\frac{25}8,\\[1pt] \frac1{20},&\theta>\frac{25}8,\end{cases} \] and $\eta_k(\theta):=\theta\,\kappa(\theta)/k$. A real number $\Theta$ is called \emph{admissible for $k$} if \[ \Theta\ge\tfrac94,\qquad \Theta\le\varpi(\Theta)\,k,\qquad \Theta(\Theta+4)6$. The number $\Theta$ will be the largest step size used in the iteration, and $\eta_k(\theta)$ bounds the relative loss in the saving $\sigma(\theta)$ that is caused by rounding. The requirement $\Theta\ge\frac94$ is a normalisation which keeps the two regimes of \S\ref{ss:origin} apart (see \eqref{eq:uzc}). The word \emph{admissible} is also used, following \cite{BW2023}, for exponents (\S\ref{ss:arcs}), and in Appendix~\ref{s:appendix} for words; the object to which it is applied shows which sense is meant. Next let \begin{gather*} R_k(\Theta):=\int_{9/5}^{\Theta}\frac{\mathrm{d}\bigl(-\log(1-\eta_k(\theta))\bigr)}{\theta},\\ C(h):=2+2\Lambda+\log\frac{45+6h-h^2}{(1-h)(5-h)}-\frac23\log\frac{15+2h}{15-3h}\qquad(0\le h<1). \end{gather*} The first of these is a Riemann--Stieltjes integral with respect to a nondecreasing function which has jumps at $\frac94$ and $\frac{25}8$; its closed form is given in Lemma~\ref{lem:R}. Note that $C(0)=C_0$. Finally let \begin{equation}\label{eq:W} \tau_k:=\frac1{9.027901\,k},\qquad y_k(\Theta):=\frac{(1-\eta_k(\Theta))\,\sigma(\Theta)}{2\,\tau_k},\qquad W_k(\Theta):=\frac2\Theta\,\log y_k(\Theta). \end{equation} The number $\tau_k$ is the exponent in a bound of Weyl type for smooth Weyl sums on the extreme minor arcs; it was obtained by Br\"udern and Wooley \cite[Lemma~7.1]{BW2023} (see also Lemma~\ref{lem:height}). Note that $W_k(\Theta)$ is negative when $y_k(\Theta)<1$. \begin{theorem}\label{thm:explicit} Let $k\ge37$, let $\Theta$ be admissible for $k$, and put $h_k:=\frac{36}{5(k-1)}$. Then \[ G(k)\le\Bigl\lfloor k\Bigl(C(h_k)-2\,T(\Theta)+2R_k(\Theta)+W_k(\Theta)\Bigr)\Bigr\rfloor+1 . \] Moreover $k\,C(h_k)\le C_0\,k+11$, so that $G(k)\le k\bigl(C_0-2\,T(\Theta)+2R_k(\Theta)+W_k(\Theta)\bigr)+12$. \end{theorem} The three terms depending on $\Theta$ are effects of finite $k$: steps larger than $\Theta$ are not used ($-2T$), moduli have to be rounded ($2R_k$), and the potential of \S\ref{s:pot} is needed down to the level $ \tau_k$, while the first two terms account for it only down to $\frac12(1-\eta_k(\Theta))\sigma(\Theta)=y_k(\Theta)\,\tau_k$ ($W_k$). The term $W_k(\Theta)$ vanishes when $y_k(\Theta) =1$, that is, when the saving available for the largest step is twice the Weyl exponent, and it is near this value of $\Theta$ that the bound is smallest. An admissible $\Theta$ is smaller than $\sqrt k$. For $\Theta=\lambda\sqrt k$ with a fixed $\lambda\in(0,1)$ one has $T(\Theta)\sim2/ \Theta$, $R_k(\Theta)\sim k^{-1/2}\log\frac{1+\lambda}{1-\lambda}$ and $W_k(\Theta)\ll1/ \Theta$, so that all three terms are of order $k^{-1/2}$; this leads to Theorem~\ref{thm:main} (see \S\ref{ss:large}). For $37\le k\le5000$ we evaluate the bound at an explicit $\Theta=\Theta^\sharp(k)$; see \S\ref{ss:moderate}. For the representation of almost all natural numbers half as many $k$-th powers suffice, as far as the congruence conditions permit. Recall the definition of $G^+(k)$ from \S\ref{s:intro}. \begin{theorem}\label{thm:almostexplicit} Let $k\ge37$, let $\Theta$ be admissible for $k$, and let $\ell$ be an integer with \[ \ell>\tfrac12\,k\Bigl(C(h_k)-2\,T(\Theta)+2R_k(\Theta)+W_k(\Theta)\Bigr). \] Then there is a number $\delta>0$ with the following properties. \textup{(i)} Suppose that $k$ is not a power of $2$. Then all natural numbers $n\le N$, with at most $O(N^{1-\delta})$ exceptions, are sums of $\ell$ $k$-th powers of natural numbers. In particular \[ G^+(k)\le\Bigl\lfloor\tfrac12\,k\Bigl(C(h_k)-2\,T(\Theta)+2R_k(\Theta)+W_k(\Theta)\Bigr)\Bigr\rfloor+1 . \] \textup{(ii)} Suppose that $k$ is a power of $2$, and let $j$ be an integer with $1\le j\le\min\{\ell,4k\}$. Then all natural numbers $n\le N$ with $n\equiv j\pmod{4k}$, with at most $O(N^{1-\delta})$ exceptions, are sums of $\ell$ $k$-th powers of natural numbers. In particular $G^+(k)\le\max\{\ell,4k\}$. \end{theorem} The proof is in \S\ref{ss:almost}. For $k=16$ and $k=32$ a result of the same kind as part~(ii) is \cite[Theorem~9.2]{BW2023}. When $k$ is a power of $2$ and $\ell<4k$, the condition $j\le\ell$ in part~(ii) cannot be omitted: an integer $n\equiv j\pmod{4k}$ with $1\le j<4k$ is not the sum of fewer than $j$ $k$-th powers (Lemma~\ref{lem:cong}). The mean value estimate behind Theorems~\ref{thm:explicit} and~\ref{thm:almostexplicit} is of independent interest, and we state it separately. For $Q\ge1$ let $\mathfrak{M}(Q;P)$ be the set of all $\alpha\in\mathbb{T}$ for which there are coprime integers $a$ and $q$ with $1\le q\le Q$ and $|q\alpha-a|\le QP^{-k}$, as in \S\ref{ss:arcs}. \begin{theorem}\label{thm:mvexplicit} Let $k\ge37$, let $\Theta$ be admissible for $k$, and let $s_1$ be a real number with \[ s_1>k\Bigl(C(h_k)-2\,T(\Theta)+2R_k(\Theta)+W_k(\Theta)\Bigr). \] Put $\varrho^\dagger:=\min\{2,(s_1-k-5)/(2k)\}$. Then there are numbers $\eta_1>0$ and $\nu_1>0$, depending only on $k$, $\Theta$ and $s_1$, with the following property. Let $0<\eta\le\eta_1$, and let $f(\alpha):=\sum_{n\in\mathcal{A}(P,P^\eta)}e(\alpha n^k)$. Then, for all real $s\ge s_1$ and all large $P$: \textup{(i)} One has $\displaystyle\int_{\mathbb{T}}|f(\alpha)|^s\,\mathrm{d}\alpha\asymp P^{s-k}$. \textup{(ii)} For $Q\ge1$ one has \[ \int_{\mathbb{T}\setminus\mathfrak{M}(Q;P)}|f(\alpha)|^s\,\mathrm{d}\alpha\ll P^{s-k}\bigl(Q^{-\varrho^\dagger} +P^{-\nu_1}\bigr). \] The implied constants depend on $k$, $\Theta$, $s_1$, $s$ and $\eta$. \end{theorem} The proof is in \S\ref{ss:mvproof}. One has $\varrho^\dagger>1.5$, since $s_1>4.19\,k$ (\S\ref{ss:arcs}), and $\varrho^\dagger=2$ when $s_1\ge5k+5$. For smaller orders $s$, Corollary~\ref{cor:moment} provides bounds of the shape $P^{s-k+\Delta+\varepsilon'}$, in which $\Delta$ is determined by the function $\mathcal{G}$ of \S\ref{s:pot}, and which hold uniformly for sums over smooth numbers with arbitrary coefficients of modulus at most $1$; such a bound is used in the proof of Theorem~\ref{thm:fracexplicit}. For the arcs of a given height, Proposition~\ref{prop:dyadic} gives bounds of the type of \cite[Theorem~5.2]{BW2023}. The following corollary makes the condition on $s_1$ explicit; here $\Theta=\Theta^\sharp(k)$ is the number defined in \S\ref{ss:moderate}. \begin{corollary}\label{cor:mvranges} Let $k\ge37$. The conclusions of Theorem~\textup{\ref{thm:mvexplicit}} hold with $\Theta=\Theta^\sharp(k)$ and $s_1=A_1k+A_2\sqrt k$ whenever $k\ge k_1$ and $(k_1,A_1,A_2)$ is one of the columns of the following table; in all these cases $\varrho^\dagger=2$. \[ \begin{array}{c|ccccccc} k_1&37&37&76&132&215&243&12500\\\hline A_1&7.39&C_0&7&C_0&C_0&6.5&C_0\\ A_2&0&7&0&4&3&0&2 \end{array} \] For $k\ge5000$ they hold with $s_1=C_0k+1.572\sqrt k+4\log k+10$. Moreover, for every $\varepsilon_0>0$ there is a number $k_0(\varepsilon_0)$ such that for $k\ge k_0(\varepsilon_0)$ they hold with $\Theta=0.90478\sqrt k$ and $s_1=C_0k+(1.5712+\varepsilon_0)\sqrt k$. \end{corollary} The proof is in \S\ref{ss:large}. For the fractional parts of $\alpha n^k$ the general statement is as follows. Recall that $\|x\|$ denotes the distance from $x$ to the nearest integer, and that $\tau_k=1/(9.027901\,k)$, so that $4.5139505\,k=1/(2\tau_k)$. \begin{theorem}\label{thm:fracexplicit} Let $k\ge37$, let $\Theta$ be admissible for $k$, let $b>0$, and let $s_0\ge\frac52k$ be a natural number with \[ 2s_0>k\Bigl(C(h_k)-2\,T(\Theta)+2R_k(\Theta)+W_k(\Theta)\Bigr)-\frac{2k}{\Theta}\Bigl(1+\log\frac{9.027901\,\Theta\,b} {2}\Bigr). \] Let $\rho$ be a real number with \[ \rho<\frac{1}{2s_0+(1+b)\cdot4.5139505\,k} . \] Then there is a number $N_0$ such that $\min_{1\le n\le N}\|\alpha n^k\|k(2+\log 9+2\Lambda)$. As the circle method for smooth Weyl sums needs nothing beyond a mean value estimate of this kind (\S\ref{s:circle}), only $o(k)$ further variables are needed, and this gives $G(k)\le(C_0+o(1))k$ with $C_0=(2+\log 9)+2\Lambda$. In reality only steps with $\theta\le\Theta$ can be used, for some $\Theta$ which in Theorem~\ref{thm:explicit} must be smaller than $k^{1/2}$ because of the rounding of moduli. Then $-z\mathcal{G}'(z)=2/\Theta$ for small $z$, so that $\mathcal{G}(z)$ grows like $(2/\Theta)\log(1/z)$ and is unbounded. However, on the extreme minor arcs, to which the other arcs are reduced by rescaling, a product of $t$ factors $f$ saves a factor $P^{t\tau_k}$, by the bound of Weyl type, and to exploit this one only needs $k\lambda\,\mathcal{G}(\lambda)\le r\lambda+b$ for $0<\lambda\le1$, with some $bP^{1-\tau_k}$ do not occur on the extreme minor arcs, so the potential is needed only for $z\ge\tau_k$. (When $\tau_k$ is larger than $\frac12\sigma(\Theta)$, the bound of Theorem~\ref{thm:explicit} is $k$ times the value at $\tau_k$ of the linear function of $\log z$ that coincides with $\mathcal{G}$ for $z\le\frac12\sigma(\Theta)$; this is larger than $k\,\mathcal{G}(\tau_k)$.) Thus the exponent of the bound of Weyl type enters the number of variables only through the value of $\mathcal{G}$ at that exponent; see \S\ref{ss:decide}. \section{Setup}\label{s:setup} In \cite{CD2026} the variables are products of primes taken from a large number of disjoint intervals of increasing size, one from each, multiplied by a smooth number. We use the smooth numbers themselves: the integers $n\le P$ all of whose prime factors are at most $R=P^\eta$, where $\eta$ is a small positive number. What the method needs of a variable $n$ is a divisor of any prescribed size that is coprime to its cofactor and composed of primes that are not too small. All but a sparse set of smooth numbers have such divisors (Lemmas~\ref{lem:window} and~\ref{lem:resid}). The decomposition of a sum over smooth numbers by means of these divisors is not of the shape of the sum one starts with, because an integer has many divisors of a given size; it involves weights (Lemma~\ref{lem:decomp}). We therefore work throughout with sums over smooth numbers with arbitrary coefficients of modulus at most $1$. \subsection{Parameters and sets}\label{ss:params} Throughout \S\S\ref{s:setup}--\ref{s:circle} we fix an integer $k\ge 37$ and a number $\Theta$ that is admissible for $k$. The parameters are chosen in the following order. First \begin{equation}\label{eq:params} \begin{gathered} 0<\delta_0<\min\bigl\{\tfrac1{40},\tfrac12(1-\eta_k(\Theta))\bigr\},\qquad 0<\varepsilon_2\le\min\bigl\{\tfrac1{100}, \delta_0\bigr\},\\ 0<\gamma\le\frac{1}{100\,k},\qquad 0<\varepsilon\le\tfrac12\delta_0\,\sigma(\Theta). \end{gathered} \end{equation} In \S\S\ref{s:setup}--\ref{s:pot} the numbers $\gamma$ and $\varepsilon$ are arbitrary numbers satisfying \eqref{eq:params}; in \S\ref{s:circle} they are taken small in terms of the number of variables. The bound $\gamma\le1/(100k)$ is imposed for convenience only; the proofs do not use it in an essential way. Next, we suppose that $\eta$ is a positive number that is sufficiently small in terms of $k$, $\Theta$, $\delta_0$, $\varepsilon_2$, $\gamma$ and $\varepsilon$; in particular \begin{equation}\label{eq:eta} \eta\le\frac{3\gamma\,\varepsilon_2}{k}. \end{equation} Finally, we suppose that $P$ is a real number that is sufficiently large in terms of all the preceding parameters, and \[ R:=P^{\eta},\qquad L:=\log P,\qquad p_0:=L^3 . \] For real $X\ge1$ let $\mathcal{W}(X)$ be the set of functions $a:\mathbb{N}\to\mathbb{C}$ with $|a(n)|\le1$ for all $n$ and $a(n)=0$ unless $n\in\mathcal{A}(X,R)$, that is, unless $n\le X$ and $n$ has no prime factor exceeding $R$. For $a\in\mathcal{W}(X)$ we put \[ F_a(\alpha):=\sum_{n}a(n)\,e(\alpha n^k), \] and for $W>0$ \[ D(X,W):=\sup_{a\in\mathcal{W}(X)}X^k\operatorname{meas}\{\alpha\in\mathbb{T}:\ |F_a(\alpha)|\ge X/W\}. \] The exponential sum of our theorems is \[ f(\alpha):=\sum_{n\in\mathcal{A}(P,R)}e(\alpha n^k), \] which is $F_a$ for the indicator function $a$ of $\mathcal{A}(P,R)$. As $|F_a|\le X$, one has $D(X,W)\le X^k$, and $D(X,W)=0$ when $W<1$. The class $\mathcal{W}(X)$ is closed under the operations that occur below. Let $a\in\mathcal{W}(X)$ and $e\in\mathbb{N}$, and let $b:\mathbb{N}\to\mathbb{C}$ satisfy $|b|\le1$. Then the function $n\mapsto a(n)b(n)$ belongs to $\mathcal{W}(X)$, and $y\mapsto a(ey)b(y)$ belongs to $\mathcal{W}(X/e)$, because $ey\in\mathcal{A}(X,R)$ implies that $y\in\mathcal{A}(X/e,R)$. \subsection{Usable primes, and the decomposition}\label{ss:usable} We call a prime $p$ \emph{usable} if $p_01}}\bigl(-\mu(e)\bigr)F_{a_{[e]}}(e^k\alpha). \] \end{lemma} \begin{proof} (a) If $\mathfrak{u}(n)\ge A_2$, then $\mathcal{D}(n)\ne\emptyset$, by Lemma~\ref{lem:window} applied to $v=\mathfrak{u}(n)$, since every divisor of $\mathfrak{u}(n)$ is squarefree and composed of usable primes. Hence \[ F_{a_1}(\alpha)=\sum_{\mathfrak{u}(n)\ge A_2}a(n)e(\alpha n^k)\sum_{d\in\mathcal{D}(n)}\frac1{\#\mathcal{D}(n)}. \] For $d\in\mathcal{D}$ the condition $d\in\mathcal{D}(n)$ means that $n=dy$ with $(y,d)=1$. Interchanging the summations gives the identity. If $a_d^*(y)\ne0$, then $a(dy)\ne0$, so that $dy\in\mathcal{A}(X,R)$ and $y\in\mathcal{A}(X/d,R)$; thus $a_d^*\in\mathcal{W}(X/d)$. Finally $F_a-F_{a_1}$ is a sum over the $n\in\mathcal{A}(X,R)$ with $\mathfrak{u}(n)1}=-\sum_{e\mid(n,d),\,e>1}\mu(e)$, the left hand side equals \[ \sum_{\substack{e\mid d\\ e>1}}\bigl(-\mu(e)\bigr)\sum_{e\mid n}a(n)\,e(\alpha n^k), \] and the inner sum is $F_{a_{[e]}}(e^k\alpha)$. \end{proof} \emph{Convention.} From now on, implied constants may depend on $k$, $\Theta$, $\delta_0$, $\varepsilon_2$, $\gamma$, $\varepsilon$ and $\eta$, but never on $P$, on $X$, $W$ and $\alpha$, or on the coefficients $a\in\mathcal{W}(X)$. In \S\ref{s:exp} the dependence is stated in each lemma. In \S\S\ref{s:exp} and~\ref{s:fibre}, which do not depend on the present section, the letter $m$ denotes a squarefree modulus; the moduli to which these sections are applied are the numbers $d\in\mathcal{D}$ of Lemma~\ref{lem:decomp}. Such a modulus has $O(\log P/\log\log P)$ prime factors, which is why the dependence of the constants of \S\ref{s:exp} on the number of prime factors of $m$ is made explicit there. \section{Exponential sums to moduli dividing \texorpdfstring{$m^k$}{m\textasciicircum k}}\label{s:exp} The results of this section do not depend on the choices made in \S\ref{s:setup}: here $k\ge3$ and $J\ge1$ are arbitrary integers, the number $X\ge2$ is real, and $m$ is a squarefree natural number with at most $J$ prime factors, all exceeding $k$. We write \[ \vartheta:=\frac{\log m}{\log X}. \] Further $q$ is a divisor of $m^k$ with $q>X$, we write $U:=\log q/\log X$ (so that $1k$ be prime, let $e\ge1$ and $d$ be integers with $2\le d\le k$, let $\ell\in\mathbb{Z}$, and let $f\in \mathbb{Z}[t]$ be a polynomial all of whose coefficients agree modulo $p$ with those of $ct^d$, where $p\nmid c$. Then \[ \Bigl|\sum_{\substack{n\bmod p^e\\ p\nmid n}}e\Bigl(\frac{f(n)+\ell n}{p^e}\Bigr)\Bigr|\le d\,p^{e/2}. \] \end{lemma} \begin{proof} Put $f_\ell:=f+\ell t$. Then $f_\ell'\equiv cd\,t^{d-1}+\ell$ and $f_\ell''\equiv cd(d-1)t^{d-2}\pmod p$, and $p\nmid cd(d-1)$ because $2\le d\le k0$. The hypothesis $U\ge j+2^{-j}$ is equivalent to $2^{j+1}\varrho\le1$, so the numbers $\mu_i:=(1-2^i\varrho)/U$ $(1\le i\le j)$ are positive. Put \[ s_{i,p}:=\max\{1,\lceil\mu_ie_p\rceil\},\qquad A_i:=\prod_{p\mid m}p^{s_{i,p}},\qquad Y_i:=\lfloor X/A_i\rfloor . \] Then $A_i\le q^{\mu_i}m=X^{1-2^i\varrho+\vartheta}\le X^{1-\varrho}$, so that $Y_i\ge1$ and $Y_i\ge\frac12X^{2^i\varrho-\vartheta}$. Every prime dividing $m$ divides every $A_i$; hence a shift $n\mapsto n +yA_i$ preserves the condition $(n,m)=1$. For $0\le i\le j$ and a tuple $\mathbf y=(y_1,\dots,y_i)$ of integers let $\Delta_{\mathbf y}$ be the $i$-fold difference of $an^k/q$ with the steps $y_1A_1,\dots,y_iA_i$, that is, \[ \Delta_{\mathbf y}(n):=\frac aq\sum_{\boldsymbol\epsilon\in\{0,1\}^i}(-1)^{i-\epsilon_1-\dots-\epsilon_i}\bigl(n+ \epsilon_1y_1A_1+\dots+\epsilon_iy_iA_i\bigr)^k, \] let $\mathcal{I}_{\mathbf y}$ be the set of real numbers $n$ such that $n+\epsilon_1y_1A_1+\dots+\epsilon_iy_iA_i\in [1,X]$ for every $\boldsymbol\epsilon\in\{0,1\}^i$, which is an interval contained in $[1,X]$, and put \[ \mathcal{S}_{\mathbf y}:=\sum_{\substack{n\in\mathcal{I}_{\mathbf y}\\(n,m)=1}}e\bigl(\Delta_{\mathbf y}(n)\bigr); \] thus $\mathcal{S}_{\mathbf y}=\mathcal{S}$ when $i=0$. We show by induction on $i$ that \begin{equation}\label{eq:vdc} |\mathcal{S}|^{2^i}\ll X^{2^i}\sum_{l=1}^{i}Y_l^{-2^{i-l}}+\frac{X^{2^i-1}}{Y_1\cdots Y_i} \sum_{\substack{\mathbf y=(y_1,\dots,y_i)\\0<|y_l|0$, one has \[ \mathcal{S}\ll X^{1+\varepsilon-\varrho'},\qquad \varrho':=\frac{1}{D(D+1)}\min\Bigl\{\frac{2U}{D+1}-2D\vartheta,\ 1-D\vartheta,\ D\Bigl(1-\frac{U}{D+1}\Bigr)-D\vartheta\Bigr\}. \] \end{lemma} \begin{proof} Let $s_p:=\max\{1,\lceil e_p/(D+1)\rceil\}$ and $A:=\prod_{p\mid m}p^{s_p}$, so that $A\le q^{1/(D+1)}mD$, so that for these $y$ \[ \xi(n_0+Ay)=e\Bigl(\sum_{i=0}^{D}\alpha_i(n_0)y^i\Bigr),\qquad \alpha_i(n_0):=\frac aq\binom kiA^in_0^{k-i}. \] For $\boldsymbol\beta\in\mathbb{R}^D$ and $t\in\mathbb{N}$ let $g_t(\boldsymbol\beta):=\sum_{0\le yY^D$, we use the first term of the minimum and obtain $\mathcal{N}\le9k^JAY^{1-D}$. If $q_D\le Y^D$, the second term gives \[ \mathcal{N}\le3k^J\,\frac{A}{q_D}\Bigl(\frac6{Y^{D-2}}+\frac{3Y}{q_D}+\frac{2q_D}{Y^{D-1}}+1\Bigr). \] As $AY\le X$ and $D\ge2$, we conclude that in both cases \begin{equation}\label{eq:Nbound} \frac{\mathcal{N}}X\ll\frac1{q_D^2}+\frac1{q_DY}+\frac1{Y^D}. \end{equation} Finally $Y\ge X/(2A)\ge\frac12X^{1-U/(D+1)-\vartheta}$, and the inequality $e_p-Ds_p\ge e_p/(D+1)-D$ gives $q_D\ge q^{1/(D+1)}m^{-D}=X^{U/(D+1)-D\vartheta}$. Moreover $A/q_D$ divides $m^D$: the exponent of $p$ in $A/q_D$ is $\min\{s_p,(D+1)s_p-e_p\}$, and $(D+1)s_p-e_p\le D$ when $e_p\ge1$, while $s_p=1$ when $e_p=0$. Hence $q_DY\ge q_DX/(2A)\ge\frac12Xm^{-D}=\frac12X^{1-D\vartheta}$. The lemma now follows from \eqref{eq:mv1} and \eqref{eq:Nbound}. \end{proof} The next lemma combines the preceding ones. Recall Definitions~\ref{def:saving} and~\ref{def:round}. \begin{lemma}\label{lem:saving} Let $k\ge37$, let $\Theta$ be admissible for $k$, let $1<\theta\le\Theta$ and suppose that $m\le X^{\theta/k}$. Then, for every $\varepsilon>0$, one has \[ \mathcal{S}\ll X^{1-(1-\eta_k(\theta))\varsigma(U)+\varepsilon}\le X^{1-(1-\eta_k(\theta))\sigma(\theta)+\varepsilon}. \] \end{lemma} \begin{proof} Here $\vartheta\le\theta/k\le\varpi(\theta)$ and $1\frac94$, and row~4 only if $\theta>\frac{25}8$; hence $\kappa(\theta)$ is at least $4$, $8$ and $10$ in rows~2, 3 and~4, and $\vartheta\le\varpi(\theta)$ is at most $\frac1{16}$, $\frac1{16}$ and $\frac1{20}$. Thus $\varrho\ge\vartheta$ and $\kappa(\theta)\varsigma(U)\ge\frac12$ in all three rows. As $j\le k-2$, Lemma~\ref{lem:vdc}(ii) applies and gives $\mathcal{S}\ll X^{1-\varsigma(U)+\vartheta/2}\log(2qm)$, where $\frac12\vartheta\le\vartheta\kappa(\theta)\varsigma(U)$. The factors $\log(2qm)\ll\log X$ are absorbed in $X^{\varepsilon}$. \emph{Rows~5 to~7.} Let $D'$ denote the degree with which Lemma~\ref{lem:mv} is applied: $D'=4$ in row~5, $D'=D$ in row~6 and $D'=D+1$ in row~7. In all three rows \begin{equation}\label{eq:rowrange} \max\Bigl\{\frac72,\frac{D'^2}{D'+1}\Bigr\}\frac72$, we have $\kappa\ge\theta+4\ge U+4$. Since $D'D'+2\qquad\text{and}\qquad\kappa U\ge U(U+4)>\frac{D'^2(D'+2)^2}{(D'+1)^2}\ge D'(D'+1), \] the last inequality being equivalent to $D'(D'+2)^2\ge(D'+1)^3$. Moreover $D'\ge4$, and $D'<\theta+1\le k-1$ because $\theta\le\Theta<\sqrt k$. Finally $1-U/(D'+1)\ge1/(D'+2)$ by \eqref{eq:rowrange}, and $1/(D'+2)>1/\kappa>\vartheta$; so Lemma~\ref{lem:mv} is applicable with $D'$ in place of $D$. It gives $\mathcal{S}\ll X^{1+\varepsilon-\varrho'}$ with \[ D'(D'+1)\,\varrho'=\min\Bigl\{\frac{2U}{D'+1}-2D'\vartheta,\ 1-D'\vartheta,\ V-D'\vartheta\Bigr\}, \] and it remains to show that each of the three numbers on the right is at least $T_0(1-\kappa\vartheta)$. Recall that $0D'$. Finally $V-D'\vartheta\ge T_0-D'\vartheta\ge T_0-T_0\kappa\vartheta$, because $T_0\kappa\ge D'\kappa/(D'+2)\ge D'$. This proves \eqref{eq:rowclaim} in rows~5 to~7. \end{proof} \emph{Dependence on $J$.} We indicate where the number $J$ enters the implied constants in Lemmas~\ref{lem:compl}--\ref{lem:saving}; all other constants depend only on $k$ and $\varepsilon$. In Lemma~\ref{lem:compl} the proof gives the bound $k^J\bigl((X+1)q_1^{-1/2}+2^Jq_1^{1/2}(1+\log q_2)\bigr)$, and $1+\log q_2\le2\log(2q_1m)$; so the implied constant is at most $4(2k)^J$. In Lemma~\ref{lem:vdc}, part~(i) is a special case of Lemma~\ref{lem:compl}. In part~(ii), inequality \eqref{eq:vdc} is proved with constants that depend on $jX$ are small by hypothesis and are estimated individually, as in the classical case. Those with $q\le X$ are not small, but they form a principal submatrix of a circulant matrix, the norm of which can be computed. As in the classical case, the outcome is a bound of the quality of the large sieve for the number of large values, here $O(W^2)$, in a range of $W$ that is limited by the individual estimates. \begin{proposition}\label{prop:fibre} Let $k$, $J$, $X$ and $m$ be as in \S\ref{s:exp}, and let $W\ge1$. Suppose that there are numbers $\delta_F>0$ and $C_F\ge1$ such that \begin{equation}\label{eq:fibhyp} \Bigl|\sum_{\substack{n\le X\\(n,m)=1}}e\Bigl(\frac{an^k}{q}\Bigr)\Bigr|\le C_FX^{1-\delta_F}\quad\text{whenever }q \mid m^k,\ q>X\text{ and }(a,q)=1, \end{equation} and that \begin{equation}\label{eq:fibW} 8\,C_FW^2\le X^{\delta_F}. \end{equation} Let $(c_n)_{n\le X}$ be complex numbers with $\sum_n|c_n|^2\le X$. Then for every $\beta\in\mathbb{T}$ the number of $\alpha\in\mathbb{T}$ with \[ m^k\alpha=\beta\qquad\text{and}\qquad\Bigl|\sum_{\substack{n\le X\\(n,m)=1}}c_ne(\alpha n^k)\Bigr|\ge\frac{X}{2W} \] is at most $C_1W^2$, where $C_1=C_1(J):=16\,k^J(2k+1)^{J}$. \end{proposition} \begin{proof} Let $\beta_0\in[0,1)$ represent $\beta$. The solutions of $m^k\alpha=\beta$ are $\alpha_j:=(\beta_0+j)/m^k$ with $j\in\mathbb{Z}/m^k\mathbb{Z}$. Let $\mathcal{H}$ be the set of $j$ for which the sum in question is at least $X/(2W)$ in modulus. Let $\mathcal{U}:=\{n\le X:(n,m)=1\}$, and consider the matrix $V:=\bigl(e(\alpha_jn^k)\bigr)_{j\in\mathcal{H},\,n\in\mathcal{U}}$ and the vector $\mathbf c:=(c_n)_{n\in\mathcal{U}}$. Then \begin{equation}\label{eq:gram} \frac{\#\mathcal{H}\cdot X^2}{4W^2}\le\|V\mathbf c\|_2^2\le\|V\|_{\mathrm{op}}^2\,\|\mathbf c\|_2^2 \le X\,\|VV^*\|_{\mathrm{op}} . \end{equation} The Gram matrix $K:=VV^*$ has the entries \[ K_{ij}=\sum_{n\in\mathcal{U}}e\bigl((\alpha_i-\alpha_j)n^k\bigr)=w(i-j),\qquad\text{where}\quad w(h):= \sum_{n\in\mathcal{U}}e\Bigl(\frac{hn^k}{m^k}\Bigr)\quad(h\in\mathbb{Z}/m^k\mathbb{Z}). \] For $h\in\mathbb{Z}/m^k\mathbb{Z}$ let $q(h):=m^k/(h,m^k)$ be the denominator of $h/m^k$ in lowest terms. We write $w=w_{\le}+w_{>}$, where $w_{\le}(h):=w(h)$ if $q(h)\le X$ and $w_{\le}(h):=0$ otherwise, and correspondingly $K=K_\le+K_>$; the diagonal entries, with $h=0$ and $q(h)=1$, belong to $K_\le$. Since $w(-h)=\overline{w(h)}$ and $q(-h)=q(h)$, the matrices $K_\le$ and $K_>$ are Hermitian. Every entry of $K_>$ is either $0$ or a sum as in \eqref{eq:fibhyp}, hence at most $C_FX^{1-\delta_F}$ in modulus. As $K_>$ is Hermitian, its operator norm is at most the largest $\ell^1$-norm of a row, so \begin{equation}\label{eq:Kbig} \|K_>\|_{\mathrm{op}}\le\#\mathcal{H}\cdot C_FX^{1-\delta_F}. \end{equation} The matrix $K_\le$ is a principal submatrix of the circulant matrix $\widetilde K:=\bigl(w_\le(i-j)\bigr)_{i,j}$, with rows and columns indexed by $\mathbb{Z}/m^k\mathbb{Z}$, which is Hermitian for the same reason. Hence $\|K_\le\|_{\mathrm{op}}\le\|\widetilde K\|_{\mathrm{op}}=\max_t|\lambda_t|$, where the $\lambda_t$ are the eigenvalues of $\widetilde K$. The vectors $(e(jt/m^k))_{j}$ with $t\in\mathbb{Z}/m^k\mathbb{Z}$ form an orthogonal basis of eigenvectors, and \[ \lambda_t=\sum_{h\bmod m^k}w_\le(h)\,e\Bigl(-\frac{ht}{m^k}\Bigr)=\sum_{n\in\mathcal{U}}\ \sum_{\substack{q\mid m^k\\ q\le X}}\ \sum_{\substack{b\bmod q\\(b,q)=1}}e\Bigl(\frac{b(n^k-t)}{q}\Bigr), \] on sorting the $h$ according to $q=q(h)$ and writing $h/m^k=b/q$. The innermost sum is Ramanujan's sum, which equals $\sum_{d\mid(q,\,n^k-t)}d\,\mu(q/d)$. Therefore \[ \lambda_t=\sum_{\substack{q\mid m^k\\ q\le X}}\ \sum_{d\mid q}\mu(q/d)\,d\,\#\{n\in\mathcal{U}:\ n^k\equiv t\!\! \pmod d\}. \] Let $d\mid m^k$ with $d\le X$. Every prime factor of $d$ divides $m$ and is odd, and every $n\in\mathcal{U}$ is coprime to $d$. Since the group of reduced residues modulo an odd prime power is cyclic, the congruence $y^k\equiv t\pmod d$ has at most $k^J$ solutions $y$ modulo $d$ with $(y,d)=1$, and each residue class modulo $d$ contains at most $X/d+1$ integers $n\le X$. Thus $d\,\#\{n\in\mathcal{U}:n^k\equiv t\pmod d\}\le k^J(X+d) \le2k^JX$. The number of pairs $(d,q)$ with $d\mid q\mid m^k$ and $q/d$ squarefree is at most $(2k+1)^J$, since for each prime $p\mid m$ there are $2k+1$ possibilities for $(v_p(d),v_p(q))$. It follows that \begin{equation}\label{eq:Ksmall} \|K_\le\|_{\mathrm{op}}\le\max_t|\lambda_t|\le2k^J(2k+1)^JX=\tfrac18C_1X . \end{equation} Combining \eqref{eq:gram}, \eqref{eq:Kbig} and \eqref{eq:Ksmall} with \eqref{eq:fibW}, we obtain \[ \frac{\#\mathcal{H}}{4W^2}\le\frac{C_1}{8}+\#\mathcal{H}\cdot C_FX^{-\delta_F}\le\frac{C_1}{8}+ \frac{\#\mathcal{H}}{8W^2}, \] that is, one has $\#\mathcal{H}\le C_1W^2$. \end{proof} If $m\le X^{1/k}$ then no divisor of $m^k$ exceeds $X$, the hypothesis \eqref{eq:fibhyp} is void, the condition \eqref{eq:fibW} can be met for every $W\ge1$ by taking $\delta_F$ large, and Proposition~\ref{prop:fibre} is a large sieve inequality on the fibre, for every $W\ge1$. The proof does not use that $m$ is squarefree, only that its prime factors are odd and at most $J$ in number. The point of \cite{CD2026} is that $m$ may be taken much larger when $W$ is small, because then a small saving $\delta_F$ suffices. With Lemma~\ref{lem:saving} we obtain the following. \begin{corollary}\label{cor:fibre} Let $k\ge37$, let $\Theta$ be admissible for $k$, and let $\varepsilon>0$. There is a number $C_2=C_2(k,\varepsilon)\ge1$ with the following property. Let $J\ge1$, and let $X\ge2$ with $X^{\varepsilon}\ge 8C_2^J$. Let $m$ be as in \S\ref{s:exp} with $m\le X^{\theta/k}$ for some $\theta\in(1,\Theta]$, and let $W\ge1$ with \[ W^2\le X^{(1-\eta_k(\theta))\,\sigma(\theta)-2\varepsilon}. \] Then the conclusion of Proposition~\ref{prop:fibre} holds for $X$, $m$ and $W$. \end{corollary} \begin{proof} Let $C_2:=c(k,\varepsilon)$ be the number at the end of \S\ref{s:exp}, and put $C_F:=C_2^J$ and $\delta_F:=(1-\eta_k(\theta))\sigma(\theta)-\varepsilon$. By Lemma~\ref{lem:saving} and the remark on the dependence on $J$, the hypothesis \eqref{eq:fibhyp} holds with these numbers; here $\delta_F\ge\varepsilon>0$, since $W\ge1$ and the hypothesis on $W$ give $(1-\eta_k(\theta))\sigma(\theta)\ge2\varepsilon$. Then $8C_FW^2\le8C_2^JX^{-\varepsilon}X^{\delta_F}\le X^{\delta_F}$, which is \eqref{eq:fibW}. \end{proof} \section{The iterative inequality}\label{s:iter} We return to the setting of \S\ref{s:setup}. The next lemma is the counterpart of \cite[Lemma~4.1]{CD2026} for sums over smooth numbers. Let $C_1(J):=16\,k^J(2k+1)^J$ be the constant of Proposition~\ref{prop:fibre}, and put \[ \omega_1:=\Bigl\lfloor\frac{L}{6\log L}\Bigr\rfloor . \] \begin{lemma}\label{lem:iter} Let $4\gamma1$ that divide some $d\in\mathcal{D}$, and put \[ S_{\mathcal{D}}:=\sum_{d\in\mathcal{D}}\frac1d,\qquad N_W:=\max\bigl\{1,\lceil\log_2(4WS_{\mathcal{D}})\rceil\bigr\}. \] Then $\mathcal{D}$ is not empty, and \begin{equation}\label{eq:iter} D(X,W)\le2N_W\,C_1(\omega_1)\sum_{l=0}^{N_W-1}\frac{W^3}{2^l}\sum_{d\in\mathcal{D}}\frac{D(X/d,2^{l+1})}{d} +\sum_{e\in\mathcal{E}}e^k\,D\Bigl(\frac Xe,\frac{2W}{e^{2/3}}\Bigr). \end{equation} \end{lemma} \begin{proof} Throughout the proof $P$ is supposed to be so large that $R>p_0>k$ and $\omega_1\ge1$; all requirements on $P$ below are uniform in $x$, $W$, $\theta$ and $a$, as the induction of \S\ref{s:pot} needs. \emph{The moduli.} Since $\theta\ge1$ and $x>4\gamma$, and since $\varepsilon_2\le\frac1{100}$ and $\eta\le3\gamma\varepsilon_2/k$ by \eqref{eq:eta}, we have \begin{equation}\label{eq:ratio} \frac{A_2}{A_1}=X^{\theta\varepsilon_2/((1+\varepsilon_2)k)}\ge P^{3\gamma\varepsilon_2/k}\ge R , \end{equation} so that Lemma~\ref{lem:decomp} applies. Lemma~\ref{lem:window}, applied to the product of all usable primes, shows that $\mathcal{D}$ is not empty. Every $d\in\mathcal{D}$ is squarefree, its prime factors exceed $p_0=L^3>k$, and $d\le A_2\le X^{1/2}$, as $\Theta<\sqrt k\le\frac12k$; hence $L^{3\omega(d)}1}}e^{-1/3}=\prod_{p\mid d}\bigl(1+p^{-1/3}\bigr)-1\le\Bigl(1+\frac1L\Bigr)^{\omega_1}-1\le1 . \end{equation} We apply Corollary~\ref{cor:fibre} with $J=\omega_1$ to each $d\in\mathcal{D}$. Its hypotheses hold: $d\le X^{\theta/k}$, the hypothesis on $W$ is the one made here, and $X^\varepsilon\ge P^{4\gamma\varepsilon}\ge8C_2^{\omega_1}$ for large $P$, since $C_2^{\omega_1}=P^{O(1/\log L)}$. Thus the conclusion of Proposition~\ref{prop:fibre} holds for $X$, $W$ and $m=d$, with the constant $C_1(\omega_1)$. \emph{The decomposition.} Fix $a\in\mathcal{W}(X)$, and let $E_*:=\{\alpha\in\mathbb{T}:|F_a(\alpha)|\ge X/W\}$; we have to bound $X^k\operatorname{meas}(E_*)$ by the right hand side of \eqref{eq:iter}. Let $a_1$ and $a_d^*$ be as in Lemma~\ref{lem:decomp}. Since $A_2\le X^{1/2}$ and $W\le X^{1/9}$, and since $X\ge P^{4\gamma}$, Lemma~\ref{lem:decomp}(a) gives \begin{equation}\label{eq:res} |F_a(\alpha)-F_{a_1}(\alpha)|\le228\,\mathrm{e}^{10L^{3/4}}X^{7/8}\le\frac{X^{8/9}}4\le\frac X{4W}\qquad(\alpha\in \mathbb{T}) \end{equation} for large $P$. We split $E_*$ into the set $E'$ of those $\alpha$ for which $|F_{a^{(d)}}(\alpha)|X/(2W)$. By Lemma~\ref{lem:decomp}(b) and \eqref{eq:sumd}, some divisor $e>1$ of $d$ satisfies $|F_{a_{[e]}}(e^k\alpha)|>e^{-1/3}X/(2W)$, that is, \[ |F_{a_{[e]}}(e^k\alpha)|\ge\frac{X/e}{W_e},\qquad W_e:=\frac{2W}{e^{2/3}}. \] Here $a_{[e]}\in\mathcal{W}(X/e)$, and multiplication by $e^k$ preserves the measure on $\mathbb{T}$. Hence, by the union bound over $e\in\mathcal{E}$, we have \[ X^k\operatorname{meas}(E')\le\sum_{e\in\mathcal{E}}X^k\Bigl(\frac Xe\Bigr)^{-k}D\Bigl(\frac Xe,W_e\Bigr), \] which is the second term in \eqref{eq:iter}. \emph{The set $E$.} Let $\alpha\in E$. Then $|F_{a^{(d)}}(\alpha)|\ge X/(2W)$ for all $d\in\mathcal{D}$, and $|F_{a_1}(\alpha)|\ge\frac34X/W$ by \eqref{eq:res}. For $d\in\mathcal{D}$ put $u_d(\alpha):=\frac dX|F_{a_d^*}(d^k\alpha)|$, so that $0\le u_d(\alpha)\le1$. By Lemma~\ref{lem:decomp}(a), one has $\sum_{d\in\mathcal{D}}u_d(\alpha)/d\ge\frac3{4W}$. Since $2^{-N_W}S_{\mathcal{D}}\le\frac1{4W}$, the $d$ with $u_d(\alpha)\le2^{-N_W}$ contribute at most $\frac1{4W}$ to this sum. Sorting the other $d$ according to $2^{-l-1}2^{-l-1}}}\frac1d\ge\frac{2^l}{2W N_W}. \end{equation} Let $E_l$ be the set of $\alpha\in E$ for which \eqref{eq:level} holds. Integrating \eqref{eq:level} over $E_l$ gives \begin{equation}\label{eq:Ei} \frac{2^l}{2W N_W}\operatorname{meas}(E_l)\le\sum_{d\in\mathcal{D}}\frac1d\operatorname{meas}\{\alpha\in E:\ u_d(\alpha)>2^{-l-1}\}. \end{equation} Fix $d\in\mathcal{D}$. The condition $u_d(\alpha)>2^{-l-1}$ depends only on $\beta:=d^k\alpha$, and it implies that $\beta$ lies in the set $\mathcal{L}:=\{\beta\in\mathbb{T}:|F_{a_d^*}(\beta)|\ge(X/d)/2^{l+1}\}$, whose measure is at most $(X/d)^{-k}D(X/d,2^{l+1})$, as $a_d^*\in\mathcal{W}(X/d)$. On the other hand, the condition $\alpha\in E$ implies $|F_{a^{(d)}}(\alpha)|\ge X/(2W)$, and \[ F_{a^{(d)}}(\alpha)=\sum_{\substack{n\le X\\(n,d)=1}}a(n)\,e(\alpha n^k),\qquad\sum_{n\le X}|a(n)|^2\le X . \] So each $\beta\in\mathbb{T}$ has at most $C_1(\omega_1)W^2$ preimages in $E$ under the map $\alpha\mapsto d^k\alpha$. This map multiplies lengths by $d^k$ locally, so that the integral over $\beta\in\mathbb{T}$ of the number of preimages of $\beta$ in a measurable set $\mathcal{M}\subseteq\mathbb{T}$ is $d^k\operatorname{meas}(\mathcal{M})$. For $\mathcal{M}=\{\alpha\in E:\ u_d(\alpha)>2^{-l-1}\}$ this number is at most $C_1(\omega_1)W^2$, and it vanishes when $\beta\notin\mathcal{L}$. Hence \[ \operatorname{meas}\{\alpha\in E:\ u_d(\alpha)>2^{-l-1}\}\le\frac{C_1(\omega_1)W^2}{d^k}\operatorname{meas}(\mathcal{L}) \le C_1(\omega_1)\,W^2X^{-k}D\Bigl(\frac Xd,2^{l+1}\Bigr). \] Inserting this in \eqref{eq:Ei} and summing $X^k\operatorname{meas}(E_l)$ over $l$ gives the first term of \eqref{eq:iter}. \end{proof} In \cite{CD2026} only the level $u_d\ge1/(2W)$ is used, and one step costs a factor $W^3$. In \eqref{eq:iter} the cost is $W^3/V$ when the shorter sums are of relative size $1/V$; since the bounds for $D(\cdot,V)$ that we shall use grow at least linearly in $V$ (Lemma~\ref{lem:pot}(ii)), the worst case is $V\approx W$, with cost $W^2$. The factors $N_W$, $S_{\mathcal{D}}$ and $C_1(\omega_1)$ are of size $P^{o(1)}$. The second term in \eqref{eq:iter} comes from the coprimality condition that the fibre proposition requires. It will turn out to be harmless: along the path $e\mapsto(X/e,2W/e^{2/3})$ the potential of \S\ref{s:pot} decreases by a factor $e^{-4k/3}$ (Lemma~\ref{lem:path}), and every $e\in\mathcal{E}$ exceeds $p_0=(\log P)^3$. This is why the usable primes begin at a power of $\log P$, and why the inclusion--exclusion of Lemma~\ref{lem:decomp}(b) is weighted by $e^{-1/3}$ in \eqref{eq:sumd}. With the bare union bound over the $2^{\omega_1}$ divisors $e$, the second term of \eqref{eq:iter} would carry a factor $P^{o(1)}$, and in the proof of Lemma~\ref{lem:rec} its bound \eqref{eq:Eprime} would contain $\mathfrak{B}_j$ with a coefficient $P^{o(1)}$ in place of $\frac12$; the absorption of this term would then fail (a chain of divisors $e$ can have $\asymp L/\log L$ members). Inside the lemma the hypothesis $\theta\ge\frac32$ is used only in \eqref{eq:ratio}, where $\theta\ge1$ would do; the lower bound for $\theta$ that matters is the one used in \S\ref{s:pot}, namely $\theta/(1+\varepsilon_2)>1$. The condition $W\le X^{1/9}$, on the other hand, is needed for \eqref{eq:res}: the condition on $W^2$ alone gives only $W\le X^{1/8}$. In \S\ref{s:pot} it is applied with $W\le X^{1/10}$; the larger range is used in Appendix~\ref{s:appendix}. \section{Large values and mean values over smooth numbers}\label{s:apriori} For $t\ge0$ let $\mathfrak{d}(t)\in(0,1]$ denote the solution of the equation \[ \mathfrak{d}(t)+\log\mathfrak{d}(t)=1-t/k , \] and let $\Psi(z):=2+\log\frac{1-z}{z}$ for $00$ there is $\eta'>0$ such that \begin{equation}\label{eq:admexp} \int_{\mathbb{T}}\Bigl|\sum_{n\in\mathcal{A}(Y,Z)}w(n)\,e(\alpha n^k)\Bigr|^v\,\mathrm{d}\alpha \ll Y^{v-k+k\mathfrak{d}(v)+\varepsilon'}\qquad\bigl(2\le Z\le Y^{\eta'}\bigr), \end{equation} uniformly for all functions $w:\mathbb{N}\to\mathbb{C}$ with $|w(n)|\le1$, where the implied constant depends on $k$, $v$ and $\varepsilon'$ only. For $v\ge4$ this is \cite[Theorem~2.2]{BW2025}, which is stated for $k\ge6$ (we have $k\ge37$ throughout the main part of the paper), concerns the sum over $\mathcal{A}(Y,Z)$ with arbitrary complex weights $w(n)$, and bounds its mean value of order $v$ by $\max_{n\le Y}|w(n)|^v$ times the right hand side of \eqref{eq:admexp}. (For even $v$ and $w=1$ the estimate is \cite[Theorem~2.1]{Woo1993}; see also \cite[\S7]{BW2023}.) For $0\le v\le4$ we appeal to Hua's lemma. The mean value of order $4$ is the sum of $w(n_1)w(n_2)\overline{w(n_3)w(n_4)}$ over the solutions of $n_1^k+n_2^k=n_3^k+n_4^k$ with $n_i\in\mathcal{A}(Y,Z)$; this is at most the number of solutions in natural numbers $n_i\le Y$, which is $\ll Y^{2+\varepsilon'}$ by \cite[Lemma~2.5]{Vau1997}. By H\"older's inequality the left hand side of \eqref{eq:admexp} is therefore $\ll Y^{v/2+\varepsilon'}$. This suffices, since $\frac v2\le v-k+k\mathfrak{d}(v)$: the number $y:=1-\frac{v}{2k}$ lies in $(0,1]$ and satisfies $y+\log y\le2y-1=1-\frac vk$, whence $y\le\mathfrak{d}(v)$. \begin{lemma}\label{lem:apriori} Let $00$. As $\eta_k$ is increasing and left-continuous and $\sigma$ is continuous and nonincreasing, the function $M$ is positive, strictly decreasing and left-continuous; its only discontinuities are downward jumps at those of the points $\frac94$ and $\frac{25}8$ that lie in $[1,\Theta)$. Hence \[ \theta(z):=\max\{\theta\in[1,\Theta]:\ M(\theta)\ge z\}\quad(0\le z\le M(1)),\qquad u_\Theta:=M(\Theta), \] is well defined and nonincreasing, one has $M(\theta(z))\ge z$, and $\theta(z)=\Theta$ exactly when $z\le u_\Theta$. Since $\sigma(\theta(z))\ge\sigma(\Theta)$, we have \begin{equation}\label{eq:adm} \bigl(1-\eta_k(\theta)\bigr)\sigma(\theta)\ge2z+\delta_0\,\sigma(\Theta)\qquad\text{for }\theta=\theta(z). \end{equation} Next let \begin{gather*} h_c:=2\delta_0+\frac{36}{5(k-1)},\qquad w_c:=\frac1{10}-\frac{h_c}{50}-\frac{\varepsilon_2}{4},\qquad z_c:=(1- h_c)\,w_c,\\ \theta_0:=3-12w_c=\frac95+\frac{6h_c}{25}+3\varepsilon_2 . \end{gather*} Then $h_c<\frac14$, because $\delta_0<\frac1{40}$ and $k\ge37$, and $\frac95<\theta_0<2$. So $\sigma(\theta_0)=(3-\theta_0)/6=2w_c$ and $\eta_k(\theta_0)=4\theta_0/k$. Now \[ \frac{4\theta_0}{k}=\frac{36}{5k}+\frac{24\,h_c}{25k}+\frac{12\,\varepsilon_2}{k}\le\delta_0+\frac{36}{5(k-1)}= h_c-\delta_0, \] because $\frac{36}{5(k-1)}-\frac{36}{5k}=\frac{36}{5k(k-1)}\ge\frac{24}{25k}\cdot\frac{36}{5(k-1)}$ and $\frac{48\delta_0}{25k}+\frac{12\varepsilon_2}{k}\le\delta_0$. Hence $M(\theta_0)$ is at least $\frac12(1-h_c)\cdot2w_c=z_c$, that is, one has $\theta(z_c)\ge\theta_0$. Moreover $1-z_c\le1-w_c+\frac{h_c}{10}=\frac9{10}+\frac{3h_c}{25}+\frac{\varepsilon_2}4$, so that \[ 2(1+\varepsilon_2)(1-z_c)\le\frac95+\frac{6h_c}{25}+\varepsilon_2\Bigl(\frac12+\frac95+\frac{6h_c}{25}+ \frac{\varepsilon_2}{2}\Bigr)\le\theta_0 . \] Thus \begin{equation}\label{eq:H} \theta(z)\ge\theta(z_c)\ge\theta_0\ge2(1+\varepsilon_2)(1-z_c)\qquad(0\le z\le z_c). \end{equation} Note also that \begin{equation}\label{eq:uzc} u_\Theta\le M\bigl(\tfrac94\bigr)<\tfrac1{16}0$ let \begin{gather*} \Phi(x,\lambda):=k\lambda\,\mathcal{G}\Bigl(\frac{\max\{\lambda,\gamma u_\Theta\}}{x}\Bigr),\qquad \Phi(x,0):=0,\\ \mathcal{G}_\gamma:=\mathcal{G}(\gamma u_\Theta)=\mathcal{G}(u_\Theta)+c_\Theta\log(1/\gamma) . \end{gather*} Thus $\Phi(x,\lambda)=k\lambda\,\mathcal{G}(\lambda/x)$ unless $\lambda<\gamma u_\Theta$; the floor $\gamma u_\Theta$ only serves to keep $\Phi$ Lipschitz continuous. Observe that $\Phi(x,\lambda)=kx$ when $\lambda/x\ge\frac12$, and $\Phi(x,\lambda)=k\lambda\Psi(\lambda/x)$ when $z_c\le\lambda/x\le\frac12$; these are the trivial bound and the bound of Lemma~\ref{lem:apriori}. \begin{lemma}\label{lem:pot} \textup{(i)} The function $\mathcal{G}$ is continuous and nonincreasing, and \[ \mathcal{G}(u_\Theta)\le\Psi(z_c)+2(1+\varepsilon_2)\Bigl(I(2w_c)-T(\Theta)+\int_{9/5}^{\Theta} \frac{\mathrm{d}\bigl(-\log(1-\delta_0-\eta_k(\theta))\bigr)}{\theta}\Bigr). \] \textup{(ii)} The function $\Phi$ is locally Lipschitz continuous on $[\gamma,1]\times[0,\infty)$, and it is continuously differentiable outside the line $\lambda=\gamma u_\Theta$ and the ray $\lambda=z_cx$. There $0\le\partial_\lambda\Phi\le \mathcal{G}_\gamma k$ and $\partial_x\Phi\ge0$, and $\partial_\lambda\Phi\ge2k$ if $\lambda/x\le\frac15$. Consequently, for $\gamma\le x\le1$ and $0\le\lambda_1\le\lambda_2$, we have \[ \Phi(x,\lambda_2)-\Phi(x,\lambda_1)\le\mathcal{G}_\gamma k(\lambda_2-\lambda_1),\quad\text{and}\quad \Phi(x,\lambda_2)-\Phi(x,\lambda_1)\ge2k(\lambda_2-\lambda_1)\ \text{ if }\lambda_2\le\tfrac15x . \] Moreover $\mathcal{G}(z)+z\,\mathcal{G}'(z)>2$ for almost all $z\in(0,\frac15]$. \textup{(iii)} Let $\gamma\le x\le1$ and $\lambda\ge0$, suppose that $z:=\lambda/x\frac1{16}> M(\frac94)$ gives $\theta_c<\frac94$; and, as $\eta_k$ is left-continuous, a jump at $\Theta$ itself is not counted, in accordance with the definition of $R_k$. The resulting integral differs from the one in $R_k(\Theta)$ only through $\delta_0$; the limit $\delta_0\to0$ is taken in \S\ref{ss:major}. The second of these is at most the integral in the statement, because $\theta_c\ge\frac95$ by \eqref{eq:H}. For the first, note that $\sigma(t_{i+1})\tfrac12, \end{cases} \end{equation} at the points of differentiability. As $M$ is strictly decreasing, the function $\theta(\cdot)$ is continuous; hence $\mathcal{G}$ is continuously differentiable on $(0,\infty)\setminus\{z_c\}$ (at $z=\frac12$ both one-sided derivatives equal $-4$), and $\Phi$ is continuously differentiable outside the line $\lambda=\gamma u_\Theta$ and the ray $\lambda=z_cx$. The lines on which $x$ is constant meet each of these two sets in at most one point, so that $\Phi$ is the integral of its derivative along them; so the two inequalities for $\Phi(x,\lambda_2)-\Phi(x,\lambda_1)$ follow from the bounds for $\partial_\lambda\Phi$, which we now establish. Put $z^\flat:=\max\{\lambda,\gamma u_\Theta\}/x$. If $\lambda>\gamma u_\Theta$ then $z^\flat=\lambda/x$, so that $\partial_\lambda\Phi=k(\mathcal{G}(z^\flat)-\mathfrak{g}(z^\flat))$ and $\partial_x\Phi=k \lambda\,\mathfrak{g}(z^\flat)/x$; if $\lambda<\gamma u_\Theta$ then $\partial_\lambda\Phi=k\,\mathcal{G}(z^\flat)$ and $\partial_x\Phi=k \lambda\,\mathfrak{g}(z^\flat)/x$. So $\partial_x\Phi\ge0$, and $\partial_\lambda\Phi\le k\,\mathcal{G}(z^\flat)\le k\,\mathcal{G}(\gamma u_\Theta)$ because $z^\flat\ge\gamma u_\Theta$. Next, the difference $\mathcal{G}(z)-\mathfrak{g}(z)$ vanishes for $z>\frac12$. For $z_c2$ for $z\le\frac15$. For $z4.19$, so $\mathcal{G}-\mathfrak{g}>3$. Thus $\mathcal{G}-\mathfrak{g}>2$ almost everywhere on $(0,\frac15]$, which is the last assertion of (ii). Finally, if $\lambda<\gamma u_\Theta$ then $z^\flat\le u_\Theta4.19$. (iii) Let $z_1:=\max\{\lambda,\gamma u_\Theta\}/x$ and $z_1':=\max\{\lambda,\gamma u_\Theta\}/(x-y)$. Then $z\le z_1\frac12$, then $\mathfrak{g}(u)=1/u\ge1>c_\Theta$, since $\Theta\ge\frac94$ and $\varepsilon_2\le\frac1{100}$. As $\mathcal{G}$ is locally Lipschitz continuous, it follows that $\mathcal{G}(u_\Theta)-\mathcal{G}(z)=\int_{u_\Theta}^z\mathfrak{g}(u)\,\mathrm{d} u/u\ge c_\Theta\log(z/u_\Theta)$ for $u_\Theta\le z\le1$. This is the first assertion. The derivative of $z\,\mathcal{G}(z)$ is $\mathcal{G}(z)-\mathfrak{g}(z)$. The function $\mathfrak{g}$ is nondecreasing on $(0,\frac12)$, because $\theta(\cdot)$ is nonincreasing, the function $1/(1-z)$ is increasing, and $\mathfrak{g}$ jumps upwards at $z_c$, by \eqref{eq:H}. Hence $\mathcal{G}-\mathfrak{g}$ is nonincreasing on $(0,\frac12)$, where it is nonnegative (see the proof of (ii)), and it vanishes on $(\frac12,1)$. So $z\,\mathcal{G}(z)$ is concave. \end{proof} \subsection{Shallow paths} The second term in \eqref{eq:iter} requires the potential to decrease along paths on which the length of the sum and the level of the large values decrease at comparable rates. We state the estimate for a class of potentials that includes those of Appendix~\ref{s:appendix}. \begin{lemma}[shallow paths]\label{lem:path} Let $\mathcal{G}:(0,\infty)\to[0,\infty)$ be nonincreasing and locally Lipschitz continuous, and put $\mathfrak{g}(z):=-z\,\mathcal{G}'(z)$. Suppose that $\mathcal{G}\ge2$ on $(0,\frac15]$, and that $\mathcal{G}-\mathfrak{g}\ge2$ almost everywhere on $(0,\frac15]$. Let $00). \] Let $\gamma\le x\le1$ and $0\le\lambda\le\frac15x$, let $0\le\delta\le\frac12$, and let $0\le t\le\min\{\lambda/(1-\delta),\,x-\gamma\}$. Then \[ \Phi\bigl(x-t,\ \lambda-(1-\delta)t\bigr)\le\Phi(x,\lambda)-2(1-\delta)k\,t . \] In particular this holds for the potential of \S\textup{\ref{ss:potdef}}, with $u=u_\Theta$. \end{lemma} \begin{proof} For $0\le\tau\le t$ let $x(\tau):=x-\tau$ and $\lambda(\tau):=\lambda-(1-\delta)\tau$; thus $x(\tau)\ge\gamma$ and $\lambda(\tau)\ge0$. Put $\varphi(\tau):=\Phi(x(\tau),\lambda(\tau))$. The function $\Phi$ is continuous, so $\varphi$ is continuous. As $\lambda(\cdot)$ is strictly decreasing, there is $\tau_1\in[0,t]$ such that $\lambda(\tau)\ge\gamma u$ for $\tau\le\tau_1$ and $\lambda(\tau)<\gamma u$ for $\tau>\tau_1$ (if $\lambda<\gamma u$, the first range is $\{0\}$, and nothing is claimed there). We show that $\varphi$ is Lipschitz continuous on each of the two ranges, with $\varphi'\le-2(1-\delta)k$ almost everywhere. This implies the lemma. \emph{The range $\tau\le\tau_1$.} On this range we have $\varphi(\tau)=k\,x(\tau)\,\mathfrak{h}(\rho(\tau))$, with the functions $\mathfrak{h}(v):=v\,\mathcal{G}(v)$ and $\rho(\tau):=\lambda(\tau)/x(\tau)>0$. Here \[ \rho(\tau)-\rho(0)=\frac{\tau\bigl(\lambda-(1-\delta)x\bigr)}{x(x-\tau)}\le0,\qquad \rho'(\tau)=\frac{\lambda-(1-\delta)x}{(x-\tau)^2}<0, \] because $\lambda\le\frac15x<(1-\delta)x$. So $\rho$ is a decreasing $C^1$ diffeomorphism onto an interval contained in $(0,\frac15]$. The function $\mathfrak{h}$ is locally Lipschitz continuous on $(0,\infty)$, with $\mathfrak{h}'=\mathcal{G}-\mathfrak{g}$ almost everywhere, and the preimage under $\rho$ of a null set is a null set. Hence $\varphi$ is Lipschitz continuous, and for almost all~$\tau$, using $x(\tau)\rho'(\tau)=\rho(\tau)-(1-\delta)$, we have \[ \varphi'(\tau)=-k\,\mathfrak{h}(\rho)+k\,\mathfrak{h}'(\rho)\,\bigl(\rho-(1-\delta)\bigr) =-k\bigl(\rho\,\mathfrak{g}(\rho)+(1-\delta)(\mathcal{G}(\rho)-\mathfrak{g}(\rho))\bigr)\le-2(1-\delta)k, \] since $\mathfrak{g}\ge0$ and $\mathcal{G}-\mathfrak{g}\ge2$ almost everywhere on $(0,\frac15]$. \emph{The range $\tau\ge\tau_1$.} Here $\varphi(\tau)=k\lambda(\tau)\,\mathcal{G}(w(\tau))$ with $w(\tau):=\gamma u/x(\tau)\in(0,u]\subseteq(0,\frac15]$, an increasing $C^1$ function with $w'(\tau)=w(\tau)/x(\tau)$. As before $\varphi$ is Lipschitz continuous, and for almost all $\tau$ \[ \varphi'(\tau)=-(1-\delta)k\,\mathcal{G}(w)-k\lambda(\tau)\,\frac{\mathfrak{g}(w)}{x(\tau)}\le-(1-\delta)k\, \mathcal{G}(w)\le-2(1-\delta)k . \] For the potential of \S\ref{ss:potdef} the hypotheses hold with $u=u_\Theta$: the function $\mathcal{G}$ is nonincreasing and locally Lipschitz continuous, one has $\mathcal{G}\ge\Psi(\frac15)>2$ on $(0,\frac15]$ and $\mathcal{G}-\mathfrak{g}>2$ almost everywhere on $(0,\frac15]$ by Lemma~\ref{lem:pot}(ii), and $u_\Theta<\frac1{16}$ by \eqref{eq:uzc}. \end{proof} \subsection{The induction} The following proposition is the main result of this section. It bounds the quantities $D(X,W)$ of \S\ref{s:setup} by means of the potential $\Phi$. \begin{proposition}\label{prop:main} Suppose that $\eta$ is sufficiently small in terms of $k$, $\Theta$, $\delta_0$, $\varepsilon_2$, $\gamma$ and $\varepsilon$. Then, for all sufficiently large $P$, one has \[ D(P^x,P^\lambda)\le P^{\,4k\gamma+2\varepsilon+\Phi(x,\lambda)}\qquad(\gamma\le x\le1,\ \lambda\ge0). \] \end{proposition} The proof is an induction on the length $X=P^x$ of the sum; more precisely, on the integer $\mathfrak{n}(x)$ defined below, which counts the factors $1-\frac1k$ that are needed to bring $x$ below $4\gamma$. Each application of Lemma~\ref{lem:iter} shortens the sums in its first term by a factor at least $X^{-1/k}$, while the sums in its second term may be only slightly shorter than $X$; their contribution is absorbed, by means of a bound in which the quantity to be estimated occurs on both sides. Let $C_3\ge1$ be such that the bound of Lemma~\ref{lem:apriori} with $z_*:=z_c$ holds in the form $D(P^x,P^\lambda)\le C_3P^{k\lambda\Psi(z)+\varepsilon}$, and suppose that $\eta$ is small enough for that lemma. Put \[ \Upsilon:=1152\,L^3\,(3k^2)^{\omega_1}\,(16L)^{k\mathcal{G}_\gamma}. \] For $x>0$ let $\mathfrak{n}(x):=1+\max\{0,\lceil\log(x/(4\gamma))/c_k\rceil\}$ with $c_k:=-\log(1-\frac1k)$. Then $\mathfrak{n}$ is nondecreasing, with $\mathfrak{n}(x)=1$ for $x\le4\gamma$ and $\mathfrak{n}(1)\le H_1:=2+\lfloor k\log\frac1{4\gamma}\rfloor$, and \begin{equation}\label{eq:hdrop} \mathfrak{n}(x')\le \mathfrak{n}(x)-1\qquad\text{whenever }4\gamma4\gamma$ then $\log(x'/(4\gamma))/c_k\le\log(x/(4\gamma))/c_k-1$. For $m\ge1$ let \[ \mathfrak{B}_m:=\sup\Bigl\{D(P^x,P^\lambda)\,P^{-4k\gamma-\varepsilon-\Phi(x,\lambda)}:\ \gamma\le x\le1,\ \mathfrak{n}(x)\le m,\ \lambda\ge0\Bigr\}. \] Since $D(P^x,P^\lambda)\le P^{kx}$ and $\Phi\ge0$, one has $\mathfrak{B}_m\le P^k<\infty$; and $\mathfrak{B}_m$ is nondecreasing in~$m$. \begin{lemma}\label{lem:rec} For all sufficiently large $P$ one has $\mathfrak{B}_1\le1$, and, uniformly in $m\ge2$, one has \[ \mathfrak{B}_m\le\max\bigl\{C_3,\ \Upsilon\mathfrak{B}_{m-1}+\tfrac12\mathfrak{B}_m\bigr\}. \] \end{lemma} The requirements on $P$ in the proof depend on the parameters of \S\ref{ss:params} only, and not on $m$, $x$ or $\lambda$; this uniformity is what makes the iteration in the deduction of Proposition~\ref{prop:main} legitimate. The constant $C_3$ may depend on $\eta$, but not on $P$. \begin{proof}[Deduction of Proposition~\textup{\ref{prop:main}}] As $\mathfrak{B}_m<\infty$, Lemma~\ref{lem:rec} gives $\mathfrak{B}_m\le\max\{C_3,2\Upsilon\mathfrak{B}_{m-1}\}$, and hence $\mathfrak{B}_{H_1}\le C_3(2\Upsilon)^{H_1}$, because $C_3,\Upsilon\ge1$. Here $H_1$ depends on $k$ and $\gamma$ only, while \[ \log\Upsilon\le\log1152+3\log L+\frac{L\log(3k^2)}{6\log L}+k\mathcal{G}_\gamma\log(16L)=o(L). \] So $\mathfrak{B}_{H_1}\le P^{\varepsilon}$ for large $P$, and $D(P^x,P^\lambda)\le\mathfrak{B}_{H_1} P^{4k\gamma+\varepsilon+\Phi(x,\lambda)}$ for $\gamma\le x\le1$. \end{proof} \begin{proof}[Proof of Lemma~\textup{\ref{lem:rec}}] Let $\gamma\le x\le1$ and $\lambda\ge0$, let $m\ge\mathfrak{n}(x)$, and put $X:=P^x$, $W:=P^\lambda$, $z:=\lambda/x$ and $j:=\mathfrak{n}(x)$. We have to show that $D(X,W)P^{-4k\gamma-\varepsilon-\Phi(x,\lambda)}$ is at most $1$ if $j=1$, and at most $\max\{C_3,\Upsilon\mathfrak{B}_{j-1}+\frac12\mathfrak{B}_j\}$ if $j\ge2$. \emph{Case 1: $x\le4\gamma$.} Then $D(X,W)\le X^k\le P^{4k\gamma}$. This covers $j=1$. \emph{Case 2: $x>4\gamma$ and $z\ge z_c$.} Then $\lambda\ge z_c\gamma>\gamma u_\Theta$ by \eqref{eq:uzc}, so $\Phi(x,\lambda)=k\lambda\,\mathcal{G}(z)$, which is $kx$ if $z\ge\frac12$ and $k\lambda\Psi(z)$ otherwise. Hence $D(X,W)\le C_3P^{\Phi(x,\lambda)+\varepsilon}$, by Lemma~\ref{lem:apriori} when $z\le\frac12$, and trivially when $z>\frac12$. \emph{Case 3: $x>4\gamma$ and $z\gamma$ and $\mathfrak{n}(x-y_e)\le j$. By the definition of $\mathfrak{B}_j$, and by Lemma~\ref{lem:path} with $\delta=\frac13$ and $t=y_e$, we have \[ D\Bigl(\frac Xe,W_e\Bigr)\le\mathfrak{B}_j\,P^{4k\gamma+\varepsilon+\Phi(x-y_e,\,\lambda'-\frac23y_e)} \le\mathfrak{B}_j\,P^{4k\gamma+\varepsilon+\Phi(x,\lambda')}\,e^{-4k/3}. \] By Lemma~\ref{lem:pot}(ii), we have $\Phi(x,\lambda')\le\Phi(x,\lambda)+k\mathcal{G}_\gamma\log2/L$. Every $e\in\mathcal{E}$ exceeds $p_0=L^3$, and $k\ge37>3$, so that \begin{equation}\label{eq:Eprime} \sum_{e\in\mathcal{E}}e^kD\Bigl(\frac Xe,W_e\Bigr)\le2^{k\mathcal{G}_\gamma}\,\mathfrak{B}_j\, P^{4k\gamma+\varepsilon+\Phi(x,\lambda)}\sum_{l>L^3}l^{-k/3}\le\tfrac12\,\mathfrak{B}_j\, P^{4k\gamma+\varepsilon+\Phi(x,\lambda)} \end{equation} for large $P$. \emph{The first term of \eqref{eq:iter}.} Fix $l 2\gamma$, and $x-y_d\le(1-\frac1k)x$ because $\theta/(1+\varepsilon_2)\ge\frac{1.5}{1.01}>1$; so $\mathfrak{n}(x-y_d)\le j-1$ by \eqref{eq:hdrop}. With $\mu:=\log2^{l+1}/L$ this gives \[ D\Bigl(\frac Xd,2^{l+1}\Bigr)\le\mathfrak{B}_{j-1}\,P^{4k\gamma+\varepsilon+\Phi(x-y_d,\mu)}. \] Since $2^{l+1}\le2^{N_W}\le\max\{2,8WS_{\mathcal{D}}\}$ and $S_{\mathcal{D}}\le1+\log A_2\le2L$, we have \[ \mu\le\lambda^+:=\lambda+\frac{\log(16L)}L,\qquad\frac{\lambda^+}{x-y_d}\le2z+\frac{2\log(16L)}{4\gamma L}\le \frac15 \] for large $P$, because $2z<2z_c<\frac15-\frac12\varepsilon_2$ by the definition of $z_c$. By Lemma~\ref{lem:pot}(ii) the function $\mu\mapsto\Phi(x-y_d,\mu)-\mu$ is therefore nondecreasing on $[0,\lambda^+]$. Hence, using Lemma~\ref{lem:pot}(ii) again and then Lemma~\ref{lem:pot}(iii), which is applicable by \eqref{eq:yd}, we have \begin{align*} 3\lambda-\mu+\Phi(x-y_d,\mu)&\le2\lambda+\Phi(x-y_d,\lambda^+)\le2\lambda+\Phi(x-y_d,\lambda)+ \frac{k\mathcal{G}_\gamma\log(16L)}L\\ &\le\Phi(x,\lambda)+\frac{k\mathcal{G}_\gamma\log(16L)}L . \end{align*} As $W^3/2^l=2P^{3\lambda-\mu}$, the summand in the first term of \eqref{eq:iter} is at most \[ 2(16L)^{k\mathcal{G}_\gamma}\,\mathfrak{B}_{j-1}\,P^{4k\gamma+\varepsilon+\Phi(x,\lambda)}/d . \] Now $N_W\le3L$ and $S_{\mathcal{D}}\le2L$, while $C_1(\omega_1)=16k^{\omega_1}(2k+1)^{\omega_1}\le16(3k^2)^{\omega_1}$, so that the first term of \eqref{eq:iter} is at most \begin{equation}\label{eq:Efinal} 2\cdot3L\cdot16(3k^2)^{\omega_1}\cdot3L\cdot2L\cdot2(16L)^{k\mathcal{G}_\gamma}\,\mathfrak{B}_{j-1} P^{4k\gamma+\varepsilon+\Phi(x,\lambda)}=\Upsilon\,\mathfrak{B}_{j-1}P^{4k\gamma+\varepsilon+\Phi(x,\lambda)}. \end{equation} By \eqref{eq:iter}, \eqref{eq:Eprime} and \eqref{eq:Efinal}, we have $D(X,W)\le(\Upsilon\mathfrak{B}_{j-1}+\frac12 \mathfrak{B}_j)P^{4k\gamma+\varepsilon+\Phi(x,\lambda)}$ in Case~3. This proves the lemma. \end{proof} \begin{corollary}\label{cor:moment} Suppose that $\eta$ is as in Proposition~\textup{\ref{prop:main}}. Let $r>0$ and $\Delta\ge0$ be real numbers such that \begin{equation}\label{eq:rDelta} k\,z\,\mathcal{G}(z)\le r\,z+\Delta\qquad(00$ and $r>0$ satisfy $r\ge k\bigl(\mathcal{G}(u_\Theta)+a_*\bigr)$, where \begin{equation}\label{eq:astar} a_*:=c_\Theta\,\log\frac{k\,c_\Theta\,u_\Theta}{\mathrm{e}\,b} \end{equation} and $c_\Theta$ is as in \eqref{eq:Gtail}. \end{corollary} \begin{proof} Since $\mathcal{G}(1)=1$, the hypothesis \eqref{eq:rDelta} implies $\Delta\ge k-r$, so that $X^{r-k+\Delta}\ge1$. Let $X=P^x\le P$ and $a\in\mathcal{W}(X)$. If $x<\gamma$, then $\int|F_a|^r\le X^r=X^{r-k+\Delta}X^{k-\Delta}\le X^{r-k+\Delta}P^{k\gamma}$. Let $x\ge\gamma$, and let $0<\lambda\le x$ and $z:=\lambda/x$. As $\mathcal{G}$ is nonincreasing, the hypothesis \eqref{eq:rDelta} gives \[ \Phi(x,\lambda)\le k\lambda\,\mathcal{G}(z)=x\cdot kz\,\mathcal{G}(z)\le r\lambda+\Delta x . \] So, by Proposition~\ref{prop:main}, we have \[ \operatorname{meas}\{\alpha:\ |F_a(\alpha)|\ge XP^{-\lambda}\}\le X^{-k}P^{4k\gamma+2\varepsilon+r\lambda+\Delta x} \qquad(0\le\lambda\le x). \] For $\lambda<0$ the set on the left is empty, since $|F_a|\le X$, and for $\lambda>x$ its measure is at most~$1$. Therefore \[ \int_{\mathbb{T}}|F_a|^r\,\mathrm{d}\alpha=rL\int_{-\infty}^{\infty}(XP^{-\lambda})^r\operatorname{meas}\{\alpha: |F_a(\alpha)|\ge XP^{-\lambda}\}\,\mathrm{d}\lambda\le rL\,X^{r-k+\Delta}P^{4k\gamma+2\varepsilon}+1, \] and $1\le X^{r-k+\Delta}$. For the second assertion let $b>0$ and $r\ge k(\mathcal{G}(u_\Theta)+a_*)$. By Lemma~\ref{lem:pot}(iv), for $00$ of the third expression being attained at $z=u_\Theta\mathrm{e}^{-1-a_*/c_\Theta}$. \end{proof} The point of Corollary~\ref{cor:moment} is that $r$ need not exceed $k\sup\mathcal{G}$, which is infinite: the excess of $\Phi(x,\lambda)$ over $r\lambda$ is at most $bx$, and a factor $P^{b}$ will be recovered on the minor arcs from the bound of Weyl type for smooth Weyl sums (\S\ref{s:circle}). The number $a_*$ is negative when $b>k\,c_\Theta\,u_\Theta/ \mathrm{e}$, and $r$ is then allowed to be smaller than $k\,\mathcal{G}(u_\Theta)$; this is possible because, by Lemma~\ref{lem:pot}(iv), the function $\mathcal{G}$ lies below its tail \eqref{eq:Gtail} also for $z>u_\Theta$. The uniformity in the coefficients is needed in \S\S\ref{s:circle} and~\ref{s:ls}: in \S\ref{s:circle} for the sums $f(\cdot\,;P,R')$ with $R'0$ and for $q\in\mathbb{N}$ let $\mathfrak{M}_q(Q;Y)$ be the set of $\alpha\in\mathbb{T}$ for which there is an integer $a$ with $(a,q)=1$ and $|q\alpha-a|\le QY^{-k}$, and put \[ \mathfrak{M}(Q;Y):=\bigcup_{1\le q\le Q}\mathfrak{M}_q(Q;Y),\qquad \mathfrak{N}(Q;Y):=\mathfrak{M}(Q;Y)\setminus \mathfrak{M}(Q/2;Y). \] We shall use the following simple facts. \begin{enumerate} \item[\textup{(A1)}] One has $\mathfrak{M}(Y^{k/2};Y)=\mathbb{T}$, by Dirichlet's theorem on Diophantine approximation, and $\operatorname{meas}\mathfrak{M}(Q;Y)\le\sum_{q\le Q}\varphi(q)\cdot2Q/(qY^k)\le2Q^2Y^{-k}$. \item[\textup{(A2)}] If $Q\le\frac12Y^{k/2}$, then the arcs $\{\alpha\in\mathbb{T}:\|\alpha-a/q\|\le Q/(qY^k)\}$ with $1\le a\le q\le Q$ and $(a,q)=1$ are pairwise disjoint: two of them with centres $a/q\ne a'/q'$ can meet only if $1/(qq')\le Q(q+q')/(qq'Y^k)$, which implies that $Y^k\le2Q^2$. Thus $\mathfrak{M}_q(Q;Y)$ consists of $\varphi(q)$ arcs of length $2Q/(qY^k)$, and $\mathfrak{M}(Q;Y)$ is the disjoint union of the sets $\mathfrak{M}_q(Q;Y)$ with $q\le Q$. \item[\textup{(A3)}] Let $\alpha\in\mathfrak{N}(Q;Y)$, and let $a$ and $q$ be coprime with $q\le Q$ and $|q\alpha-a|\le QY^{-k}$. Then $\frac12Q0$ if, whenever $\varepsilon'>0$ and $\eta'$ is a positive number that is sufficiently small in terms of $\varepsilon'$, $k$ and $u$, one has \[ \int_{\mathbb{T}}|f(\alpha;P,R')|^u\,\mathrm{d}\alpha\ll P^{\,u-k+\Delta_u+\varepsilon'}\qquad(1\le R'\le P^{\eta'}) \] for all large $P$. As $|f(\alpha;P,R')|\le P$, the number $k$ is an admissible exponent for every $u$, and the smaller of two admissible exponents for the same moment is admissible. Throughout this section $b$ is a positive number, the number $a_*$ is given by \eqref{eq:astar}, and $r$ and $t$ are real numbers with \begin{equation}\label{eq:rst} r\ge\max\bigl\{k\bigl(\mathcal{G}(u_\Theta)+a_*\bigr),\,2\bigr\},\qquad t>0,\qquad \nu:=t\,\tau_k-b>0;\qquad s:=r+t . \end{equation} Here $\tau_k=1/(9.027901\,k)$, as in \S\ref{s:explicit}. By Lemma~\ref{lem:admissible} below, the number $b$ is an admissible exponent for the moment of order $r$. Moreover \[ s>k\Bigl(\mathcal{G}(u_\Theta)+c_\Theta\,\log\frac{u_\Theta}{\tau_k}\Bigr)\ge k\,\mathcal{G}(\tau_k)>4.19\,k\ge4k+1 . \] Indeed, with $v:=b/(k\,c_\Theta\,\tau_k)$ we have $k\,a_*+b/\tau_k=k\,c_\Theta\,\bigl(\log\frac{u_\Theta}{\tau_k}+v-1-\log v\bigr)\ge k\,c_\Theta\,\log\frac{u_\Theta}{\tau_k}$, and $t>b/\tau_k$; this gives the first inequality. The second is Lemma~\ref{lem:pot}(iv), and the third holds because $\tau_k<\frac1{16}4.19$. In this section the parameters $\gamma$ and $\varepsilon$ of \eqref{eq:params} occur only in the proof of Lemma~\ref{lem:admissible}; in Proposition~\ref{prop:dyadic} and the remarks after it, the letter $\varepsilon$ denotes an arbitrary positive number. The sum $f$ is $f(\cdot\,;P,R)$ with $R=P^\eta$, where $\eta$ is supposed to be sufficiently small in terms of $k$, $\Theta$, $\delta_0$, $\varepsilon_2$, $b$, $r$ and $t$, and implied constants may depend on these numbers and on $\eta$. \begin{lemma}\label{lem:admissible} Let $b>0$ and $r\ge\max\{k(\mathcal{G}(u_\Theta)+a_*),\,2\}$, with $a_*$ as in \eqref{eq:astar}. Then $b$ is an admissible exponent for the moment of order $r$. Moreover, the number $b$ is a weight-uniform admissible exponent for the moment of order $r$ in the sense of \cite[\S2]{BW2025}, which is recalled in \S\ref{ss:weyl}. \end{lemma} \begin{proof} The numbers $\Theta$, $\delta_0$ and $\varepsilon_2$, on which $\mathcal{G}$, $u_\Theta$ and $a_*$ depend, are fixed, like $k$. Let $\varepsilon'>0$. We choose $\gamma$ and $\varepsilon$ subject to \eqref{eq:params} with $4k\gamma+3\varepsilon\le\varepsilon'$, and we let $\eta'>0$ be so small that Corollary~\ref{cor:moment} holds when $\eta'$ is taken for $\eta$ in \S\ref{ss:params}. Let $1\le R'\le P^{\eta'}$. The indicator function of $\mathcal{A}(P,R')$ belongs to the class $\mathcal{W}(P)$ that is formed with $P^{\eta'}$ in place of $R$, and the corresponding sum $F_a$ is $f(\cdot\,;P,R')$. By the second assertion of Corollary~\ref{cor:moment}, the hypothesis \eqref{eq:rDelta} holds with $\Delta=b$, and the first assertion, applied with $X=P$, gives $\int_{\mathbb{T}}|f(\alpha;P,R')|^r\,\mathrm{d}\alpha\ll P^{\,r-k+b+\varepsilon'}$. More generally, let $w:\mathbb{N}\to\mathbb{C}$ be a function with $\|w\|:=\max_{n\le P}|w(n)|>0$. The function that equals $w(n)/\|w\|$ for $n\in\mathcal{A}(P,R')$ and $0$ otherwise belongs to the same class, and so Corollary~\ref{cor:moment} gives \[ \int_{\mathbb{T}}\Bigl|\sum_{n\in\mathcal{A}(P,R')}w(n)\,e(\alpha n^k)\Bigr|^r\,\mathrm{d}\alpha\ll\|w\|^r\, P^{\,r-k+b+\varepsilon'} .\qedhere \] \end{proof} We use the following results from the theory of smooth Weyl sums. In each of them $\eta$ is supposed to be sufficiently small in terms of $k$, of the admissible exponents that occur, and of the other numbers that are named, and $P$ is large. \begin{enumerate} \item[\textup{(B1)}] \cite[(5.1) and Lemma~7.1]{BW2023}. For admissible exponents $\Delta_{2w}$, one for each $w\in\mathbb{N}$, let \[ \tau(k):=\max_{w\in\mathbb{N}}\frac{k-2\Delta_{2w}}{4w^2} . \] When $k\ge4$, these exponents can be chosen in such a way that $\tau(k)$ is at least the number $\tau_k=1/(9.027901\,k)$ of \S\ref{s:explicit}. \item[\textup{(B2)}] \cite[(5.3) and Theorem~6.1]{BW2023}. Let $s\ge2$, let $\Delta_u$ be admissible exponents for $2\le u\le s$, let $\tau(k)$ be formed with the exponents $\Delta_{2w}$ as in \textup{(B1)}, and put $\Delta_s^*:=\min_{0\le t'\le s-2}(\Delta_{s-t'}-t'\tau(k))$. Suppose that $k\ge3$ and $s\ge2k+3$, that $\Delta_s^*<0$, and let $0<\nu_0<\min\{2|\Delta_s^*|/k,\,1/(6k)\}$. Then \[ \int_{\mathfrak{m}(Q)}|f(\alpha)|^s\,\mathrm{d}\alpha\ll P^{s-k}Q^{-\nu_0}\qquad(1\le Q\le P^{k/2}). \] \item[\textup{(B3)}] \cite[Theorem~1.3]{BW2024}, applied with the number $\lfloor k/2\rfloor$ in place of the integer $t$ of that theorem, and with $\omega=\omega'=\frac12$ there; these numbers are positive and smaller than $k/2$, and they satisfy the conditions $\omega<(2\lfloor k/2\rfloor+4)/(\lfloor k/2\rfloor+10)$ and $\omega'<2k/(k+4)$ of that theorem, and then $\Omega=\frac12$. If $u>2\lfloor k/2\rfloor+4$ is real and $0<\varrho<(u-2\lfloor k/2\rfloor-4)/(2k)$, then \[ \int_{\mathfrak{M}(P^{1/2};P)\setminus\mathfrak{M}(Q;P)}|f(\alpha)|^u\,\mathrm{d}\alpha\ll P^{u-k}Q^{-\varrho} \qquad(1\le Q\le P^{1/2}). \] \item[\textup{(V)}] \cite[Lemma~5.4]{Vau1989}, in the form in which it is used in the proof of \cite[Theorem~6.2]{BW2023}. Let $L_*:=\lfloor k\log P/(2\log2)\rfloor$ and $Q_0:=L_*^{1/15}$. For coprime integers $a$ and $q$ with $0\le a\le q\le Q_0$ let $\mathfrak{K}(q,a)$ be the set of $\alpha\in[0,1)$ with $|\alpha-a/q|\le Q_0P^{-k}$, and let $\mathfrak{K}$ be the union of these sets. Then \[ f(\alpha)=c(\eta)\,q^{-1}S(q,a)\,v(\alpha-a/q)+O\bigl(PL_*^{-1/4}\bigr)\qquad(\alpha\in\mathfrak{K}(q,a)), \] where $\eta$ is fixed, the number $c(\eta)>0$ is the value of Dickman's function at $1/\eta$, and \[ S(q,a):=\sum_{x=1}^qe\Bigl(\frac{ax^k}q\Bigr),\qquad v(\beta):=\frac1k\sum_{1\le m\le P^k}m^{1/k-1}e(\beta m). \] \end{enumerate} \begin{proposition}\label{prop:prune} Suppose that \eqref{eq:rst} holds, and let $0<\nu_0<\min\{2\nu/k,\,1/(6k)\}$. Then \begin{equation}\label{eq:prune} \int_{\mathfrak{m}(Q)}|f(\alpha)|^s\,\mathrm{d}\alpha\ll P^{s-k}Q^{-\nu_0}\qquad(1\le Q\le P^{k/2}). \end{equation} \end{proposition} \begin{proof} Let the exponents $\Delta_{2w}$ be as in \textup{(B1)}. By Lemma~\ref{lem:admissible}, the number $b$ is an admissible exponent for the moment of order $r$. If $r$ is an even integer, we replace $\Delta_r$ by $\min\{\Delta_r,b\}$; this does not decrease $\tau(k)$. For the real numbers $x\in[2,s]$ that are not even integers we put $\Delta_x:=b$ if $x=r$, and $\Delta_x:=k$ otherwise. Then $\tau(k)\ge\tau_k$, and as $2\le r\le s$, the choice $t'=t=s-r$ in the definition of $\Delta_s^*$ gives \[ \Delta_s^*\le b-t\,\tau(k)\le b-t\,\tau_k=-\nu<0 . \] As $k\ge37$ and $s>4.19\,k\ge2k+3$, the proposition follows from \textup{(B2)}, because $|\Delta_s^*|\ge\nu$. \end{proof} With these exponents the number $G_0(k)=\min_{v\ge2}(v+\Delta_v/\tau(k))$ of \cite[(6.11)]{BW2023} satisfies $G_0(k)\le r+b/\tau_k4.19\,k$. We give the short direct proof, because the asymptotic formula that it provides is used in \S\ref{ss:almost}. Proposition~\ref{prop:prune} is the analogue of \cite[Theorem~6.1]{BW2023} for the admissible exponent of Lemma~\ref{lem:admissible}. The analogue of \cite[Theorem~5.2]{BW2023}, which bounds the contribution of the arcs of a given height, follows in the same way from the admissible exponents that Corollary~\ref{cor:moment} provides for moments of every order; we record it for use in other applications of the circle method. Recall that $\mathfrak{N}(Q;P)=\mathfrak{M}(Q;P)\setminus\mathfrak{M}(Q/2;P)$. \begin{proposition}\label{prop:dyadic} Let $u$ and $v$ be real numbers with $2\le v\le u$, let $\Delta\ge0$ be a real number with \[ k\,z\,\mathcal{G}(z)\le v\,z+\Delta\qquad(00$. Suppose that $\eta$ is sufficiently small in terms of $k$, $\Theta$, $\delta_0$, $\varepsilon_2$, $u$, $v$, $\Delta$ and $\varepsilon$. Then, whenever $1\le Q\le\frac12P^{k/2}R^{-k}$, one has \[ \int_{\mathfrak{N}(Q;P)}|f(\alpha)|^u\,\mathrm{d}\alpha\ll P^{u-k+\varepsilon}Q^{2(\Delta-(u-v)\tau_k)/k}, \] where the implied constant may depend on $k$, $\Theta$, $\delta_0$, $\varepsilon_2$, $u$, $v$, $\Delta$ and $\varepsilon$. In particular, if \eqref{eq:rst} holds, then, whenever $1\le Q\le\frac12P^{k/2}R^{-k}$, one has \[ \int_{\mathfrak{N}(Q;P)}|f(\alpha)|^s\,\mathrm{d}\alpha\ll P^{s-k+\varepsilon}Q^{-2\nu/k} . \] \end{proposition} \begin{proof} The hypothesis on $\Delta$ is \eqref{eq:rDelta} with $v$ in place of $r$. So the proof of Lemma~\ref{lem:admissible}, in which the first assertion of Corollary~\ref{cor:moment} is now applied with $v$ and $\Delta$ in place of $r$ and $b$, shows that $\Delta$ is an admissible exponent for the moment of order $v$. We choose the exponents $\Delta_x$ for $2\le x\le u$ as in the proof of Proposition~\ref{prop:prune}, with $u$, $v$ and $\Delta$ in place of $s$, $r$ and $b$, and form $\tau(k)$ and $\Delta_u^*$ with them as in \textup{(B1)} and \textup{(B2)}. Then $\tau(k)\ge\tau_k$, and the choice $t'=u-v$, which is permitted as $2\le v\le u$, gives \[ \Delta_u^*\le\Delta-(u-v)\,\tau(k)\le\Delta-(u-v)\,\tau_k . \] By \cite[Theorem~5.2]{BW2023}, applied with $u$ in place of $s$, the integral is $\ll P^{u-k+\varepsilon}Q^{2\Delta_u^*/k}$ when $1\le Q\le\frac12P^{k/2}R^{-k}$, and the proposition follows, since $Q\ge1$. If \eqref{eq:rst} holds, then the hypothesis on $\Delta$ is satisfied with $v=r$ and $\Delta=b$, by the last assertion of Corollary~\ref{cor:moment}, and for $u=s$ the exponent of $Q$ is $2(b-t\tau_k)/k=-2\nu/k$. \end{proof} With $u=v$ the proposition shows that on the arcs of height $Q$ the moment of order $v$ exceeds $P^{v-k}$ by a factor $Q^{2\Delta/k}P^{\varepsilon}$ at most, whereas the admissible exponent $\Delta$ gives the factor $P^{\Delta+\varepsilon}$ for the integral over $\mathbb{T}$. The least number $\Delta$ that satisfies the hypothesis is $k\sup_{0v+\Delta/\tau_k$; with $v=r$ and $\Delta=b$ as in Lemma~\ref{lem:admissible}, for every $u>r+b/\tau_k$. For $0\mathcal Y$. We shall show that $G(k)\le s$; this gives $G(k)\le\lfloor\mathcal Y\rfloor+1$, which is the first assertion of the theorem. \emph{The choice of the parameters.} Let $\delta_0$ and $\varepsilon_2$ be as in \eqref{eq:params}, with $\varepsilon_2\le\delta_0$, let $c_\Theta$, $u_\Theta$ and $\mathcal{G}$ be as in \S\ref{s:pot}, and put \[ b:=k\,c_\Theta\,\tau_k,\qquad\text{so that}\qquad a_*=c_\Theta\,\log\frac{k\,c_\Theta\,u_\Theta}{\mathrm{e}\,b}=c_\Theta\,\Bigl( \log\frac{u_\Theta}{\tau_k}-1\Bigr) \] in \eqref{eq:astar}; this is the value of $b$ for which $k\,a_*+b/\tau_k$ is smallest. Then \begin{equation}\label{eq:Ydelta} k\bigl(\mathcal{G}(u_\Theta)+a_*\bigr)+\frac b{\tau_k}=k\Bigl(\mathcal{G}(u_\Theta)+c_\Theta\,\log\frac{u_\Theta}{\tau_k}\Bigr). \end{equation} We bound $\mathcal{G}(u_\Theta)$ by Lemma~\ref{lem:pot}(i) and let $\delta_0\to0$. Then $h_c\to h_k$, while $w_c\to w:=\frac1{10}-\frac{h_k}{50}$ and $z_c\to z:=(1-h_k)w$; moreover $u_\Theta\to\frac12(1-\eta_k(\Theta))\sigma(\Theta)=y_k(\Theta)\,\tau_k$ and $c_\Theta\to2/\Theta$, so that $c_\Theta\,\log(u_\Theta/\tau_k)\to W_k(\Theta)$. The integral in Lemma~\ref{lem:pot}(i) tends to $R_k(\Theta)$: since $1-\delta_0-\eta_k(\theta)=(1-\delta_0)\bigl(1-\theta\kappa(\theta)/((1-\delta_0)k)\bigr)$, it is given by the formulae of Lemma~\ref{lem:R} with $(1-\delta_0)k$ in place of $k$, and these are continuous in $k$. As $ \Psi$ and $I$ are continuous, the upper limit of the right hand side of \eqref{eq:Ydelta} is at most \[ k\Bigl(\Psi(z)+2\,I(2w)-2\,T(\Theta)+2R_k(\Theta)+W_k(\Theta)\Bigr) . \] Now $\frac1{16}\le w\le\frac1{10}$, so Lemma~\ref{lem:I} gives $I(2w)=\Lambda-\frac13\log\frac{3-12w}{18w}$. With $h:=h_k$ we have $\frac{3-12w}{18w}=\frac{15+2h}{15-3h}$ and $z=\frac1{50}(1-h)(5-h)$, hence $\frac{1-z}{z}=\frac{45+6h-h^2}{(1-h)(5-h)}$, and therefore $\Psi(z)+2I(2w)=C(h_k)$. Thus the last display equals $\mathcal Y$. Consequently we can fix $\delta_0$ and $\varepsilon_2$ in such a way that the number in \eqref{eq:Ydelta} is smaller than $s$. We then choose a real number $t>b/\tau_k$ so close to $b/\tau_k$ that $r:=s-t$ exceeds $k(\mathcal{G}(u_\Theta)+a_*)$. By Lemma~\ref{lem:pot}(iv), we have $\mathcal{G}(u_\Theta)+a_*\ge \mathcal{G}(\tau_k)-c_\Theta\ge\Psi(\frac1{10})-1>3$, as in \S\ref{ss:arcs}, so that $r>3k$. With these choices \eqref{eq:rst} holds. Finally we fix a number $\nu_0$ with $0<\nu_0<\min\{2\nu/k,\,1/(6k)\}$, and we let $\eta$ be so small that Proposition~\ref{prop:prune} and \textup{(V)} hold. \emph{The circle method.} Let $N$ be a large natural number and $P:=N^{1/k}$. By orthogonality, the integral \[ r_s(N):=\int_{\mathbb{T}}f(\alpha)^s\,e(-N\alpha)\,\mathrm{d}\alpha \] is the number of representations of $N$ as a sum of $s$ $k$-th powers of natural numbers $n\le P$ without prime factors exceeding $P^\eta$. Let $\mathfrak{S}_s(N)$ be the singular series. We shall show that \begin{equation}\label{eq:asymp} r_s(N)=c(\eta)^s\,\mathfrak{S}_s(N)\,\frac{\Gamma(1+\frac1k)^s}{\Gamma(\frac sk)}\,N^{s/k-1} +O\bigl(N^{s/k-1}(\log N)^{-\nu_0/15}\bigr). \end{equation} As $\mathfrak{S}_s(N)\gg1$ (see below), this implies that $r_s(N)>0$ when $N$ is large, and hence that $G(k)\le s$. Let $Q_0$, $L_*$ and the sets $\mathfrak{K}(q,a)$ be as in \textup{(V)}. For large $P$ these sets are pairwise disjoint, one has $\mathfrak{M}(Q_0;P)\subseteq\mathfrak{K}$, and $\operatorname{meas}\mathfrak{K}\le4Q_0^3P^{-k}$. For $\alpha\in\mathfrak{K}(q,a)$, \textup{(V)} gives \[ f(\alpha)^s=c(\eta)^s\bigl(q^{-1}S(q,a)\bigr)^sv(\alpha-a/q)^s+O\bigl(P^sL_*^{-1/4}\bigr), \] because $f(\alpha)$ and the main term in \textup{(V)} are $O(P)$; note that $|v(\beta)|\le v(0)\le P$. As $N=P^k$ and $Q_0^3L_*^{-1/4}=L_*^{-1/20}$, integration gives \[ \int_{\mathfrak{K}}f(\alpha)^se(-N\alpha)\,\mathrm{d}\alpha=c(\eta)^s\,\mathfrak{S}_s(N;Q_0)\,\mathfrak{J}_s(N;Q_0) +O\bigl(P^{s-k}L_*^{-1/20}\bigr), \] where, for $n\in\mathbb{N}$ and $X\ge1$, \[ \mathfrak{S}_s(n;X):=\sum_{q\le X}\ \sum_{\substack{a=1\\(a,q)=1}}^q\bigl(q^{-1}S(q,a)\bigr)^se\Bigl(-\frac{na}q\Bigr), \qquad\mathfrak{J}_s(n;X):=\int_{-XP^{-k}}^{XP^{-k}}v(\beta)^se(-n\beta)\,\mathrm{d}\beta . \] (For $q=1$ the two sets $\mathfrak{K}(1,0)$ and $\mathfrak{K}(1,1)$ together form one arc of $\mathbb{T}$.) By the classical bounds $S(q,a)\ll q^{1-1/k}$ and $v(\beta)\ll\min\{P,|\beta|^{-1/k}\}$ for $|\beta|\le\frac12$ \cite[Chapters~2 and~4]{Vau1997}, and since $s>4k$, one has $\mathfrak{S}_s(N;Q_0)=\mathfrak{S}_s(N)+O(Q_0^{2-s/k})$, where $\mathfrak{S}_s(N)=\lim_{X\to\infty}\mathfrak{S}_s(N;X)$, and \begin{align*} \mathfrak{J}_s(N;Q_0)&=\int_{-1/2}^{1/2}v(\beta)^se(-N\beta)\,\mathrm{d}\beta+O\bigl(P^{s-k}Q_0^{1-s/k}\bigr)\\ &=\frac{\Gamma(1+\frac1k)^s}{\Gamma(\frac sk)}N^{s/k-1}+O\bigl(N^{s/k-1}(Q_0^{1-s/k}+N^{-1/k})\bigr); \end{align*} for the last step see \cite[Chapter~2]{Vau1997}. Moreover $\mathfrak{S}_s(N)\ll1$, and $\mathfrak{S}_s(N)\gg1$ uniformly in $N$ because $s\ge4k$ \cite[Theorem~4.6]{Vau1997}. On the complement of $\mathfrak{K}$ we use Proposition~\ref{prop:prune}: as $\mathbb{T}\setminus\mathfrak{K}\subseteq\mathfrak{m}(Q_0)$, the integral over $\mathbb{T}\setminus\mathfrak{K}$ is $\ll P^{s-k}Q_0^{-\nu_0}$. Since $Q_0=L_*^{1/15}$ and $L_*\asymp\log N$, and since $\nu_0<\frac1{6k}$, this proves \eqref{eq:asymp}. \emph{The second assertion.} We differentiate $C$ term by term. For $0\le h\le\frac15$, we have \begin{align*} C'(h)&=\frac{6-2h}{45+6h-h^2}+\frac1{1-h}+\frac1{5-h}-\frac23\Bigl(\frac{2}{15+2h}+\frac{3}{15-3h}\Bigr)\\ &\le\frac6{45}+\frac54+\frac5{24}-\frac23\Bigl(\frac{2}{15.4}+\frac{3}{15}\Bigr)<\frac75 . \end{align*} As $h_k\le\frac15$ for $k\ge37$, we get $k\,C(h_k)\le C_0k+\frac75kh_k=C_0k+\frac{252\,k}{25(k-1)}\le C_0k+11$. \end{proof} By \eqref{eq:asymp}, the number of representations that we count satisfies $r_s(N)\asymp N^{s/k-1}$; the restriction to smooth variables costs only the factor $c(\eta)^s$. \begin{remark}\label{rem:W95} The proof uses the moments of Corollary~\ref{cor:moment} only through Lemma~\ref{lem:admissible}. In \cite{CD2026} the theory of smooth Weyl sums is applied to $2k$ additional smooth variables, which supply a bound of Weyl type on the minor arcs and make it possible to prune back to the major arcs. Here all variables are smooth, and their number is determined by Corollary~\ref{cor:moment}: the further $t>b/\tau_k$ variables beyond the order $r$ of the moment are what \textup{(B2)} requires in order to compensate the excess $P^{b}$. The bounds of Weyl type for $f$ that are used for the fractional parts of $\alpha n^k$ are recalled in \S\ref{ss:weyl}. \end{remark} \subsection{Almost all natural numbers}\label{ss:almost} We now prove Theorem~\ref{thm:almostexplicit}. The argument is the familiar one: the contribution of the arcs of height at least $P^{1/2}$ is estimated in mean square over $n$ by means of Bessel's inequality, so that a mean value of order $2\ell$ controls the representations by $\ell$ $k$-th powers (compare \cite[\S9]{BW2023}), while on the arcs of smaller height \textup{(B3)} and \textup{(V)} provide estimates that are uniform in $n$. Let $\mathcal Y$ be the number defined in the proof of Theorem~\ref{thm:explicit}, let $\ell$ be an integer with $2\ell>\mathcal Y$, and let all parameters be chosen as in that proof with $s:=2\ell$. Then \eqref{eq:rst} holds, so that Proposition~\ref{prop:prune} is available with $s=2\ell$; moreover $2\ell>4.19\,k$, by \S\ref{ss:arcs}, so that $\ell>2.09\,k$, and in particular $\ell\ge2k+1$ and $\ell>2\lfloor k/2\rfloor+4$. We fix a number $\varrho'$ with $0<\varrho'<(\ell-2\lfloor k/2\rfloor-4)/(2k)$, and we suppose that $\eta$ is so small that \textup{(B3)} holds with $u=\ell$ and $\varrho=\varrho'$. For a large real number $N$ let $P:=N^{1/k}$, and for $n\in\mathbb{N}$ let \[ r_\ell(n):=\int_{\mathbb{T}}f(\alpha)^\ell\,e(-n\alpha)\,\mathrm{d}\alpha , \] which is the number of representations of $n$ as a sum of $\ell$ $k$-th powers of elements of $\mathcal{A}(P,R)$. Let $\mathfrak{S}_\ell(n)$ and $\mathfrak{S}_\ell(n;X)$ be as in \S\ref{ss:major}, with $\ell$ in place of $s$. \begin{proposition}\label{prop:almost} In this situation all integers $n$ with $\frac12N2k$, and that the integral of $v(\beta)^\ell e(-n\beta)$ over $[-\frac12,\frac12]$ equals $\Gamma(1+\frac1k)^\ell\Gamma(\frac\ell k)^{-1}n^{\ell/k-1}(1+O(n^{-1/k}))$ also when $n\le P^k$ \cite[Chapter~2]{Vau1997}, because the condition $m\le P^k$ in the definition of $v$ is then implied by the equation. As $\mathfrak{M}(P^{1/2};P)\setminus\mathfrak{K}\subseteq\mathfrak{M}(P^{1/2};P)\setminus \mathfrak{M}(Q_0;P)$, \textup{(B3)} with $u=\ell$ gives $|I_2(n)|\ll P^{\ell-k}Q_0^{-\varrho'}$, uniformly in $n$. The numbers $I_3(n)$ are the Fourier coefficients of the function that equals $f^\ell$ on $\mathfrak{m}(P^{1/2})$ and vanishes elsewhere. By Bessel's inequality and Proposition~\ref{prop:prune} with $s=2\ell$, we have \[ \sum_{n\in\mathbb{Z}}|I_3(n)|^2\le\int_{\mathfrak{m}(P^{1/2})}|f(\alpha)|^{2\ell}\,\mathrm{d}\alpha\ll P^{2\ell-k-\nu_0/2} . \] Hence $|I_3(n)|\le P^{\ell-k-\nu_0/12}$ for all integers $n$ with at most $O(P^{k-\nu_0/3})=O(N^{1-\nu_0/(3k)})$ exceptions. Since $Q_0=L_*^{1/15}$ and $L_*\asymp\log N$, the proposition follows. \end{proof} The lower bound for $G^+(k)$ when $k$ is a power of $2$ comes from the following elementary fact. \begin{lemma}\label{lem:cong} Let $k\ge4$ be a power of $2$, and let $n=x_1^k+\dots+x_s^k$ with integers $x_i$, exactly $j$ of which are odd. Then $n\equiv j\pmod{4k}$. If $k\ge8$ and $n\equiv4k\pmod{8k}$, then $s\ge4k$. Consequently $G^+(k)\ge4k$ when $k\ge8$. \end{lemma} \begin{proof} If $x$ is odd, then $x^{2^i}\equiv1\pmod{2^{i+2}}$ for all $i\ge1$, by induction on $i$; in particular $x^k\equiv1\pmod{4k}$. If $x$ is even, then $2^k$ divides $x^k$, and $4k$ divides $2^k$, because both are powers of $2$ and $4k\le2^k$. This gives the first assertion. Now let $k\ge8$. Then $8k\le2^k$, so that $8k$ divides $2^k$. If $n\equiv4k\pmod{8k}$, then $j\equiv0\pmod{4k}$ by the first assertion, and $j\ne0$, since otherwise $8k$ would divide $n$. Hence $s\ge j\ge4k$. The integers $n\equiv4k\pmod{8k}$ have density $1/(8k)$, and none of them is the sum of fewer than $4k$ $k$-th powers; so $G^+(k)\ge4k$. \end{proof} For $k=4$ the second step fails, because then $2^k=4k$; and indeed $G^+(4)=15$ \cite{HL1925}. By the first assertion of the lemma, an integer $n\equiv j\pmod{4k}$ with $1\le j<4k$ is not the sum of fewer than $j$ $k$-th powers. \begin{proof}[Proof of Theorem~\ref{thm:almostexplicit}] Let $\ell$ be as in the theorem. Then $2\ell>\mathcal Y$, so that Proposition~\ref{prop:almost} is available, and $\ell>2.09\,k$. Let $\mathcal{N}$ denote the set of all natural numbers when $k$ is not a power of $2$, and the set of all natural numbers $n\equiv j\pmod{4k}$ in the situation of part~(ii). We claim that \begin{equation}\label{eq:sslower} \mathfrak{S}_\ell(n)\gg1\qquad\text{uniformly for }n\in\mathcal{N}. \end{equation} When $k$ is not a power of $2$ this is \cite[Theorem~4.6]{Vau1997}, because $\ell\ge\frac32k$. When $k$ is a power of $2$ it follows from the classical theory of the singular series \cite[Lemma~2.13 and Theorem~4.5]{Vau1997}, as in the proof of \cite[Lemma~3.2]{BW2024b}; we recall the facts on which this rests. Since $\ell\ge2k+1$ and $S(q,a)\ll q^{1-1/k}$, the singular series is an absolutely convergent product $\prod_p\chi_p(n)$ of local densities, and $\chi_p(n)=1+O(p^{-1-1/k})$ uniformly in $n$; hence the product over the primes $p>p_1$ is at least $\frac12$ for every $n$, if $p_1$ is large in terms of $k$. For each prime $p$ the density $\chi_p(n)$ is bounded below by a positive number that depends only on $p$, $k$ and $\ell$, provided that the congruence \[ x_1^k+\dots+x_\ell^k\equiv n \] has a solution with $p\nmid x_1$ modulo $4k$ when $p=2$, and modulo $p$ when $p$ is odd: the modulus $4k$ is the one that \cite[Lemma~2.13]{Vau1997} prescribes for $p=2$ when $k$ is a power of $2$, and for odd $p$ one has $p\nmid k$, so that a solution modulo $p$ with $p\nmid x_1$ is non-singular. For $n\equiv j\pmod{4k}$ with $1\le j\le\ell$ a solution modulo $4k$ with $x_1$ odd is given by $x_1=\dots=x_j=1$ and $x_{j+1}=\dots=x_\ell=0$. For odd $p$ let $g:=(k,p-1)$. There are $(p-1)/g$ non-zero $k$-th power residues modulo $p$, so that every residue class modulo $p$ is a sum of $g$ $k$-th powers, by the Cauchy--Davenport theorem; as $\ell-1\ge k\ge g$, we may take $x_1=1$ and represent $n-1$ by the remaining variables. (When $\ell\ge4k$ one may quote \cite[Theorem~4.6]{Vau1997} again.) Let $N$ be large. For $\frac12N0$, and are therefore sums of $\ell$ $k$-th powers of natural numbers. We apply this with $2^{-i}N$ in place of $N$ for all integers $i\ge0$ with $2^{-i}N\ge N^{1/2}$, and conclude that the number of $n\le N$ in $\mathcal{N}$ that are not sums of $\ell$ $k$-th powers of natural numbers is $O(N^{1-\delta})$ with $\delta:=\nu_0/(3k)$, which is the number $\delta$ of the theorem. This proves the first assertions of (i) and (ii). The bound for $G^+(k)$ in (i) follows on taking for $\ell$ the least integer that exceeds $\frac12\mathcal Y$. For the last assertion of (ii) we apply what has been proved with $\max\{\ell,4k\}$ in place of $\ell$, and with all $j$ in the range $1\le j\le4k$. \end{proof} In fact the representations that have been counted use only $k$-th powers of natural numbers without prime factors exceeding $(2n)^{\eta/k}$. \subsection{The mean value of \texorpdfstring{$f$}{f}}\label{ss:mvproof} Theorem~\ref{thm:mvexplicit} is contained in what has been proved, as we now show. \begin{proof}[Proof of Theorem~\ref{thm:mvexplicit}] Let $s_1$ be as in the theorem. In the proof of Theorem~\ref{thm:explicit} the number $s$ is an integer that exceeds $\mathcal Y$, but the choice of the parameters that is described there does not depend on $s$ being an integer. So the parameters can be chosen as in that proof with $s_1$ in place of $s$, and then \eqref{eq:rst} holds with $s=s_1$. Let $\nu_0$ be as in that proof, and put $\nu_1:=\frac12\nu_0$. Recall that $s_1>4.19\,k$, so that $1.5<\varrho^\dagger<(s_1-2\lfloor k/2\rfloor-4)/(2k)$; only the inequalities $0<\varrho^\dagger<(s_1-2\lfloor k/2 \rfloor-4)/(2k)$ are used below. We let $\eta_1>0$ be so small that, for $0<\eta\le\eta_1$, Proposition~\ref{prop:prune} holds with $s=s_1$, \textup{(B3)} holds with $u=s_1$ and $\varrho=\varrho^\dagger$, and \textup{(V)} holds. Let $0<\eta\le\eta_1$ and let $P$ be large. As $|f|\le P$, it suffices to prove (ii) and the upper bound in (i) for $s=s_1$; the lower bound in (i) is proved below for every $s>0$. (ii) For $Q\ge P^{k/2}$ the integral vanishes, by \textup{(A1)}. Let $P^{1/2}\le Q\le P^{k/2}$. Then $\mathfrak{m}(Q)\subseteq\mathfrak{m}(P^{1/2})$, and by Proposition~\ref{prop:prune} the integral is $\ll P^{s_1-k}P^{-\nu_0/2}=P^{s_1-k-\nu_1}$. Finally let $1\le Q0$, the integral of $|f|^{s}$ over $\mathbb{T}$ is at least $(\frac12f(0))^{s}(2\pi P^k)^{-1}\gg P^{s-k}$. \end{proof} \section{Evaluation of the bound}\label{s:eval} In this section the functions of Definition~\ref{def:saving} are made explicit, Theorems~\ref{thm:main} and~\ref{thm:all} are deduced from Theorem~\ref{thm:explicit}, Theorem~\ref{thm:almost} is deduced from Theorem~\ref{thm:almostexplicit}, and Theorem~\ref{thm:mv} and Corollary~\ref{cor:mvranges} are deduced from Theorem~\ref{thm:mvexplicit}. \subsection{The functions \texorpdfstring{$\sigma$, $\theta^*$ and $I$}{σ, θ* and I}} We begin with the monotonicity of $\varsigma$ and with a closed formula for $\theta^*$. \begin{lemma}\label{lem:theta} \textup{(i)} The function $\varsigma$ is continuous and nonincreasing on $[1,\infty)$, so that $\sigma=\varsigma$. It is strictly decreasing on $[1,\frac72]$ and on each of the intervals $[D-\frac1D,\frac{(D+1)^2}{D+2}]$ with $D\ge4$, and it is constant on $[\frac72,\frac{15}4]$ and on each of the intervals $[\frac{(D+1)^2}{D+2},D+1-\frac1{D+1}]$ with $D\ge4$. \textup{(ii)} One has \[ \theta^*(s)=\begin{cases} 2-2s,& \frac14\le s\le\frac12,\\ 3-6s,& \frac18\le s\le\frac14,\\ 4-14s,& \frac1{16}\le s\le\frac18,\\ 5-30s,& \frac1{20}\frac2{\Theta+5/4}$ by Lemma~\ref{lem:I}(i), because $D\le\Theta+1$. In the second case put $x:=(D+1-\Theta)/(D+1)$, so that $\frac1{D+2}\le x\le\frac1D$ and $\Theta=(D+1)(1-x)$. Then \[ \sigma(\Theta)\,\Theta(\Theta+1)=(1-x)\cdot x\bigl(D+2-(D+1)x\bigr)\le\frac{D+1}{D+2}\cdot\frac{D^2+D-1}{D^2}<1, \] because the function $x\mapsto x(D+2-(D+1)x)$ increases on $[0,\frac1D]$. Moreover \[ T(\Theta)\ge I\Bigl(\frac1{(D+1)(D+2)}\Bigr)\ge\frac2{D+1}\ge\frac2{\Theta+\frac54}, \] because $D+1\le\Theta+1+\frac1D\le\Theta+\frac54$. \end{proof} \begin{lemma}\label{lem:R} Let $k>0$ and $\Theta>\frac95$ be real numbers with $\eta_k(\Theta)<1$. Put $t_0=\frac95$, $t_1=\frac94$, $t_2=\frac{25}8$, $t_3=6$ and $\kappa_1=4$, $\kappa_2=8$, $\kappa_3=10$. If $\Theta\le6$ then, with $t_i':=\min\{t_i,\Theta\}$, one has \[ R_k(\Theta)=\sum_{\substack{1\le i\le3\\ t_{i-1}<\Theta}}\frac{\kappa_i}{k}\, \log\frac{t_i'\,(k-\kappa_it_{i-1})}{t_{i-1}\,(k-\kappa_it_i')}+\sum_{\substack{1\le i\le2\\ t_i<\Theta}}\frac1{t_i}\, \log\frac{k-\kappa_it_i}{k-\kappa_{i+1}t_i}. \] If $\Theta>6$ then, with $a_k:=\sqrt{k+4}-2$, one has \begin{align*} R_k(\Theta)&=R_k(6)+\int_{6}^{\Theta}\frac{(2\theta+4)\,\mathrm{d}\theta}{\theta\,(k-\theta^2-4\theta)}\\ &=R_k(6)+\frac4k\log\frac{\Theta}{6}+\frac1{a_k}\log\frac{a_k-6}{a_k-\Theta}+\frac1{a_k+4} \log\frac{a_k+4+\Theta}{a_k+10}. \end{align*} Moreover, for $k>60$, which is the range in which $\eta_k(6)<1$, the number $k\,R_k(6)$ is a decreasing function of $k$, and $k\,R_k(6)<16.14$ for $k\ge5000$. \end{lemma} \begin{proof} On $(t_{i-1},t_i]$ we have $-\log(1-\eta_k(\theta))=-\log(1-\kappa_i\theta/k)$, with differential $\frac{\kappa_i\,\mathrm{d}\theta}{k-\kappa_i\theta}$, and $\int\frac{\kappa\,\mathrm{d}\theta}{\theta(k-\kappa\theta)}=\frac\kappa k\log\frac{\theta}{k-\kappa\theta}$. At $t_i$ $(i\le2)$ the function jumps by $\log\frac{k-\kappa_it_i}{k-\kappa_{i+1}t_i}$; it is continuous at $t_3=6$, where $\max\{10,\theta+4\}=10$. The number $a=a_k$ is the positive root of $a(a+4)=k$. For $\theta\ge6$ we have $1-\eta_k(\theta)=(k-\theta^2-4\theta)/k$, which equals $(a-\theta)(a+4+\theta)/k$, and \[ \frac{2\theta+4}{\theta\,(a-\theta)(a+4+\theta)}=\frac4k\cdot\frac1\theta+\frac1a\cdot\frac1{a-\theta}+\frac1{a+4} \cdot\frac1{a+4+\theta}, \] which gives the formula for $\Theta>6$. Each summand of $k\,R_k(6)$ decreases as $k$ grows: this is clear for the first sum, and for the jumps it follows from the fact that $y\mapsto y\log(1+\frac{a}{y-b})$ is decreasing for $y>b$ when $b>a>0$. Finally $5000\,R_{5000}(6)=16.136\ldots$. \end{proof} \subsection{Moderate \texorpdfstring{$k$}{k}}\label{ss:moderate} For $k\ge37$ let \[ \Theta_{\max}(k):=\begin{cases}\min\{\frac k{16},\frac{25}8\},&37\le k\le62,\\[1pt] \frac k{20},&k\ge63,\end{cases} \qquad \Theta^\sharp(k):=\min\bigl\{\Theta_{\max}(k),\tfrac9{10}\,a_k\bigr\}, \] where $a_k=\sqrt{k+4}-2$ is the positive root of $a(a+4)=k$, as in Lemma~\ref{lem:R}. Thus $\Theta_{\max}(k)$ is the largest number $\Theta$ with $\Theta\le\varpi(\Theta)k$, and every $\Theta\in[\frac94,\Theta_{\max}(k)]$ has this property. Moreover $\Theta^\sharp(k)\ge\frac94$, because $\Theta_{\max}(k)\ge\frac{37}{16}$ and $\frac9{10}a_k\ge\frac9{10}a_{37}>\frac94$; and $\Theta(\Theta+4)68.71$. We have seen in \S\ref{ss:moderate} that $\Theta=\Theta^\sharp(k)$, and that this number is admissible. As $\Theta>6$, we have $\kappa(\Theta)=\Theta+4$, and since $k=a(a+4)$, we have \[ 1-\eta_k(\Theta)=\frac{(a-\Theta)(a+4+\Theta)}{k}=\frac{19a+40}{100\,(a+4)} . \] \emph{The term $T$.} By Lemma~\ref{lem:T}, we have \begin{align*} -2k\,T(\Theta)\le-\frac{4k}{\Theta+\frac54}=-\frac{40}9\cdot\frac{a(a+4)}{a+\frac{25}{18}}&=-\frac{40}9\,a-\frac{1880}{162} +\frac{47000}{2916\,(a+\frac{25}{18})}\\ &<-\frac{40}9\sqrt k+\frac{80}9-\frac{1880}{162}+0.23<-\frac{40}9\sqrt k-2.48 . \end{align*} \emph{The term $R_k$.} By Lemma~\ref{lem:R}, and since $k/a=a+4$, we have \[ 2k\,R_k(\Theta)=2k\,R_k(6)+8\log\frac\Theta{6}+2(a+4)\log\frac{a-6}{a-\Theta}+2a\log\frac{a+4+\Theta}{a+10}. \] Here $2kR_k(6)<32.28$, and $8\log\frac\Theta{6}<8\log\frac{3\sqrt k}{20}=4\log k-8\log\frac{20}3<4\log k-15.17$. Next, one has $\frac{a-6}{a-\Theta}=10\bigl(1-\frac6a\bigr)$, so that the third term is smaller than \[ 2(a+4)\Bigl(\log10-\frac6a\Bigr)<2a\log10+8\log10-12<2a\log10+6.43. \] Further $\frac{a+4+\Theta}{a+10}=\frac{19}{10}\bigl(1-\frac{150/19}{a+10}\bigr)$, so that the fourth term is smaller than \[ 2a\log\frac{19}{10}-\frac{300}{19}\cdot\frac{a}{a+10}<2a\log\frac{19}{10}-13.78, \] because $\frac a{a+10}>\frac{68.71}{78.71}$. Finally $2a\log19<2\sqrt k\log19-3.94\log19<2\sqrt k\log19-11.60$. Altogether \[ 2k\,R_k(\Theta)<2\sqrt k\log19+4\log k-1.84 . \] \emph{The term $W_k$.} By Lemma~\ref{lem:T}, one has $\sigma(\Theta)\le1/(\Theta(\Theta+1))$. Hence \[ y_k(\Theta)\le\frac{9.027901\,a(a+4)}2\cdot\frac{19a+40}{100\,(a+4)}\cdot\frac{100}{9a\,(9a+10)} =\frac{19\cdot9.027901}{162}\Bigl(1+\frac{170/171}{a+\frac{10}9}\Bigr). \] With $L_0:=\log\frac{19\cdot9.027901}{162}=0.05716\ldots$ we obtain $\log y_k(\Theta)\le L_0+\frac{170}{171a}$, and since $2k/\Theta=\frac{20}9(a+4)$, we have \[ k\,W_k(\Theta)=\frac{20}9(a+4)\log y_k(\Theta)\le\frac{20}9\Bigl(L_0\,a+4L_0+\frac{170}{171}+\frac{680}{171\,a}\Bigr)< \frac{20}9L_0\sqrt k+2.60 ; \] here we used that $a<\sqrt k-1.97$ and $a>68.71$. By the second inequality of Theorem~\ref{thm:explicit}, we have \[ G(k)\le C_0k+k\bigl(-2T(\Theta)+2R_k(\Theta)+W_k(\Theta)\bigr)+12. \] The three estimates now give the bound of the proposition, as $12-2.48-1.84+2.60<11$. Finally $c_3<1.572$, and \[ 1.572\sqrt k+4\log k+11<2.5\sqrt k\qquad(k\ge5000), \] since this holds for $k=5000$ and $0.928\sqrt k-4\log k$ increases with $k$. \end{proof} \begin{proposition}\label{prop:asymp} Let $0<\lambda<1$ be fixed, and put \[ \phi(\lambda):=-\frac4\lambda+2\log\frac{1+\lambda}{1-\lambda}+\frac2\lambda\, \log\frac{9.027901\,(1-\lambda^2)}{2\lambda^2}. \] Then $G(k)\le C_0\,k+\phi(\lambda)\sqrt k+4\log k+O_\lambda(1)$. The function $\phi$ attains its minimum at $\lambda_0:=(9.027901/11.027901)^{1/2}=0.90478\ldots$, and \[ \phi(\lambda_0)=-\frac4{\lambda_0}+2\log\frac{1+\lambda_0}{1-\lambda_0}=1.57112\ldots,\qquad\phi\bigl(\tfrac9{10} \bigr)=c_3=1.57146\ldots . \] \end{proposition} \begin{proof} Let $k$ be large and $\Theta:=\lambda\sqrt k$. Then $\Theta$ is admissible, with $\eta_k(\Theta)=\lambda^2+4\lambda/\sqrt k$, and $a_k=\sqrt k-2+O(k^{-1/2})$. We argue as in the proof of Proposition~\ref{prop:large}. First, we have \[ -2kT(\Theta)\le-\frac{4k}{\Theta+\frac54}=-\frac{4\sqrt k}{\lambda}+O_\lambda(1). \] Secondly, we have \[ \frac{a_k-6}{a_k-\Theta}=\frac1{1-\lambda}\bigl(1+O_\lambda(k^{-1/2})\bigr),\qquad\frac{a_k+4+\Theta}{a_k+10}=(1+\lambda)\bigl(1+O(k^{-1/2})\bigr), \] so that $2kR_k(\Theta)=2\sqrt k\log\frac{1+\lambda}{1-\lambda}+4\log k+O_\lambda(1)$. Thirdly, we have $1-\eta_k(\Theta)\le1-\lambda^2$ and $\sigma(\Theta)\le\Theta^{-2}$, so that $y_k(\Theta)\le9.027901(1-\lambda^2)/(2\lambda^2)$, and \[ kW_k(\Theta)=\frac{2\sqrt k}{\lambda}\,\log y_k(\Theta)\le\frac{2\sqrt k}{\lambda}\,\log\frac{9.027901\,(1-\lambda^2)} {2\lambda^2} . \] The first assertion now follows from Theorem~\ref{thm:explicit}. A short computation gives \[ \phi'(\lambda)=-\frac2{\lambda^2}\,\log\frac{9.027901\,(1-\lambda^2)}{2\lambda^2}, \] which is negative for $\lambda<\lambda_0$ and positive for $\lambda>\lambda_0$, the logarithm being zero at $\lambda_0$. This gives the remaining assertions. \end{proof} Thus the bound is smallest, to this order, when $\Theta$ is such that the term $W_k(\Theta)$ vanishes, in accordance with the remarks following Theorem~\ref{thm:explicit}. \begin{proof}[Proof of Theorems~\ref{thm:main} and~\ref{thm:all}] For $k>5000$ we have $G(k)\mathcal Y$ is $\lceil\frac12G^\sharp(k)\rceil$, because $k\,B^\sharp(k)$ is not an integer: its distance from the integers is at least $2\cdot10^{-5}$ (\S\ref{ss:numerics}). By Proposition~\ref{prop:moderate} and its proof, one has $\mathcal Y<7.39\,k$ and $G^\sharp(k)\le C_0k+6.59\sqrt k$, so that \[ \bigl\lceil\tfrac12G^\sharp(k)\bigr\rceil\le\tfrac12\bigl(G^\sharp(k)+1\bigr)\le\tfrac12C_0k+3.295\sqrt k+\tfrac12 <\tfrac12C_0k+3.5\sqrt k ; \] note that $0.205\sqrt k>\frac12$ for $k\ge37$. For $k\ge5000$ we take $\Theta=\frac9{10}a_k$. Then, by the inequality $k\,C(h_k)\le C_0k+11$ of Theorem~\ref{thm:explicit} together with the three estimates in the proof of Proposition~\ref{prop:large}, we have $\mathcal Y\le C_0k+c_3\sqrt k+4\log k+10$, since $11-2.48-1.84+2.60<10$. Hence $\mathcal Y\mathcal Y^\sharp(k)$ in each case. For $37\le k\le5000$ we have $\mathcal Y^\sharp(k)=k\,B^\sharp(k)-14\log k+10$ for $k\ge12500$. The margin is small: at $k=12500$ the two sides are $47.85\ldots$ and $47.73\ldots$, and the inequality fails for $k\le12426$, so that $k_1=12500$ is close to the least value that this argument allows. The final assertion of the corollary follows from the proof of Proposition~\ref{prop:asymp}, which shows that \[ k\bigl(C(h_k)-2T(\Theta)+2R_k(\Theta)+W_k(\Theta)\bigr)\le C_0k+\phi(\lambda)\sqrt k+4\log k+O_\lambda(1) \] for $\Theta=\lambda\sqrt k$; we take $\lambda=0.90478$, for which $\phi(\lambda)<1.5712$. Theorem~\ref{thm:mv} is the case $s_1=C_0k+7\sqrt k$ of the corollary, respectively the case $s_1=C_0k+3\sqrt k$; in both cases $s_1\ge5k+5$, so that $\varrho^\dagger=2$ in Theorem~\ref{thm:mvexplicit}(ii). \end{proof} \begin{remark}\label{rem:small} The number $G^\sharp(k)$ is smaller than the bound \eqref{eq:BW} for $37\le k\le5000$ (see Table~\ref{tab:values}). The function $B^\sharp$ is not monotone: for instance, it increases for $51\le k\le62$, where $\Theta_{\max}(k)=\frac{25}8$ is constant; this is why the largest value of $(G^\sharp(k)-C_0k)/\sqrt k$ occurs at $k=63$. The choice of $\Theta^\sharp$ is close to optimal. Indeed, for fixed $k$ the function $\Theta\mapsto B(k,\Theta)$ is continuous on the interval of admissible $\Theta$, and \[ \frac{\partial B}{\partial\Theta}(k,\Theta)=-\frac2{\Theta^2}\,\log y_k(\Theta) \] wherever the derivative exists. This follows from the definitions: $\mathrm{d} T(\Theta)=\Theta^{-1}\mathrm{d}\log\sigma(\Theta)$, because $\theta^*(\sigma(\Theta))=\Theta$ unless $\sigma$ is constant near $\Theta$; $\mathrm{d} R_k(\Theta)=-\Theta^{-1}\mathrm{d}\log(1-\eta_k(\Theta))$; and the jumps of $2R_k$ and $W_k$ at the discontinuities of $\eta_k$ cancel. As $y_k$ is decreasing, the function $B(k,\,\cdot\,)$ decreases as long as $y_k(\Theta)>1$ and increases thereafter. For $k\le257$ its least value is therefore attained at the largest admissible $\Theta$, which is $\Theta^\sharp(k)$ when $k\le252$, and for $k\ge258$ at the solution of $y_k(\Theta)=1$, which is $(\lambda_0+o(1))\sqrt k$ as $k\to\infty$. For $258\le k\le5000$ this solution exceeds $\Theta^\sharp(k)$ for $4733$ of the $4743$ values of $k$, among them all $k\ge391$, in accordance with $\lambda_0>\frac9{10}$. For $37\le k\le5000$ the least value of $B(k,\,\cdot\,)$ is smaller than $B^\sharp(k)$ by less than $10^{-4}$; the corresponding integer is $G^\sharp(k)-1$ for $80$ values of $k$, and $G^\sharp(k)$ for all others. For $k=10^6$ the optimal choice is $\Theta=903.00$, and it gives the same integer as $\Theta^\sharp(10^6)$ in Table~\ref{tab:values}. The numbers for small $k$ are not optimised in other respects. The step function $\kappa$ is a crude majorant for the rounding losses, and no use is made of the sharper mean value estimates for smooth Weyl sums that are available for moderate $k$. The term $4\log k$ in Propositions~\ref{prop:large} and~\ref{prop:asymp} is an artefact of the choice $\kappa(\theta)=\theta+4$ for large $\theta$. \end{remark} \subsection{Numerical verification}\label{ss:numerics} The paper is accompanied by a Python program (using NumPy), which is available as the ancillary file \texttt{verify\_explicit\_waring.py}. Its r\^ole is twofold. First, it evaluates $B^\sharp(k)$ for $37\le k\le5000$ from the formulae of Lemmas~\ref{lem:theta}--\ref{lem:R}; this is the only computation on which the proofs depend (Proposition~\ref{prop:moderate}; the numbers $E^\sharp(k)$ of Proposition~\ref{prop:fracvalues}(i) are obtained from these values by a few arithmetical operations). The series in Lemma~\ref{lem:I}(i) is summed up to $D=10^6$ and the remainder is bounded by that lemma, with the upper bound used for $\Lambda$ and the lower bound for $T$. The computation is done in double precision arithmetic. The quantities involved are of moderate size, so that the accumulated rounding errors in $k\,B^\sharp(k)$ are of order $10^{-9}$ at most. The bounds for $B^\sharp$ stated in Proposition~\ref{prop:moderate} hold with a margin of at least $4\cdot10^{-5}$; the numbers $k\,B^\sharp(k)$ differ from the nearest integer by at least $2\cdot10^{-5}$, so that the integers $G^\sharp(k)$ are determined reliably; and the inequalities for $G^\sharp(k)$ in parts~(ii) and~(iii) hold with a margin of at least $0.16$. As a safeguard against programming and rounding errors, the program contains a second, independently written implementation of the formulae of Lemmas~\ref{lem:theta}\nobreakdash--\ref{lem:R} in $40$-digit decimal arithmetic, in which the series is truncated at $D=2\cdot10^5$. The two sets of values of $B^\sharp(k)$ agree to within $10^{-10}$; the difference comes from the two truncation points, and not from rounding. The two implementations give the same integers $G^\sharp(k)$ and $s_0^\sharp(k)$. As both use the same closed formulae, these are compared with the definitions separately (see below). The complete list of values is printed by the option \texttt{--list}, and its output is supplied with the program as the file \texttt{verify\_list.log}. The numbers $\frac12\mathcal Y^\sharp(k)-\chi_0k/\Theta^\sharp(k)$, whose integer parts enter the definition of $s_0^\sharp(k)$ in \S\ref{ss:frac}, differ from the nearest integer by at least $4\cdot10^{-5}$, and the inequalities of Proposition~\ref{prop:fracvalues}(i) hold with a margin of at least $0.19$. The program also confirms the elementary numerical inequalities stated in the proofs of Theorems~\ref{thm:explicit} and~\ref{thm:almost}, of Corollary~\ref{cor:mvranges}, of Propositions~\ref{prop:large}, \ref{prop:asymp} and~\ref{prop:fracvalues}, and of Lemma~\ref{lem:R}, and the numbers quoted after Theorem~\ref{thm:almost} and after its proof, after Theorem~\ref{thm:frac}, and in Table~\ref{tab:frac}; in particular the three inequalities in the proof of Proposition~\ref{prop:large} are compared with the exact values of the three terms at $45\,001$ values of $k$ between $5000$ and $10^{12}$. Secondly, it carries out consistency checks which are not needed for the proofs but guard against errors in the bookkeeping. The closed formulae of Lemmas~\ref{lem:theta}, \ref{lem:I} and~\ref{lem:R} are compared with the definitions. Lemma~\ref{lem:saving} is tested at $5.4\cdot10^5$ parameters, chosen at random and at the boundary of the admissible region. The exponents of Lemmas~\ref{lem:vdc} and~\ref{lem:mv} are compared with $400$ explicit exponential sums, with $k\in\{9,11,13\}$, moduli $q$ between $10^4$ and $10^{16}$ and lengths $X\le6\cdot10^4$; at these sizes the savings are small, so that this is a test of the exponent arithmetic rather than of the lemmas themselves. Lemmas~\ref{lem:window}, \ref{lem:resid} and~\ref{lem:decomp} are tested on small examples with artificial values of $p_0$ and $R$, the two identities of Lemma~\ref{lem:decomp} coefficient by coefficient in exact arithmetic; so are the elementary steps \eqref{eq:ratio}, \eqref{eq:sumd} and \eqref{eq:level} of the proof of Lemma~\ref{lem:iter}. The statements of \S\ref{s:pot} (Lemmas~\ref{lem:pot} and~\ref{lem:path}, Case~2 in the proof of Lemma~\ref{lem:rec}, and Corollary~\ref{cor:moment} for several values of $b$) are tested on tables of the potential for thirteen pairs $(k,\Theta)$; the congruences of Lemma~\ref{lem:cong} and the statements about $\varrho^\dagger$ after Theorem~\ref{thm:mvexplicit} are checked; and the numerical statements of \S\S\ref{ss:weyl}, \ref{ss:decide}, \ref{ss:inter} and~\ref{ss:CDconst}, including Remark~\ref{rem:height} and Proposition~\ref{prop:exponents} (on a grid), are reproduced. One of these checks concerns the method rather than the arithmetic. The recursion that the potential is designed to handle, namely \[ \widetilde\Phi(x,\lambda)=\min\Bigl\{kx,\ k\lambda\Psi(\lambda/x),\ \min_\theta\max_{\mu\le\lambda}\bigl[3\lambda-\mu+\widetilde\Phi \bigl(x(1-\theta/k),\mu\bigr)\bigr]\Bigr\}, \] with the steps $\theta\in[\frac95,\Theta]$ permitted by Corollary~\ref{cor:fibre}, is solved by dynamic programming for $(k,\Theta)=(40,\frac52)$, $(100,5)$ and $(250,\frac{25}2)$. With $b$ as in the proof of Theorem~\ref{thm:explicit}, the least value of $r/k$ with $\sup_\lambda(\widetilde\Phi(1,\lambda)-r\lambda)\le b$ comes out as $6.385$, $6.357$ and $6.319$, against the upper bounds $6.470$, $6.393$ and $6.332$ for $\mathcal{G}(u_\Theta)+a_*$ on which Theorem~\ref{thm:explicit} rests; thus the potential loses little. The complete list of the checks, with their outcomes, is part of the documentation of the program. The parts of the program that concern Appendices~\ref{s:appendix}, \ref{s:appC} and~\ref{s:appD} are described in \S\ref{ss:Averif}, in Remark~\ref{rem:Cverif} and in \S\ref{ss:Dprog}. \emph{Arithmetic.} The computations in double precision use the binary64 format of the IEEE~754 standard, with rounding to nearest, as provided by Python and NumPy; the output that accompanies the program was produced with Python~3.13 and NumPy~2.5. For the main text the margins stated above exceed the possible rounding errors by several orders of magnitude, and the values are confirmed by the second implementation in decimal arithmetic. In Appendix~\ref{s:appendix} directed rounding and exact rational arithmetic are used (\S\ref{ss:Averif}); there the numbers $B^\natural(k)$ and $\Theta^\natural(k)$, on which Theorem~\ref{thm:Afrac} rests for $37\le k\le5000$, depend in addition on the hypothesis that the logarithm of the floating point library is accurate to within four units in the last place at the arguments that occur. \emph{The parts of the program.} The program prints its checks in sixteen parts, which concern the following statements. The proofs in the main text depend on Part~5 only, and those in Appendices~\ref{s:appendix} and~\ref{s:appC} on Parts~14 and~15 (Table~\ref{tab:Averif} and Remark~\ref{rem:Cverif}); the other parts are safeguards. \begin{table}[ht] \centering \small \begin{tabular}{@{}rp{0.84\textwidth}@{}} \toprule part & statements\\ \midrule 1 & Definition~\ref{def:saving} and Lemma~\ref{lem:theta}\\ 2 & Lemmas~\ref{lem:I} and~\ref{lem:T}\\ 3 & Lemma~\ref{lem:saving} and Table~\ref{tab:cases}\\ 4 & \S\ref{s:pot}: Lemmas~\ref{lem:pot}, \ref{lem:path} and~\ref{lem:rec}, and Corollary~\ref{cor:moment}\\ 5 & \raggedright Theorems~\ref{thm:main}--\ref{thm:almost}, \ref{thm:explicit} and~\ref{thm:almostexplicit}, Corollary~\ref{cor:mvranges}, Propositions~\ref{prop:moderate}--\ref{prop:asymp} and~\ref{prop:fracvalues}, and Tables~\ref{tab:values} and~\ref{tab:frac}\tabularnewline 6 & the recursion behind Proposition~\ref{prop:main} that is displayed above\\ 7 & Lemmas~\ref{lem:vdc} and~\ref{lem:mv}, on explicit exponential sums\\ 8 & \S\S\ref{ss:inter} and~\ref{ss:limits}\\ 9 & \S\ref{ss:CDconst}\\ 10 & Lemmas~\ref{lem:window}--\ref{lem:decomp} and~\ref{lem:iter}\\ 11 & \S\S\ref{ss:weyl} and~\ref{ss:decide}, Lemma~\ref{lem:BWthm}, Remark~\ref{rem:height} and Proposition~\ref{prop:exponents}\\ 12 & Lemma~\ref{lem:cong}\\ 13 & Theorem~\ref{thm:mvexplicit} and \S\ref{ss:mvproof}\\ 14 & Appendix~\ref{s:appendix} (\S\ref{ss:Averif})\\ 15 & Appendix~\ref{s:appC} (Remark~\ref{rem:Cverif})\\ 16 & Appendix~\ref{s:appD} (\S\ref{ss:Dprog})\\ \bottomrule \end{tabular} \end{table} \emph{Computations outside the program.} Some numbers in the paper come from computations that are not part of the program: (i)~the certification of the tables of permissible exponents for $k=13$ and $k=7$ in \S\ref{ss:Ctables} (Tables~\ref{tab:C13} and~\ref{tab:C7}), which the program takes as given; the certificates for $k=13$ are supplied, with a checker of their own (\S\ref{ss:Ctables}); (ii)~the searches by which the switch points and the ranges of $t$ in \S\ref{ss:Cnum} and in Remark~\ref{rem:Csmall} were found (Remark~\ref{rem:Cverif}); (iii)~the values in Remark~\ref{rem:Afurther} for longer words, for a single differencing step, and for all the exponent pairs of Proposition~\ref{prop:Apairs} along the line, which recur in \S\ref{ss:Dvdc}(b); and (iv)~the model of the limit function behind Table~\ref{tab:Dhypo}, which is supplied with the program (\S\ref{ss:Dhypo}). Of these only~(i) is used in a proof, namely in Propositions~\ref{prop:C13} and~\ref{prop:C7}; in particular the bound $G(13)\le69$ of Theorem~\ref{thm:Cmain} rests on the certification of Table~\ref{tab:C13}. The numbers in (ii)--(iv) are observations, made in double precision arithmetic. \section{Bounds of Weyl type, and small fractional parts}\label{s:ls} In this section we recall two bounds of Weyl type for smooth Weyl sums that are due to Br\"udern and Wooley, and we combine the second of them with Corollary~\ref{cor:moment}. The first \cite[Lemma~3.3]{BW2024c} holds on arcs of every height, and its exponent rests on moments of order about $2k$; it gives the exponent $\tau_k$ on the extreme minor arcs. The second \cite[Lemma~3.1]{BW2025} is an estimate of large sieve type, proved by means of the Sobolev--Gallagher inequality, in which a moment of $f$ of any real order $u>k+1$ enters through an admissible exponent that holds uniformly for sums with arbitrary coefficients. At orders near $C_0k$ the exponent that \eqref{eq:admexp} provides is $k\,\mathfrak{d}(C_0k)=0.0049\,k$, whereas Corollary~\ref{cor:moment} provides exponents $b$ that tend to $0$ as $k\to\infty$ (and that are small for a given $k$ at orders slightly above $C_0k$). In \cite[Theorem~3.3]{BW2025} the two bounds are combined into a bound of Weyl type on all minor arcs in the classical sense, and in \cite[\S5]{BW2025} the fractional parts of $\alpha n^k$ are deduced from it. With the moments of Corollary~\ref{cor:moment} in place of those of \eqref{eq:admexp} this gives an exponent of order $1/k$ in place of one of order $1/(k\log k)$, and Theorems~\ref{thm:frac} and~\ref{thm:fracexplicit} (\S\ref{ss:frac}). The large sieve estimate is weaker than the first bound on the arcs of large height, and these decide the number of variables (\S\ref{ss:decide}); so the results of this section are not used in the proofs of Theorems~\ref{thm:main} and~\ref{thm:all}. The results of \cite{BW2024c,BW2025} are quoted without proof, apart from the deduction in \cite[\S5]{BW2025}, which is given in full in the proof of Lemma~\ref{lem:BWthm}(ii). In \cite[Lemma~3.3]{BW2024c} the exponent is a number $\rho(k)$ with $0<\rho(k)<2\tau(k)/k$, while \cite[Lemma~3.2]{BW2025} has the factor $Q^{\varepsilon-2\tau(k)/k}$; both forms give Lemma~\ref{lem:height} below. Throughout this section $k\ge37$, the number $\Theta$ is admissible for $k$, and the parameters are as in \S\ref{s:setup}; in particular $f=f(\cdot\,;P,R)$ with $R=P^\eta$. As in \S\ref{ss:arcs}, the number $\eta$ is supposed to be sufficiently small in terms of $k$ and of the other numbers that are named, and $P$ is large. For $b>0$ we write $a_*(b)$ for the number defined in \eqref{eq:astar}. \subsection{Two bounds of Br\"udern and Wooley}\label{ss:weyl} Let $\delta_*:=\mathfrak{d}(2k)$. Thus $\delta_*+\log\delta_*+1=0$, so that $\delta_*$ does not depend on $k$. Numerically \[ \delta_*=0.2784645\ldots,\qquad\frac{4}{1-2\delta_*}=9.0279002\ldots , \] and hence \begin{equation}\label{eq:tau} \varepsilon_*:=\frac{1-2\delta_*}{4k}-\tau_k>0 . \end{equation} By \eqref{eq:admexp} with $v=2k$, the number $k\delta_*$ is an admissible exponent for the moment of order $2k$. So the number $\tau(k)$ of \textup{(B1)}, formed with this exponent for $w=k$, satisfies \[ \tau(k)\ge\frac{k-2k\delta_*}{4k^2}=\tau_k+\varepsilon_*>\tau_k . \] \begin{lemma}\label{lem:height} Suppose that $\eta$ is sufficiently small in terms of $k$. Then, uniformly for $1\le Q\le P^{k/2}$, one has \[ \sup_{\alpha\in\mathfrak{m}(Q)}|f(\alpha)|\ll P\,Q^{-2\tau_k/k} . \] \end{lemma} \begin{proof} This is \cite[Lemma~3.3]{BW2024c}, which is restated in \cite[Lemma~3.2]{BW2025}, with $2\tau_k/k$ as the exponent $\rho(k)$ of that lemma; this choice is permitted because $\tau_k<\tau(k)$. The set $\mathfrak{m}(Q)$ of \S\ref{ss:arcs} is the set of minor arcs of \cite{BW2024c}. \end{proof} As $\mathfrak{N}(Q;P)\subseteq\mathfrak{m}(Q/2)$, Lemma~\ref{lem:height} gives $f(\alpha)\ll PQ^{-2\tau_k/k}$ for $\alpha\in\mathfrak{N}(Q;P)$ and $2\le Q\le P^{k/2}$. For $Q=P^{k/2}$ this is a bound of Weyl type, namely $f(\alpha)\ll P^{1-\tau_k}$, on the set $\mathfrak{N}(P^{k/2};P)=\mathbb{T}\setminus\mathfrak{M}(\frac12P^{k/2};P)$ of extreme minor arcs, with the exponent of \cite[Lemma~7.1]{BW2023}. For smaller $Q$ the saving is that of a sum of length $Q^{2/k}$; compare \cite[(5.6)]{BW2023}. Following \cite[\S2]{BW2025}, we call a real number $\Delta$ a \emph{weight-uniform admissible exponent} for the moment of order $u>0$ if, whenever $\varepsilon'>0$ and $\eta'$ is a positive number that is sufficiently small in terms of $\varepsilon'$, $k$ and $u$, one has \[ \int_{\mathbb{T}}\Bigl|\sum_{n\in\mathcal{A}(P,R')}w(n)\,e(\alpha n^k)\Bigr|^u\,\mathrm{d}\alpha\ll\|w\|^u\, P^{\,u-k+\Delta+\varepsilon'}\qquad(1\le R'\le P^{\eta'}) \] for all large $P$, uniformly for all functions $w:\mathbb{N}\to\mathbb{C}$, where $\|w\|:=\max_{n\le P}|w(n)|$. Such an exponent is admissible in the sense of \S\ref{ss:arcs}. As $|f(\alpha;P,R')|\le P$, the number $k$ is a weight-uniform admissible exponent for every $u$, and so is every number that exceeds a weight-uniform admissible exponent for the same moment. By \cite[Theorem~2.2]{BW2025}, which is the case $v\ge4$ of \eqref{eq:admexp}, the number $k\,\mathfrak{d}(u)$ is a weight-uniform admissible exponent for the moment of order $u\ge4$; and by Lemma~\ref{lem:admissible}, the number $b$ is one for the moment of order $r$ whenever $b>0$ and $r\ge\max\{k(\mathcal{G}(u_\Theta)+a_*(b)),\,2\}$. \begin{lemma}\label{lem:lsBW} Let $u>k+1$ be real, and let $\Delta_u$ be a weight-uniform admissible exponent for the moment of order $u$. Let $\frac12<\lambda<1$ and $M:=P^\lambda$, let $\alpha\in\mathbb{R}$, and let $a\in\mathbb{Z}$ and $q\in\mathbb{N}$ be coprime with \[ |q\alpha-a|\le\tfrac12(MR)^{-k},\qquad q\le2(MR)^k,\qquad\text{and}\quad q>MR\ \ \text{or}\ \ |q\alpha-a|>MP^{-k}. \] Then, for every $\varepsilon'>0$, provided that $\eta$ is sufficiently small in terms of $\varepsilon'$, $k$ and $u$, one has \[ f(\alpha)\ll M^{1+\varepsilon'}+P^{1+\varepsilon'}\Bigl(M^{-1}\Bigl(\frac PM\Bigr)^{\Delta_u}\Bigl(1+q\Bigl(\frac PM \Bigr)^{-k}\Bigr)\Bigr)^{1/u}. \] \end{lemma} This is \cite[Lemma~3.1]{BW2025}. We use it in the following form, in which the height of $\alpha$ enters. \begin{corollary}\label{cor:lsarcs} Let $u$ and $\Delta_u\ge0$ be as in Lemma~\textup{\ref{lem:lsBW}}, let $\frac1{k+1}\le\xi<\frac12$, and let $\varepsilon'>0$. Then, provided that $\eta$ is sufficiently small in terms of $\varepsilon'$, $\xi$, $k$, $u$ and $\Delta_u$, one has \[ f(\alpha)\ll P^{\,1+\varepsilon'-(1-\xi-\xi\Delta_u)/u}\qquad\bigl(\alpha\in\mathfrak{N}(P^{k\xi};P)\bigr). \] \end{corollary} \begin{proof} Let $Q:=P^{k\xi}$ and $\alpha\in\mathfrak{N}(Q;P)$, and let $a$ and $q$ be coprime with $q\le Q$ and $|q\alpha-a|\le QP^{-k}$. By \textup{(A3)}, we have $q+P^k|q\alpha-a|>\frac12Q$. Fix $\delta'>0$ with $\xi+2\delta'<\frac12$ and $2\delta'(1+\Delta_u)\le u\,\varepsilon'$, suppose that $\eta\le\delta'$, and put $M:=P^\lambda$ with $\lambda:=1-\xi-2\delta'$. Then $\frac12<\lambda<1$, and $\lambda$ depends neither on $P$ nor on $\eta$, so that Lemma~\ref{lem:lsBW} applies with this fixed exponent. As $\xi\ge\frac1{k+1}$, we have $1-\xi\le k\xi$, and so $MR\le P^{1-\xi-\delta'}\le\frac14Q$ for large $P$. Hence $|q\alpha-a|\le P^{-k(1-\xi)}\le\frac12(MR)^{-k}$ for large $P$; and $q\le Q\le2(MR)^k$, because $\xi\le1-\xi-2\delta'$. Moreover $q>\frac14Q\ge MR$ or $|q\alpha-a|>\frac14QP^{-k}\ge MP^{-k}$. So the hypotheses of Lemma~\ref{lem:lsBW} hold. Since $P/M=P^{\xi+2\delta'}$, we have $q(P/M)^{-k}\le QP^{-k\xi}=1$ and \[ M^{-1}\Bigl(\frac PM\Bigr)^{\Delta_u}=P^{-(1-\xi-\xi\Delta_u)+2\delta'(1+\Delta_u)}\le P^{-(1-\xi-\xi\Delta_u)+u\varepsilon'} . \] Finally $M^{1+\varepsilon'}\le P^{1+\varepsilon'-\xi}$, and $\xi\ge(1-\xi)/u$ because $(u+1)\xi\ge1$. The corollary follows, with $2\varepsilon'$ in place of $\varepsilon'$. \end{proof} The two bounds are combined in \cite[Theorem~3.3]{BW2025}, which we use in the following form; the second assertion follows from the first by the argument of \cite[\S5]{BW2025}, which we give in full. \begin{lemma}\label{lem:BWthm} Let $u\ge4k$ be real, let $\Delta_u\ge0$ be a weight-uniform admissible exponent for the moment of order $u$, and define $\tilde\sigma>0$ by \[ \tilde\sigma^{-1}:=u+\frac{1+\Delta_u}{2\tau_k} . \] Suppose that $\tilde\sigma<\tau_k$, and put $\tilde\lambda:=1-\tilde\sigma/(2\tau_k)$, so that $\frac12<\tilde\lambda<1$. \textup{(i)} For every $\varepsilon'>0$, provided that $\eta$ is sufficiently small, one has $f(\alpha)\ll P^{1-\tilde\sigma+\varepsilon'}$ uniformly for $\alpha\in\mathfrak{m}(P^{\tilde\lambda}R)$. \textup{(ii)} For every real number $\rho<\tilde\sigma$ there is a number $N_0$ such that $\min_{1\le n\le N}\|\alpha n^k\|k+1}\Bigl(t+\frac{1+\Delta_t}{2\tau(k)}\Bigr) \] the term with $t=u$ is $\tilde\sigma^{-1}$, which exceeds $1/\tau_k$ by hypothesis, the term with $t=2k$ exceeds $\frac12\delta_*k/\tau_k>1/\tau_k$, and the others are at least $(k+1)(1+1/(2\tau_k))>1/\tau_k$. Hence $\tilde\sigma\le\sigma(k)<\tau_k$, and the number $\lambda(k)=1-\sigma(k)/(2\tau_k)$ satisfies $\frac12<\lambda(k)\le\tilde\lambda<1$. Now \cite[Theorem~3.3]{BW2025} gives the bound $f(\alpha)\ll P^{1-\sigma(k)+\varepsilon'}$ on $\mathfrak{m}(P^{\lambda(k)}R)$, which contains $\mathfrak{m}(P^{\tilde\lambda}R)$, and this gives~(i). (ii) We follow the deduction of \cite[Theorem~1.2]{BW2025} from \cite[Theorem~3.3]{BW2025} in \cite[\S5]{BW2025}, which is based on \cite[\S6]{Woo1995}, with~(i) in place of \cite[Theorem~3.3]{BW2025}. Let $\rho<\tilde\sigma$. We may suppose that $\rho>0$, since $\|x\|\le\frac12$ for all real $x$, and we put $\nu:=\frac12(\tilde\sigma-\rho)$. As the assertion does not involve $\eta$, we may suppose that $k\eta<\nu$, and that~(i) holds with $\varepsilon':=\frac12\nu$. Let $\alpha\in\mathbb{R}$, let $N$ be large, put $P:=N$, and let $H:=\lceil P^{\tilde\sigma-\nu}\rceil$; thus $H^{-1}\le N^{\nu-\tilde\sigma}=N^{-\rho-\nu}$. If $\|\alpha n^k\|\tilde\sigma>\tilde\sigma-\nu+\eta$. As $an^{k-1}$ is an integer, it follows that \[ \|\alpha n^k\|\le|qh\alpha-a|\,n^{k-1}\le2^{k-1}P^{(k-1)(\tilde\sigma-\nu)+k\eta-k\tilde\sigma/(2\tau_k)} . \] Here $k\eta<\nu$, and $k/(2\tau_k)>k+1$, because $2\tau_k2\lfloor k/2\rfloor+4$, and the condition $t\,\tau_k>b$ of \eqref{eq:rst} concerns the arcs of larger height. On these arcs Proposition~\ref{prop:prune}, with $\nu_0$ slightly reduced, can also be obtained as follows. Since $b$ is an admissible exponent for the moment of order $r$ (Lemma~\ref{lem:admissible}), \cite[Theorem~4.2]{BW2023} gives $\int_{\mathfrak{M}(Q;P)}|f|^r\,\mathrm{d}\alpha\ll P^{\,r-k+\varepsilon''}Q^{2b/k}$ for every $\varepsilon''>0$, and together with Lemma~\ref{lem:height} this gives, for $P^{1/2}\le Q\le P^{k/2}$, \[ \int_{\mathfrak{N}(Q;P)}|f|^{r+t}\,\mathrm{d}\alpha\le\sup_{\mathfrak{N}(Q;P)}|f|^t\int_{\mathfrak{M}(Q;P)}|f|^r\, \mathrm{d}\alpha\ll P^{\,r+t-k+\varepsilon''}\,Q^{-2(t\tau_k-b)/k} . \] If Corollary~\ref{cor:lsarcs}, with a moment of order $u$ and a weight-uniform admissible exponent $\Delta_u$, is used here in place of Lemma~\ref{lem:height}, one obtains instead, for $Q=P^{k\xi}$ with $\frac1{k+1}\le\xi<\frac12$, \[ \int_{\mathfrak{N}(Q;P)}|f|^{r+t}\,\mathrm{d}\alpha\ll P^{\,r+t-k-t(1-\xi-\xi\Delta_u)/u}\,Q^{2b/k}P^{\,\varepsilon''+ t\varepsilon'} . \] The condition on $t$ thus becomes $t(1-\xi-\xi\Delta_u)/u>2\xi b$, apart from small terms, and in the limit described at the end of \S\ref{ss:weyl} the two conditions read \begin{equation}\label{eq:tcond} \frac{t}{k\,b}>9.027901\quad\text{(Lemma \ref{lem:height})},\qquad\qquad\frac{t}{k\,b}>\frac{2C_0\,\xi}{1-\xi}\quad \text{(Corollary \ref{cor:lsarcs})}. \end{equation} The right hand side of the second one is $0.66$, $1.40$, $3.16$, $5.41$ and $8.92$ for $\xi=0.05$, $0.1$, $0.2$, $0.3$ and $0.414$, and it tends to $12.63$ as $\xi\to\frac12$. So the large sieve estimate would allow one to prune the arcs with $\xi<\xi_1$ with fewer variables, but for $\xi\ge\xi_1$ it is weaker than Lemma~\ref{lem:height}, and the bound of Theorem~\ref{thm:explicit} is not improved. \begin{remark}\label{rem:height} Let $P^{1/2}\le Q\le P^{k/2}$ and $Y:=(2Q)^{2/k}$. By \cite[Theorem~4.2]{BW2023}, the moments of $f$ over $\mathfrak{M}(Q;P)$ behave like those of a sum of length $Y$: if $\Delta$ is an admissible exponent for the moment of order $r$, then $\int_{\mathfrak{M}(Q;P)}|f|^r\,\mathrm{d}\alpha\ll P^{\,r-k}Y^{\Delta}P^{\varepsilon''}$, with $\varepsilon''$ as small as we please. Suppose that $|f|\le PY^{-\tilde\tau}$ on $\mathfrak{N}(Q;P)$ for some $\tilde\tau\in(0,\frac15]$. If $s>k\,\mathcal{G}(\tilde\tau)$, then a supporting line at $z=\tilde\tau$ of the concave function $k\,z\,\mathcal{G}(z)$ (Lemma~\ref{lem:pot}(iv)) provides numbers $r$ and $\Delta$ with $2k2k$ because $\mathcal{G}-\mathfrak{g}>2$ almost everywhere on $(0,\frac15]$, by Lemma~\ref{lem:pot}(ii). By Corollary~\ref{cor:moment} and the proof of Lemma~\ref{lem:admissible}, the number $\Delta$ is an admissible exponent for the moment of order $r$, and therefore $\int_{\mathfrak{N}(Q;P)}|f|^s\,\mathrm{d}\alpha\ll P^{\,s-k}Y^{\Delta-(s-r)\tilde\tau}P^{\varepsilon''}$. Conversely, when $s0$ is $1/9.026725\ldots$, attained at $v=1.98464\ldots$, which exceeds the value $1/9.0279002\ldots$ at $v=2$, that is, at $w=k$, by an amount that is of no consequence here \cite[\S7]{BW2023}. Let $\mathcal{G}_\infty$ be the limit of the potential as $k\to\infty$ (\S\ref{ss:origin}): one has $\mathcal{G}_\infty(z)=1/z$ for $z\ge\frac12$, while $\mathcal{G}_\infty(z)=\Psi(z)$ for $\frac1{10}\le z\le\frac12$, and $\mathcal{G}_\infty(z)=\Psi(\frac1{10})+2\int_z^{1/10}\frac{\mathrm{d} u}{u\, \theta^*(2u)}=C_0-2I(2z)$ for $00$ one has $(1-2d_\infty(v))/v^2\ge(1-2\mathfrak{d}(vk))/v^2$, with equality when $v\le v_c$; and $(1-2d_\infty(v))/v^2\le v_c^{-2}<1/9.52$ when $v\ge v_c$. \end{proposition} Thus Corollary~\ref{cor:moment} improves on \eqref{eq:admexp} only at orders above $3.09\,k$, and these do not help in \textup{(B1)}: with the exponents $k\,d_\infty(v)$ in place of $k\,\mathfrak{d}(vk)$ the largest value of $(1-2d)/v^2$ remains $1/9.026725\ldots$. An improvement of $\tau_k$ by this route would require moments of order about $2k$ with an exponent $\delta k$ smaller than $\delta_*k$; the exponent would then be $(1-2\delta)/(4k)$, and the limit of the method is $1/(4k)$. The fibre method does not provide such moments: at the level $z=\delta_*/(1+\delta_*)=0.218$ that governs the moment of order $2k$, the permitted steps are $\theta\le\theta^*(2z)=1.13$, and the resulting bound is weaker than $\Psi$ (\S\ref{ss:origin}). \begin{proof}[Proof of Proposition~\textup{\ref{prop:exponents}}] (i) Let $\mathfrak{g}_\infty(z):=-z\mathcal{G}_\infty'(z)$; thus $\mathfrak{g}_\infty(z)=2/\theta^*(2z)$ for $z<\frac1{10}$, while $\mathfrak{g}_\infty(z)=1/(1-z)$ for $\frac1{10}\frac12$. The function $\theta^*$ is nonincreasing with $\theta^*(\frac15)=\frac95$, so that $\mathfrak{g}_\infty$ is nondecreasing on $(0,\frac12)$, and $\mathcal{G}_\infty-\mathfrak{g}_\infty$ is nonincreasing on $(0,1]$, with the value $0$ on $[\frac12,1]$. The derivative of $z\mapsto z(\mathcal{G}_\infty(z)-v)$ is $\mathcal{G}_\infty(z)-\mathfrak{g}_\infty(z)-v$. Hence this function is concave, and it attains its maximum at a point where $\mathcal{G}_\infty-\mathfrak{g}_\infty-v$ changes sign. For $\frac1{10}v_c$ the maximum of $z(\mathcal{G}_\infty(z)-v)$ is attained at a point $z<\frac1{10}$, where $\mathcal{G}_\infty(z)<\Psi(z)$ because $2/\theta^*(2u)<1/(1-u)$ for $u<\frac1{10}$ (\S\ref{ss:origin}); hence $d_\infty(v)<\mathfrak{d}(vk)$. Finally $\mathcal{G}_\infty0$ for $v9.5\,k>9.027901\,k=1/\tau_k$; any $s_0$ with $2s_0\ge4.52\,k$ would do here. So Lemma~\ref{lem:BWthm}(ii) applies with $\Delta_u=b$, and it gives the conclusion of the theorem. \end{proof} For the evaluation we take $\Theta=\Theta^\sharp(k)$, as in \S\ref{ss:moderate}, and $b=4/(9.027901\,\Theta)$, the choice described after Theorem~\ref{thm:fracexplicit}. Let $\chi_0:=1+\log2=1.69314\ldots$, and for $k\ge37$ put \[ b^\sharp(k):=\frac{4}{9.027901\,\Theta^\sharp(k)},\qquad E^\sharp(k):=2s_0^\sharp(k)+\bigl(1+b^\sharp(k)\bigr)\cdot 4.5139505\,k , \] so that $E^\sharp(k)=2s_0^\sharp(k)+4.5139505\,k+2k/\Theta^\sharp(k)$. Here $s_0^\sharp(k)$ is the least natural number $s_0\ge\frac52k$ with $2s_0>\mathcal Y^\sharp(k)-2\chi_0\,k/\Theta^\sharp(k)$, and $\mathcal Y^\sharp(k)=k\,B(k,\Theta^\sharp(k))-1$, as in \S\ref{ss:large}. As $9.027901\,\Theta\,b/2=2$ for $b=4/(9.027901\,\Theta)$, Theorem~\ref{thm:fracexplicit} shows that for every real number $\rho<1/E^\sharp(k)$ there is a number $N_0$ with \begin{equation}\label{eq:fracE} \min_{1\le n\le N}\|\alpha n^k\|\mathcal Y^\sharp(k)-2\chi_0k/\Theta^\sharp(k)$ exceeds $\frac52k$, so that the condition $s_0\ge\frac52k$ in the definition of $s_0^\sharp(k)$ is not binding. The largest value of $(E^\sharp(k)-10.8272\,k)/\sqrt k$ is $3.1800\ldots$, attained at $k=65$, and the largest value for $112\le k\le5000$ is $1.9763\ldots$, attained at $k=112$. The largest value of $E^\sharp(k)/k$ is $11.3247\ldots$, attained at $k=37$. For $116\le k\le5000$ one has $11k-E^\sharp(k)>0.38$, whereas $E^\sharp(115)>11\cdot115$; and $k(\log k+8.02113)-11-E^\sharp(k)>0.36$ for all these $k$, the smallest value occurring at $k=37$. (ii) Let $a:=a_k$, so that $\Theta:=\Theta^\sharp(k)=\frac9{10}a$. Recall from the proof of Proposition~\ref{prop:large} that $\sqrt k-268.71$. Since $k=a(a+4)$, we have $k/\Theta=\frac{10}9(a+4)$, and so $\frac{10}9(\sqrt k+2)1.31$, while the number $2\chi_0k/\Theta$ is smaller than $3.77(\sqrt k+2.03)<0.06\,k$. Since $C_0+4.5139505<10.8272$ and $\chi_0-1=\log2$, it follows that \[ E^\sharp(k)=2s_0^\sharp(k)+4.5139505\,k+\frac{2k}\Theta<10.8272\,k+c_3\sqrt k+4\log k+12-2\log2\cdot\frac k\Theta . \] Finally $2\log2\cdot k/\Theta>\frac{20}9\log2\cdot(\sqrt k+2)>1.5403\sqrt k+3.08$, and $c_3-1.5403<0.04$. This proves (ii). \end{proof} \begin{table}[ht] \caption{The number $E^\sharp(k)$ of \eqref{eq:fracE}: one has $\min_{n\le N}\|\alpha n^k\|2$. Finally, for $k>5000$ one has $10.8272\,k+2\sqrt k<16\,k< k(\log k+8.02113)$, so that, by Proposition~\ref{prop:fracvalues}(i), one has $E^\sharp(k)0$ and large $q$, where $\tau_k':=\tau_k/(1+2\tau_k/k)=\tau_k-O(k^{-3})$. The small loss comes from the height: for $l\le L$ Lemma~\ref{lem:height} gives only $f(l\alpha)\ll P^{1-\tau_k}L^{2\tau_k/k}$, and with $L=H$ the sum of $|f(l\alpha)|$ over $l\le H$ is $o(P)$ only when $H\le P^{\tau_k'-\varepsilon'}$. For numbers $\alpha$ with bounded partial quotients every large $N$ is of this kind, up to a bounded factor. Thus the arcs of height near $P^{k/2}$ limit the localised and the unlocalised bounds alike, and by \S\ref{ss:decide} the moments of Corollary~\ref{cor:moment} do not improve the exponent $\tau_k$ that is available there. \end{remark} \section{Concluding remarks}\label{s:remarks} \subsection{Intermediate coefficients}\label{ss:inter} Let $A$, $Y$ and $\alpha_i(n_0)$ be as in the proof of Lemma~\ref{lem:mv}. For $2\le r\le D$ the denominator of $\alpha_r(n_0)$ is $q_r=\prod_pp^{\max\{e_p-rs_p,0\}}$. Ignoring the rounding of moduli, we have $A=q^{1/(D+1)}=X^u$ with $u:=U/(D+1)$, $Y=X^{1-u}$ and $q_r=X^{(D+1-r)u}$; in particular $q_D=A$. There are three ways of exploiting the progressions $n_0+Ay$. \emph{Residue classes one at a time.} One may bound the sum over each residue class modulo $A$ separately by a Weyl-type inequality for the coefficient $\alpha_r$: by \cite[Theorem~5.2]{Vau1997} with the optimal mean value \cite{BDG2016,Woo2019}, that is, by \cite[Theorem~5]{Bou2017}, we have \begin{equation}\label{eq:inter} \mathcal{S}\ll X^{1+\varepsilon}\bigl(q_r^{-1}+Y^{-1}+q_rY^{-r}\bigr)^{1/(D(D-1))}; \end{equation} the case $r=D$ is the device of \cite[Lemma~3.1]{CD2026}. The saving in \eqref{eq:inter} is \begin{equation}\label{eq:intersaving} \frac{1}{D(D-1)}\min\Bigl\{1-\frac{U}{D+1},\ \frac{U(D+1-r)}{D+1},\ r-U\Bigr\}\le\frac{D+1-U}{(D-1)D(D+1)}, \end{equation} and a larger $A$ is worse. Thus $r>U$ is needed, and however large $q_r$ is, the saving is limited by the term $Y^{-1}$, because a single residue class is short. \emph{One progression for each class.} One may apply the mean value theorem to all residue classes together, taking the progressions $n_0+Ay$ with $1\le n_0\le A$ and bounding $\mathcal N$ by means of the leading coefficient $\alpha_D$ alone. This was done in the first version of this paper. It gives $\mathcal{S}\ll X^{1+\varepsilon}(Y^{-D}+q_D^{-1})^{1/(D(D+1))}$, with the saving $\min\{u,D(1-u)\}/(D(D+1))$: the term $Y^{-1}$ is replaced by $Y^{-D}$, but as $\alpha_D(n_0)$ depends only on $n_0$ modulo $q_D$, the saving cannot exceed that of the term $q_D^{-1}$. \emph{Translates.} In Lemma~\ref{lem:mv} all progressions $n_0+Ay$ with $n_0\in\mathcal{R}$ are used, so that every $n$ is represented $Y$ times. On a residue class modulo $A$ the coefficient $\alpha_D(n_0)$ is constant, but $\alpha_{D-1}(n_0)$ runs through an arithmetic progression with a step of exact denominator $q_D$, and counting the points with both coefficients replaces $q_D^{-1}$ by $q_D^{-2}+(q_DY)^{-1}$; see \eqref{eq:Nbound}. The saving becomes $\min\{2u,1,D(1-u)\}/(D(D+1))$. As $q_DY=X$, the middle term is the limit of the method: \eqref{eq:mv1} cannot give more than $X^{-1/(D(D+1))}$, because $\mathcal{N}\ge1$. For a fixed degree $D\ge3U$ the saving \eqref{eq:intersaving}, with the best $r$, is larger than that of Lemma~\ref{lem:mv} with the same $D$. But Lemma~\ref{lem:mv} is applied with $D\approx U$, and then the comparison goes the other way: the maximum of \eqref{eq:intersaving} over all $D$ and $r$ never exceeds $\varsigma(U)$. The two agree at $U=\frac32$, where both give $\mathcal{S}\ll X^{3/4+\varepsilon}$; their ratio is at most $0.59$ for $U\ge2$, at most $\frac12$ for $U\ge\frac72$, which is the range in which Lemma~\ref{lem:mv} is used, and it tends to $\frac4{27}$ as $U\to\infty$, the best degree being $D\approx\frac32U$. The conclusion is the same if the term $q_rY^{-r}$ is dropped from \eqref{eq:inter}. These comparisons were verified numerically for $U\le600$. In terms of the constant: if Lemma~\ref{lem:mv} were replaced by \eqref{eq:inter}, then $C_0$ would become $6.916$, and without Lemma~\ref{lem:vdc}(ii) as well it would be $7.404$; with one progression for each class it is $6.3895$, as in the first version of this paper; and with translates it is $6.313234$. In fact $\varsigma$ is exactly the largest saving that Lemmas~\ref{lem:vdc} and~\ref{lem:mv} give when the rounding of moduli is ignored. In Appendix~\ref{s:appendix} the close pairs of translates are counted instead of the largest number $\mathcal N$ of points in a box, and then the saving $1/(D(D+1))$ persists up to $U=D$ (Lemma~\ref{lem:Amv}). \subsection{What limits the constant}\label{ss:limits} (1) The term $2\Lambda$ depends on $\varsigma$ only through an average of $1/\theta^*$. With square-root cancellation for all $U$, that is, with $\varsigma=\frac12$ identically, the iteration would give $\Psi(\frac14)=2+\log3=3.10$ in place of $C_0$, and the number of variables would be limited by other parts of the argument: \textup{(B2)} of \S\ref{ss:arcs} requires $s\ge2k+3$, and, when $k$ is a power of $2$, the singular series requires $s\ge4k$. More realistically, a version of Lemma~\ref{lem:vdc} with more flexible differencing, or a sharper bound for the quantity $\mathcal{N}$ in Lemma~\ref{lem:mv}, would improve $\varsigma$. Ignoring the rounding of moduli, the bound \eqref{eq:Nbound} gives $\mathcal{N}\ll1$ for $\frac12(D+1)\le U\le D-\frac1D$, and this cannot be improved. For $D-\frac1Db/\tau_k$ further variables. The exponent $\tau_k$ affects only the term $W_k(\Theta)$; see Remark~\ref{rem:height}. (4) In Theorem~\ref{thm:explicit} the sum $-2T(\Theta)+W_k(\Theta)$ is about $\frac2\Theta(\log y_k(\Theta)-2)$, which for large $k$ is negative only when $\Theta$ exceeds $0.62\sqrt k$, roughly, while the rounding term $2R_k(\Theta)$ becomes infinite as $\Theta(\Theta+4)\to k$. The balance between them is the source of the term of order $\sqrt k$ in Theorem~\ref{thm:main}. Smaller rounding losses in Lemma~\ref{lem:saving} for $\theta\asymp\sqrt k$ would reduce this term. In Appendix~\ref{s:appendix} the losses are of smaller order, the restriction $\Theta(\Theta+4)4\cdot10^6$, the least admissible value is $A_0=4\,000\,001$, with $b=A_0^{-1/2}$, giving $s=12\,000\,005\,k+1$. The requirements ``$k$ large'' in \cite{CD2026} are explicit inequalities, the most restrictive one that we found being (3.5) there, which holds for $k\ge122\,878$; for smaller $k$, the bound \eqref{eq:BW} is far better. In this sense the argument of \cite{CD2026}, with the parameters chosen there, yields $G(k)\le 12\,000\,005\,k+1$ for all $k$. The assertion in \cite{CD2026} that $G(k)\le8.4\,k$ for all $k$, which is stated there without proof, is contained in Theorem~\ref{thm:all}. We do not know how the figure $8.4$ was obtained. Two observations may be relevant. First, the bound \eqref{eq:BW} gives $G(k)\le8.4\,k$ precisely for $k\le66$, so the assertion requires a bound of the present type for every $k\ge67$. Secondly, if in the present argument the saving $\varsigma$ is replaced by what \eqref{eq:inter} gives, with the degree and the coefficient chosen optimally and with Lemma~\ref{lem:vdc}(i) for $U<2$, then $C_0$ becomes $7.404$, and it becomes $8.404$ if, in addition, some $k+O(1)$ smooth Weyl sums are used for the minor arcs and the pruning (\S\ref{ss:limits}). With the saving $X^{-10^{-3}/\theta^2}$ of \cite[Lemma~3.1]{CD2026}, the constant $C_0$ becomes $4+\log(8\cdot10^3)=12.99$. \appendix \section{A mean value with two coefficients, exponent pairs, a recursion, and the constant \texorpdfstring{$6.219627$}{6.219627}}\label{s:appendix} In the proof of Lemma~\ref{lem:mv} the sum $\mathcal{S}$ is split into translates of progressions modulo $A$, and the largest number $\mathcal{N}$ of translates whose coefficient vectors lie in a common box is bounded by means of the two leading coefficients. In the classical theory of exponential sums, Heath-Brown \cite{HB2017} used Vinogradov's mean value theorem to prove a $k$-th derivative test in which van der Corput's exponent $1/(2^k-2)$ is replaced by $1/(k(k-1))$; the new ingredient there is a count of the pairs of points at which the Taylor coefficients of two consecutive orders nearly agree modulo~$1$. For the fourth derivative test, Robert and Sargos \cite{RS2002} had improved the exponent $\frac1{14}$ to $\frac1{13}$, and Robert \cite{Rob2016} reached every exponent below $\frac1{12}$. In this appendix the idea of \cite{HB2017} is carried over to the sums $\mathcal{S}$ of \S\ref{s:exp} (Lemma~\ref{lem:Amv}). In comparison with Lemma~\ref{lem:mv} one thing changes: instead of the largest number of translates in a box, the two leading coefficients are used to count the pairs of translates that interact. For each degree $D\ge3$ this gives the saving $X^{-1/(D(D+1))}$ throughout the range $\frac12(D+1)\le U\le D$, apart from a factor $X^{\varepsilon}$ and the effects of rounding, whereas Lemma~\ref{lem:mv} gives it only for $U\le D-\frac1D$, and beyond this point a saving smaller by the factor $D/(D+1)$. The new estimate replaces Lemma~\ref{lem:mv} and the cases $j\ge4$ of Lemma~\ref{lem:vdc}(ii); by itself it would lower the constant $C_0$ to $6.2821\ldots$. Four further changes in the estimates for the sums $\mathcal{S}$ are due to Davidson \cite{Dav2026,Dav2026b}, and a fifth combines two of them. First \cite[Lemma~3.2]{Dav2026}, if the shifts in the differencing steps of Lemma~\ref{lem:vdc}(ii) are taken to be multiples of suitable divisors of the modulus, the loss $X^{\vartheta/2}$ that the rounding of the moduli causes there disappears (Lemma~\ref{lem:Agreedy}); this lowers the bounds for every $k$, and most for small $k$. Secondly \cite[Proposition~3.3]{Dav2026}, the $p$-adic exponent pairs of Mili\'cevi\'c \cite{Mil2016} can be used for the moduli $q\mid m^k$. We prove a version in which the loss that the prime factors of $m$ cause comes only from the primes $p$ for which $e_p$ is small (Proposition~\ref{prop:Apairs}); this lowers the constant to $6.2584\ldots$, and the bounds for large $k$ by about $0.4$ per cent (without it one would have $G(1000)\le6208$ and $G(5000)\le31124$ in place of the bounds $G(1000)\le6186$ and $G(5000)\le31014$ below). Thirdly \cite[\S4]{Dav2026b}, the saving $1/(D(D+1))$ of the new estimate, which is the limit of the two coefficient argument, can be exceeded when the shifts are multiplied by primes from a dyadic interval (Lemma~\ref{lem:Amult}). Together with a change of regime at the point $\frac{41}{382}$ in place of $\frac1{10}$ (see the remarks after Lemma~\ref{lem:Alimit}), this lowers the constant to $6.2336\ldots$, and the bounds for large $k$ by a further $0.4$ per cent (from $G(1000)\le6219$ and $G(5000)\le31199$ to $G(1000)\le6196$ and $G(5000)\le31077$). Fourthly \cite[\S7]{Dav2026b}, the count of the pairs of translates is itself a sum of exponential sums, namely of sums along a line of frequencies, and these exhibit cancellation; consequently the saving $1/(D(D+1))$ persists beyond the point $U=D$ (Lemma~\ref{lem:Acancel}). We prove this with the sums along the line estimated by one or two differencing steps and completion; it lowers the constant to $6.2224\ldots$, and the bounds for large $k$ by a further $0.15$ per cent (to $G(1000)\le6187$ and $G(5000)\le31025$). Fifthly, the multipliers can be combined with the cancellation. Lemma~\ref{lem:Amult} requires that the leading coefficients at two centres agree exactly, and this limits the exponent of the multipliers to $(D-U)/D$, so that they give nothing at $U=D$. We count the pairs of centres whose leading coefficients differ by the method of Lemma~\ref{lem:Acancel}; for two multipliers the sums along the lines have phases that are differences of two different dilates, and these are estimated by derivative tests in which only one Taylor coefficient has to be exact (Lemmas~\ref{lem:Aairy}--\ref{lem:Amultc} and Corollary~\ref{cor:Amultc}). The saving then exceeds $1/(D(D+1))$ up to the point at which the saving of Lemma~\ref{lem:Acancel} begins to fall. This lowers the constant to $C_0^\star=6.219627\ldots$. The bounds for moderate $k$ decrease only a little, to $G(1000)\le6186$ and $G(5000)\le31014$ (by about $0.035$ per cent for $k=5000$); the gain grows with $k$, and its limit is $0.045$ per cent. Three further changes concern the passage from the estimates for the sums $\mathcal{S}$ to the bounds for $G(k)$. First, the rounding of moduli is treated more carefully than in Lemma~\ref{lem:saving}: each estimate is used with the loss that it actually suffers, wherever it is the best one, and the conditions of Definition~\ref{def:round} on the largest step $\Theta$ are no longer needed (\S\ref{ss:Around}). In consequence the term of order $\sqrt k$ in Theorem~\ref{thm:main} becomes negative. Secondly, the potential of \S\ref{s:pot} is formed with the exact length of the steps, which lowers the bounds for $G(k)$ by about $\log k$ (Theorem~\ref{thm:Aexplicit}). Thirdly, the steps are treated as a recursion, and the arcs of large height are pruned by means of large values of exponential sums instead of moments, so that the concavity of the potential is no longer needed (Theorem~\ref{thm:Arec}); for $37\le k\le5000$ this lowers the bounds by a further $1$ to $10$. The recursion applies to all $k\ge6$. For $9\le k\le36$ it gives bounds for $G(k)$, and for $7\le k\le36$ bounds for $G^+(k)$, that improve on those in the literature; for $7\le k\le20$ we combine it with the tables of permissible exponents of Vaughan and Wooley \cite{VW2000}. The results are stated in \S\ref{ss:Aresults}, and the appendix is organised as follows. The estimate is proved in \S\ref{ss:Aestimate}. Section~\ref{ss:Around} contains the saving function that results from it, with its rounding losses, and the chains of estimates by which this function is bounded from below. In \S\ref{ss:Apot} we isolate the properties of a potential on which the induction of \S\ref{s:pot} rests, and we record what is used of \S\S\ref{s:setup}--\ref{s:circle} for exponents below $37$. Two potentials are then constructed. The first is the analogue of the one in \S\ref{s:pot}, with a largest step $\Theta$ (\S\ref{ss:Achains}); it gives the bounds for $k\ge5000$, by an explicit evaluation, and the result on fractional parts (\S\ref{ss:Afrac}). The second is the recursive one (\S\ref{ss:Arec}); with the computations of \S\ref{ss:Anum} it gives the bounds for $G(k)$, for $G^+(k)$ and for the mean value of $F$ when $k\le5000$. The theorems are proved in \S\ref{ss:Aproofs}, \S\ref{ss:Aremarks} contains remarks, and \S\ref{ss:Averif} describes the part of the program of \S\ref{ss:numerics} that concerns this appendix. Sections~\ref{s:setup}--\ref{s:ls} are used with the changes stated in \S\ref{ss:Apot} and in the proofs of Theorems~\ref{thm:Aexplicit} and~\ref{thm:Arec}. The fourth and fifth changes, that is, Lemmas~\ref{lem:Aseries}--\ref{lem:Amultc} and Corollaries~\ref{cor:Acancel} and~\ref{cor:Amultc}, which supply the numbers (f) and~(g) of Definition~\ref{def:Asaving}, take about twenty pages, and they lower the constant by only $0.0112$ and $0.0028$. They may be omitted on a first reading, together with the parts of the later arguments that concern these numbers; the rest of the appendix then gives the constant $6.2336\ldots$ in place of $C_0^\star$. \subsection{Results}\label{ss:Aresults} For integers $D\ge4$ let \[ \Lambda_D:=\frac1{D+1}\log\Bigl(1+\frac{2(D+1)}{D^2}\Bigr),\qquad \Lambda_D^\star:=\frac1{2(D+1)}\log\frac{(D^2+D+2)(D+1)(D+2)}{D^4}, \] and \begin{align*} \Lambda_D^{(1)}&:=\frac{2(3D+1)}{3(D+1)(2D+1)}\log\frac{2(3D+1)(2D^2+D+2)}{D(6D+1)(2D-1)} +\frac1{2(D+1)}\log\frac{(6D+1)(D+2)}{3(2D^2+D+2)},\\ \Lambda_D^{(2)}&:=\frac{7D+4}{(D+1)(7D+5)}\log\frac{(7D+4)(7D^2+5D+10)}{D(7D+3)(7D-2)} +\frac1{2(D+1)}\log\frac{(7D+3)(D+2)}{7D^2+5D+10}. \end{align*} Let $\Lambda_D^\sharp:=\Lambda_D^{(2)}$ for $4\le D\le6$ and $\Lambda_D^\sharp:=\Lambda_D^{(1)}$ for $D\ge8$, let \[ \Lambda_7^\sharp:=\tfrac{53}{432}\log\tfrac{53}{47}+\tfrac{11}{90}\log\tfrac{321}{301}+\tfrac1{16}\log\tfrac{129}{107}, \] For $D\ge15$ let \begin{align*} \Lambda_D^\dagger:={}&\frac{3D+4}{6(D+1)(D+2)}\log\frac{(D+2)^2(2D+1)(3D+1)P_D}{(3D+4)N_D}\\ &+\frac{2(3D+1)}{3(D+1)(2D+1)}\log\frac{N_D}{D(D+1)(2D-1)P_D}, \end{align*} where $P_D:=6D^2+17D+4$ and $N_D:=12D^5+52D^4+97D^3+111D^2+64D+12$. For $4\le D\le14$ let $\Lambda_D^\dagger$ be the integral of $1/(t\,\theta^\star(t))$ over $\frac1{(D+1)(D+2)}k$ be a prime. The reduced residue classes modulo $p$ can be partitioned into fewer than $6k^5$ sets on each of which the maps $x\mapsto x^i$ with $i\in\{u,\,u+1,\,2u-1,\,3u-1\}$ are injective, and also the map $x\mapsto x^{u-1}$ if $u\ge2$. \end{lemma} \begin{proof} Let $E:=u(u+1)(2u-1)(3u-1)\max\{u-1,1\}$, so that $E<6k^5$, and let $\Gamma$ be the group of the residues $\omega$ modulo $p$ with $\omega^{E}=1$; it has at most $E$ elements. Let $\mathcal{X}$ be a set of representatives of the cosets of $\Gamma$ in $(\mathbb{Z}/p\mathbb{Z})^\times$. The sets $\omega\mathcal{X}$ with $\omega\in\Gamma$ form a partition of $(\mathbb{Z}/p\mathbb{Z})^\times$. If $x,x'\in\omega\mathcal{X}$ and $x^i=x'^i$ for one of the exponents $i$ in question, then $x'/x\in\Gamma$, because $i$ divides $E$, so that $x/\omega$ and $x'/\omega$ are elements of $\mathcal{X}$ in the same coset of $\Gamma$, whence $x=x'$. \end{proof} We fix such a partition for every prime $p\mid m$; it depends on $u=k-D$. Two integers coprime to $m$, positive or negative, are called \emph{equivalent} if for every $p\mid m$ their residues modulo $p$ lie in the same set of the partition. There are at most $(6k^5)^J$ classes of equivalent integers. (The exponents $u$ and $u+1$ are used in Lemmas~\ref{lem:Aval} and~\ref{lem:Apairs}, the others in Lemma~\ref{lem:Acancel}.) \begin{lemma}[valuations]\label{lem:Aval} If $n$ and $n'$ are equivalent, then for every prime $p\mid m$ one has $v_p(n^u-n'^u)=v_p(n^{u+1}-n'^{u+1})=v_p(n-n')$. \end{lemma} \begin{proof} Let $i\in\{u,u+1\}$. If $p\nmid n-n'$, then $n^i\not\equiv n'^i\pmod p$ by the choice of the partition, and all three valuations are $0$. If $p\mid n-n'$, then $n^i-n'^i=(n-n')\sum_{l0$. Then the number of pairs $(n,n')\in\mathcal{V}^2$ with \begin{equation}\label{eq:Acond} \Bigl\|\frac{b_1(n^u-n'^u)}{r_1}\Bigr\|\le\delta_1\qquad\text{and}\qquad \Bigl\|\frac{b_2(n^{u+1}-n'^{u+1})}{r_2}\Bigr\|\le\delta_2 \end{equation} is at most \[ L+\mathcal{N}_1(\delta_2)+2\delta_1\Bigl(r_1L+(r_1+L)\,\mathcal{N}_1(2\delta_2)\Bigr),\quad\text{where}\quad \mathcal{N}_1(\delta):=\frac{2L^2}{r_2}+4k^Jd(r_2)\,\delta\Bigl(\frac{Lr_2}{r_1^2}+\frac{L^2}{r_1}\Bigr) \] and $d(r_2)$ is the number of divisors of $r_2$. If $\delta_1r_1<1$, the number of these pairs is at most $L+\mathcal{N}_1(\delta_2)$. The elements of $\mathcal{V}$ may be negative, and the bounds increase with $L$. \end{lemma} \begin{proof} The hypothesis $r_1\mid r_2$ is used only to see that the number $c$ below is a multiple of $r_1$, and the equivalence of the elements of $\mathcal{V}$ only through Lemma~\ref{lem:Aval}. There are at most $L$ pairs with $n=n'$. Next we count, for a given $\delta>0$, the pairs with $n\ne n'$ and $r_1\mid n-n'$ that satisfy the second condition in \eqref{eq:Acond} with $\delta$ in place of $\delta_2$; let $\mathcal{N}_1^*(\delta)$ be their number. Put $h:=n'-n$, so that $0<|h|1$. The polynomial \[ f_h(t):=\frac{(t+h)^{u+1}-t^{u+1}}{c} \] has integer coefficients, its degree is $u$, its leading coefficient is $(u+1)h/c$, and one has $b_2(n'^{u+1}-n^{u+1})/r_2=b_2f_h(n)/r'$. Let $p\mid r'$. Then $v_p(h)=v_p(c)$, so that the leading coefficient of $f_h$ is not divisible by $p$; moreover, by Lemma~\ref{lem:Aval}, neither $f_h(n)$ nor $f_h'(n)=(u+1)\bigl((n+h)^u-n^u\bigr)/c$ is divisible by $p$ when $n$ and $n+h$ are equivalent. Hence $b_2f_h(n)\equiv l\pmod{r'}$ for an integer $l$ with $0<|l|\le\delta r'$, which leaves at most $2\delta r'$ values of $l$. For each of them the integers $n$ in question lie in at most $u^J$ residue classes modulo $r'$: for each prime power $p^{b}$ dividing $r'$ exactly, the congruence $b_2f_h(t)\equiv l\pmod p$ has at most $u$ solutions, and by Hensel's lemma a solution modulo $p^b$ at which $f_h'$ is not divisible by $p$ is determined by its residue modulo $p$. A residue class modulo $r'$ contains at most $1+L/r'$ elements of $\mathcal{V}$. For a given $c$ there are at most $2L/c$ numbers $h$, and $c\ge r_1$. Therefore \[ \mathcal{N}_1^*(\delta)\le\frac{2L^2}{r_2}+\sum_{c}\frac{2L}{c}\cdot2u^J\delta\,(r'+L)\le\mathcal{N}_1(\delta). \] Now consider the pairs counted in the lemma with $r_1\nmid n-n'$. Let $r$ be the residue of $b_1(n'^u-n^u)$ modulo $r_1$ of least absolute value. Then $|r|\le\delta_1r_1$ by \eqref{eq:Acond}, and $r\ne0$ by Lemma~\ref{lem:Aval}; so there are at most $2\delta_1r_1$ possibilities for $r$, and there are none if $\delta_1r_1<1$. For given $n$ and $r$ let $\mathcal{R}(n,r)$ be the set of the numbers $n'$ that occur. If $n_1',n_2'\in\mathcal{R}(n,r)$ are distinct, then $n_1'^u\equiv n_2'^u\pmod{r_1}$, hence $r_1\mid n_1'-n_2'$ by Lemma~\ref{lem:Aval}, and $\|b_2(n_1'^{u+1}-n_2'^{u+1})/r_2\|\le2\delta_2$; so the pair $(n_1',n_2')$ is counted by $\mathcal{N}_1^*(2\delta_2)$. Conversely, for given $n_1'$ and $r$ the congruence $b_1(n_1'^u-n^u)\equiv r\pmod{r_1}$ determines $n$ modulo $r_1$, again by Lemma~\ref{lem:Aval}, so that at most $2\delta_1r_1(1+L/r_1)$ pairs $(n,r)$ have $n_1'\in\mathcal{R}(n,r)$. Since $N\le1+N(N-1)$ for every integer $N\ge0$, we conclude that \[ \sum_{(n,r)}\#\mathcal{R}(n,r)\le2\delta_1r_1L+\sum_{(n,r)}\#\mathcal{R}(n,r)\bigl(\#\mathcal{R}(n,r)-1\bigr)\le 2\delta_1r_1L+2\delta_1(r_1+L)\,\mathcal{N}_1^*(2\delta_2). \] The lemma follows on adding the three contributions. \end{proof} \begin{lemma}[mean value with two coefficients]\label{lem:Amv} Let $A\le X$, and put $Y:=\lfloor X/A\rfloor$. Then, for every $\varepsilon>0$, one has \[ \mathcal{S}\ll X^{1+\varepsilon}\biggl(\frac1X+\Bigl(1+\frac{X}{Y^D}\Bigr)\Bigl(\frac1{q_{D-1}}+ \frac{q_{D-1}}{Y^{D-1}Xq_D^2}+\frac1{Y^{D-1}q_D}\Bigr)+\frac{q_D}{Y^DX}\biggr)^{\frac1{D(D+1)}} . \] The implied constant is at most $c(k,\varepsilon)^J$, where $c(k,\varepsilon)$ depends on $k$ and $\varepsilon$ only. \end{lemma} \begin{proof} Every prime factor of $m$ divides $A$, so that $(n+Ay,m)=(n,m)$ for all integers $n$ and $y$. Counting the pairs $(n,y)$ with $0\le y1$); Lemmas~\ref{lem:Aval} and~\ref{lem:Apairs} do not require that the integers be positive. As in the proof of Lemma~\ref{lem:mv}, the inner sum is the sum of $e\bigl(\sum_{i\le D}\alpha_i(n)y^i\bigr)$ over $y\in\mathcal{K}_n$, where $\alpha_i(n):=\frac aq\binom kiA^in^{k-i}$ for all integers $n$, and it is at most $2g^*(\boldsymbol\alpha(n))$ in modulus; here $\boldsymbol\alpha(n):=(\alpha_1(n),\dots,\alpha_D(n))$, and $g_t$ and $g^*$ are defined as in that proof, with the same number $Y=\lfloor X/A\rfloor$. Let $w:=\frac12D(D+1)$. The integers $n$ in the outer sum fall into at most $(6k^5)^J$ sets $\mathcal{V}$ of pairwise equivalent integers, each contained in an interval with at most $2X$ integers, and by H\"older's inequality \begin{equation}\label{eq:Ahol} Y\,|\mathcal{S}|\le2\sum_{\mathcal{V}}(2X)^{1-1/w}\Bigl(\sum_{n\in\mathcal{V}}g^*(\boldsymbol\alpha(n))^{w} \Bigr)^{1/w}. \end{equation} Let $\mathcal{Q}:=\prod_{i\le D}[-Y^{-i},Y^{-i}]$, a box of volume $2^DY^{-w}$. As in the proof of Lemma~\ref{lem:mv}, we have $g^*(\boldsymbol\alpha)\le(1+2\pi D)\,g^*(\boldsymbol\beta)$ for $\boldsymbol\beta\in\boldsymbol\alpha+\mathcal{Q}$. Averaging over $\boldsymbol\beta$ and using the periodicity of $g^*$, and then Cauchy's inequality, we obtain \[ \sum_{n\in\mathcal{V}}g^*(\boldsymbol\alpha(n))^{w}\ll Y^{w}\int_{\mathbb{T}^D}g^*(\boldsymbol\beta)^{w}\, \nu(\boldsymbol\beta)\,\mathrm{d}\boldsymbol\beta\le Y^w \Bigl(\int_{\mathbb{T}^D}g^*(\boldsymbol\beta)^{2w}\,\mathrm{d}\boldsymbol\beta\Bigr)^{1/2} \Bigl(\int_{\mathbb{T}^D}\nu(\boldsymbol\beta)^2\,\mathrm{d}\boldsymbol\beta\Bigr)^{1/2}, \] where $\nu(\boldsymbol\beta)$ is the number of pairs $(n,\mathbf l)\in\mathcal{V}\times\mathbb{Z}^D$ with $\boldsymbol\beta+\mathbf l\in\boldsymbol\alpha(n)+\mathcal{Q}$. The first integral on the right is $\ll Y^{w+\varepsilon}$. Indeed, the argument in the proof of Lemma~\ref{lem:mv}, which does not depend on the degree, bounds it by $(\log2Y)^{2w}$ times the mean value of $|g_Y|^{2w}$ over $\mathbb{T}^D$, and the latter is $\ll Y^{w+\varepsilon}$ by Vinogradov's mean value theorem at the critical exponent $2w=D(D+1)$; this is classical for $D=2$, it is due to Wooley \cite{Woo2016b} for $D=3$ and to Bourgain, Demeter and Guth \cite{BDG2016} for $D\ge4$, and \cite{Woo2019} covers all degrees. For the second integral, note that \[ \int_{\mathbb{T}^D}\nu(\boldsymbol\beta)^2\,\mathrm{d}\boldsymbol\beta=\sum_{n,n'\in\mathcal{V}}\ \sum_{\mathbf d\in \mathbb{Z}^D}\operatorname{vol}\Bigl(\bigl(\boldsymbol\alpha(n)+\mathcal{Q}\bigr)\cap\bigl(\boldsymbol\alpha(n')+ \mathcal{Q}+\mathbf d\bigr)\Bigr). \] The intersection is empty unless $\boldsymbol\alpha(n)-\boldsymbol\alpha(n')\in\mathbf d+2\mathcal{Q}$, which for given $n$ and $n'$ leaves at most $5^D$ values of $\mathbf d$, and none unless $\|\alpha_i(n)-\alpha_i(n')\|\le2Y^{-i}$ for $1\le i\le D$. So the second integral is at most $5^D\operatorname{vol}(\mathcal{Q})\,\mathcal{M}$, where $\mathcal{M}$ is the number of pairs $(n,n')\in\mathcal{V}^2$ with this property. Hence the left hand side is $\ll Y^{w+\varepsilon}\mathcal{M}^{1/2}$, and by \eqref{eq:Ahol} \[ \mathcal{S}\ll X^{1+\varepsilon}\max_{\mathcal{V}}\bigl(\mathcal{M}/X^2\bigr)^{1/(2w)}. \] In $\mathcal{M}$ we keep the conditions for $i=D$ and $i=D-1$ only. As $p\nmid a\binom ki$ for $p\mid m$, the numbers $\frac aq\binom kDA^D$ and $\frac aq\binom k{D-1}A^{D-1}$ are, in lowest terms, fractions $b_1/q_D$ and $b_2/q_{D-1}$ with $(b_1,q_D)=(b_2,q_{D-1})=1$; thus $\alpha_D(n)=b_1n^{u}/q_D$ and $\alpha_{D-1}(n)=b_2n^{u+1}/q_{D-1}$. So Lemma~\ref{lem:Apairs} applies with $r_1=q_D$, $r_2=q_{D-1}$, $\delta_1=2Y^{-D}$ and $\delta_2=2Y^{1-D}$, and since its bound increases with $L$, we may take $L=2X$. Let $\mathcal{B}$ denote the sum of the three terms in the inner bracket in the lemma, and put $C_1':=4k^J(k+1)^J$. As $d(q_{D-1})\le(k+1)^J$, one finds that $\mathcal{N}_1(\delta_2)\le8C_1'X^2\mathcal{B}$ and $\mathcal{N}_1(2\delta_2)\le16C_1'X^2\mathcal{B}$. Since $q_D\le A\le X$, it follows that \[ \frac{\mathcal{M}}{X^2}\le\frac2X+8C_1'\mathcal{B}+\frac{8q_D}{Y^DX}+\frac{192\,C_1'X}{Y^D}\,\mathcal{B}\le 192\,C_1'\biggl(\frac1X+\Bigl(1+\frac X{Y^D}\Bigr)\mathcal{B}+\frac{q_D}{Y^DX}\biggr), \] which proves the lemma. \end{proof} \begin{corollary}\label{cor:Amv} Let $2\le D\le k-1$ and $U/(D+1)+\vartheta<1$, and put \begin{align*} E_1&:=\tfrac{2U}{D+1}-(D-1)\vartheta, & E_2&:=D-1-\tfrac{(D-2)U}{D+1}-(2D-1)\vartheta,\\ E_3&:=(2D-2)\bigl(1-\tfrac{U}{D+1}\bigr)-(3D-1)\vartheta, & E_4&:=D+1-U-D\vartheta . \end{align*} Then, for every $\varepsilon>0$, one has \[ \mathcal{S}\ll X^{1+\varepsilon-\varrho^\star},\qquad\text{where}\quad\varrho^\star:=\frac{1}{D(D+1)} \min\{1,E_1,E_2,E_3,E_4\}. \] The implied constant is at most $c(k,\varepsilon)^J$, where $c(k,\varepsilon)$ depends on $k$ and $\varepsilon$ only. \end{corollary} \begin{proof} If the minimum is not positive, there is nothing to prove. Write $U_1:=U/(D+1)$. By \eqref{eq:Asizes} we have \[ A\le X^{U_1+\vartheta}1$ be a natural number all of whose prime factors exceed $k$, let $2\le l\le k$, let $v$ be an integer with $(v,s)=1$, let $0<\Delta\le\frac12$, and let $\mathcal{I}$ be a set of $L$ consecutive integers. Then the number of $t\in\mathcal{I}$ with $(t,s)=1$ and $\|vt^l/s^2\|\le\Delta$ is at most \[ 6k^{\omega(s)}\Delta L+4k^{\omega(s)}d(s^2)\,s\log^2(2s^2). \] \end{lemma} \begin{proof} Put $N:=s^2$. If $\Delta N<1$, the condition says that $vt^l\equiv0\pmod N$, which is impossible for $(t,s)=1$; so let $\Delta N\ge1$, and let $\mathcal{T}$ be the set of the residues $r$ modulo $N$ with $\|r/N\|\le\Delta$, so that $\#\mathcal{T}\le2\Delta N+1\le3\Delta N$. For $p\mid s$ the congruence $vt^l\equiv r\pmod p$ has at most $l$ solutions when $p\nmid r$, all of them simple, as $p>k\ge l$; so by Hensel's lemma the congruence $vt^l\equiv r\pmod N$ has at most $l^{\omega(s)}$ solutions when $(r,s)=1$, and none with $(t,s)=1$ otherwise. Split $\mathcal{I}$ into $\lfloor L/N\rfloor$ blocks of $N$ consecutive integers and a remainder $\mathcal{I}'$ of $L'0$, one has \[ \mathcal{S}\ll X^{1+\varepsilon}\biggl(\frac1{BX}+\frac{q_{D-1}}{Y^{D-1}q_D^3}+\frac1B\Bigl(\frac1{q_{D-1}}+ \frac{q_{D-1}}{Y^{D-1}Xq_D^2}+\frac1{Y^{D-1}q_D}\Bigr)\biggr)^{\frac1{D(D+1)}}. \] The implied constant is at most $c(k,\varepsilon)^J$. \end{lemma} By the prime number theorem there is an absolute constant $B_0$ such that the hypothesis on $\#\mathcal{P}$ holds whenever $B\ge B_0$ and $J\le B/(4\log2B)$. \begin{proof} Every prime factor of $m$ divides $A$, and the elements of $\mathcal{P}$ do not divide $m$; hence $(n+Aby,m)=(n,m)$ for $b\in\mathcal{P}$. We count the triples $(b,n,y)$ with $b\in\mathcal{P}$ and $0\le yk$, and each lifts to a unique root $c_p\in\mathbb{Z}_p$ of $c_p^u=(b/b')^D$. By \eqref{eq:Amult1}, we have $n'\equiv c_pn\pmod{p^f}$ for one of these roots; so the pair determines a tuple $\mathbf c=(c_p)_{p\mid q_D}$, chosen from at most $u^J$ tuples. Put $j_p:=\min\{v_p(bc_p-b'),f\}$, $d:=\prod_pp^{j_p}$ and $s:=q_D/d$. As $bn'-b'n\equiv(bc_p-b')n\pmod{p^f}$, we have $d\mid bn'-b'n$; put $H:=(bn'-b'n)/d$. Let $p\mid s$, so that $j:=j_p1$. Since $|n|,|n'|\le X$, the number $H$ lies in an interval of length $8BX/d$, it is coprime to $s$, and it satisfies \eqref{eq:Amult3}; by Lemma~\ref{lem:Aresidues} with $l=u+1$ (or trivially, if $d\delta>\frac12$) there are at most $c_2^JX^\varepsilon(BX\delta+s)$ such $H$. Given $H$, the number $n$ is determined modulo $s$, as $n\equiv x_*\pmod{p^{f-j_p}}$ for $p\mid s$, and modulo $b$, by $b'n\equiv-dH\pmod b$; so it lies in a residue class modulo $bs$, which leaves at most $1+2X/(Bs)$ possibilities, and then $n'=(b'n+dH)/b$. As $Bs\le Bq_D\le X$, the number of pairs with given $b$, $b'$ and $\mathbf c$ is therefore at most $c_2^JX^\varepsilon(BX\delta+s)(1+2X/(Bs))\le c_3^JX^\varepsilon(X/B+X^2d\delta/q_D)$. Finally, the congruence $bc_p\equiv b'\pmod{p^{j_p}}$ gives $b^uc_p^u\equiv b'^u$, that is, the congruence $b^k\equiv b'^k\pmod{p^{j_p}}$; so $d\mid b^k-b'^k$. For given $b$ and $d\mid q_D$ the congruence $x^k\equiv b^k\pmod d$ has at most $k^{\omega(d)}$ solutions modulo $d$, so that at most $k^J(B/d+1)$ primes $b'\in\mathcal{P}$ can occur with this $d$. If $d0$ and $\varepsilon\le\beta\le\beta_D^*-\varepsilon$, and suppose that $J\le X^{\varepsilon/2}$. Put $U_1:=U/(D+1)$ and \begin{align*} G_1&:=(D-1)(1-U_1-\beta)+U_1-(3D-1)\vartheta, & G_2&:=2U_1+\beta-(D-1)\vartheta,\\ G_3&:=1+\beta+(D-1)(1-U_1-\beta)-(2D-1)\vartheta . \end{align*} Then $\mathcal{S}\ll X^{1+2\varepsilon-\varrho_\beta}$ with $\varrho_\beta:=\min\{1+\beta,G_1,G_2,G_3\}/(D(D+1))$. The implied constant is at most $c(k,\varepsilon)^J$. \end{corollary} \begin{proof} Let $B:=X^\beta$. By \eqref{eq:Asizes} we have \[ A\le X^{U_1+\vartheta},\qquad X^{U_1-D\vartheta}\le q_D\le X^{U_1},\qquad q_{D-1}\ge X^{2U_1-(D-1)\vartheta},\qquad \frac{q_{D-1}}{q_D^2}\le X^{D\vartheta}. \] As $\beta\le\beta_D^*-\varepsilon$, one has $D(1-U_1-\vartheta-\beta)\ge U_1+D\varepsilon$ and $\beta\le U_1-D\vartheta-\varepsilon$; hence, for $X\ge X_0(k,\varepsilon)$, we have $X\ge4AB$, $Y\ge X/(4AB)$, $4q_D0$, one has \[ \mathcal{S}\ll X^{1-\mathfrak{s}_j(U,\vartheta)+\omega+\varepsilon} . \] The implied constant is at most $c(k,\varepsilon)^J$, where $c(k,\varepsilon)$ depends on $k$ and $\varepsilon$ only. \end{lemma} \begin{proof} In this proof the constants implied by the symbol $\ll$ are of the form $c^J$ with $c$ depending on $k$ and $\varepsilon$ only; note that $\log(2r'm)\le(k+2)\log X\ll X^{\varepsilon/2}$ for every divisor $r'$ of $m^k$, since $m\le X$. The number $\vartheta=\log m/\log X$ does not change in the course of the proof. \emph{A class of sums.} Let $2\le v\le k$. We consider sums \[ \mathcal{F}=\sum_{n\in\mathcal{I}}\mathbf 1_{\mathcal{Z}}(n)\,e\Bigl(\frac{bf(n)}{r}\Bigr), \] where $\mathcal{I}$ is a set of at most $X$ consecutive integers, the modulus $r$ is a divisor of $m^k$ (possibly $r=1$), the number $b$ is an integer coprime to $r$, the polynomial $f\in\mathbb{Z}[t]$ has coefficients that agree modulo $p$ with those of $c_pt^v$, for some integer $c_p$ with $p\nmid c_p$, for every prime $p\mid r$, and $\mathbf 1_{\mathcal{Z}}(n)$ is $1$ if $n\bmod p\notin\mathcal{Z}_p$ for every prime $p\mid m$ and $0$ otherwise; here $\mathcal{Z}_p$ is a set of residue classes modulo $p$ that contains $0$. We say that $\mathcal{F}$ has degree $v$, and we put $u(\mathcal{F}):=\log r/\log X$ and $z(\mathcal{F}):=\max_{p\mid m}\#\mathcal{Z}_p$. For instance, the sum $\mathcal{S}$ has degree $k$, with $r=q$, $f=t^k$ and $\mathcal{Z}_p=\{0\}$, so that $u(\mathcal{S})=U$ and $z(\mathcal{S})=1$. \emph{Completion.} If $\mathcal{F}$ has degree $v$ and $z(\mathcal{F})\le2^k$, then \begin{equation}\label{eq:Acompl} \mathcal{F}\ll Xr^{-1/2}+r^{1/2}\log(2rm) . \end{equation} This is proved as Lemma~\ref{lem:compl}, with two changes in the local sums. At a prime $p\mid r$, with $e=v_p(r)$, the sum in Lemma~\ref{lem:local} is now taken over the residues $n$ modulo $p^e$ with $n\bmod p\notin\mathcal{Z}_p$. For $e=1$ this changes it by at most $\#\mathcal{Z}_p\le2^k$, so that it is at most $(d-1+2^k)p^{1/2}$ in modulus. For $e\ge2$ the proof of Lemma~\ref{lem:local} writes it as a sum over residues $y$ modulo $p^{\lfloor e/2\rfloor}$ with $p\nmid y$, each term of which is $0$ or at most $p^{e/2}$ in modulus, at most $d-1$ terms being different from $0$; the condition $y\bmod p\notin\mathcal{Z}_p$ removes some of the terms, and the bound $(d-1)p^{e/2}$ remains valid. At a prime $p\mid m$ with $p\nmid r$ the Ramanujan sum becomes $\sum_{n\bmod p,\,n\notin\mathcal{Z}_p}e(\ell'n/p)$, which equals $p-\#\mathcal{Z}_p$ if $p\mid\ell'$ and $-\sum_{x\in\mathcal{Z}_p}e(\ell'x/p)$ otherwise, so that it is at most $2^k(\ell',p)$ in modulus. The rest of the proof is unchanged, apart from the constants. \emph{Differencing.} Let $\mathcal{F}$ be a sum of degree $v\ge3$, and let $B$ be a natural number with $\operatorname{rad}(r)\mid B\mid r$ and $B\le X$. Put $H:=\lfloor X/B\rfloor$, so that $H\ge1$ and $2X/H\le4B$. By \eqref{eq:WvdC}, applied with $A=B$ and $Y=H$ after a translation of the index of summation, we have \begin{equation}\label{eq:Adiff} |\mathcal{F}|^2\le4B\Bigl(X+\sum_{0<|h|2$, then $\mathfrak{s}_0(u,\vartheta)=0$, and \eqref{eq:Aind} is trivial. Now let $1\le i\le k-2$, suppose that \eqref{eq:Aind} holds for $i-1$, and let $\mathcal{F}$ be a sum of degree $v\ge i+2$ with $z(\mathcal{F})\le2^{k-2-i}$. Put $u:=u(\mathcal{F})$ and $\sigma:=\mathfrak{s}_i(u,\vartheta)$. We may suppose that $\sigma>\omega$, since otherwise \eqref{eq:Aind} is trivial. We claim that there is a number $\beta$ with \begin{equation}\label{eq:Abeta} \vartheta\le\beta\le1-2\sigma\qquad\text{and}\qquad\mathfrak{s}_{i-1}(u-\beta,\vartheta)\ge2\sigma . \end{equation} By \eqref{eq:Agreedy}, and since $2^{i+1}\sigma\le1$ and $2^i\sigma\le1-\vartheta$ by the choice of $\sigma$, the second inequality holds if \[ u-(i+1)+(2^{i+2}-4)\sigma\le\beta\le u-(i-1)\vartheta-2^{i+1}\sigma . \] So it suffices to show that the larger of the numbers $\vartheta$ and $u-(i+1)+(2^{i+2}-4)\sigma$ does not exceed the smaller of the numbers $1-2\sigma$ and $u-(i-1)\vartheta-2^{i+1}\sigma$. Here $\vartheta\le1-2\sigma$ follows from $2^i\sigma\le1-\vartheta$; the inequality $\vartheta\le u-(i-1)\vartheta-2^{i+1}\sigma$ is equivalent to $i\vartheta+2^{i+1}\sigma\le u$, and $u-(i+1)+(2^{i+2}-4)\sigma\le1-2\sigma$ to $u\le i+2-(2^{i+2}-2)\sigma$, and both hold by \eqref{eq:Agreedy}. The last of the four inequalities reads $(i-1)\vartheta+(3\cdot2^{i+1}-4)\sigma\le i+1$. As $\vartheta\le1-2^i\sigma$ and $2^{i+1}\sigma\le1$, its left hand side is at most $i-1+((7-i)2^i-4)\sigma\le i-1+\max\{0,\frac12(7-i)-2^{1-i}\}$, and this is at most $i+1$ because $i+2^{2-i}\ge3$. This proves the claim. Let $\beta$ be as in \eqref{eq:Abeta}. As $\vartheta\le\beta\le u-(i-1)\vartheta-2^{i+1}\sigma\le u$, there is a number $B$ with $\operatorname{rad}(r)\mid B\mid r$ and $X^\beta\le B\omega$. We apply \eqref{eq:Adiff}. Each sum $\mathcal{F}_h$ has degree $v-1\ge(i-1)+2$ and satisfies $z(\mathcal{F}_h)\le2^{k-2-(i-1)}$, and $u(\mathcal{F}_h)$ differs from $u-\beta$ by less than $\omega+\log(r_0,h)/\log X$. By the induction hypothesis and the Lipschitz continuity of $\mathfrak{s}_{i-1}(\cdot,\vartheta)$, we have \[ \mathcal{F}_h\ll X^{1-2\sigma+\frac32\omega+\varepsilon}\,(r_0,h)^{1/2}\le X^{1-2\sigma+\frac32\omega+\varepsilon}\,(r_0,h). \] Since $BH\le X$ and $\sum_{0<|h|0$, one has \[ \mathcal{S}\ll X^{1-\sigma+10\omega+\varepsilon},\qquad\sigma:=1-\lambda_w-\kappa_w(U-1)-\tfrac12\vartheta_\flat, \] with an implied constant at most $c(k,\varepsilon)^J$. Moreover $\vartheta_\flat\le\vartheta$, and $\vartheta_\flat\le(k\vartheta-U)/(k-E_w+1)$ if $k\ge E_w$. \end{proposition} The last assertion holds because $U\log X$ is the sum of the numbers $e_p\log p$, where $e_p\le k$, so that $U\le(E_w-1)\vartheta_\flat+k(\vartheta-\vartheta_\flat)$. In particular there is no loss when $q=m^k$. The numbers $c_w$ and $\vartheta_w$ ensure that the sums to which the steps $A$ are applied are long enough for the shift moduli of Lemma~\ref{lem:Agreedy} to leave the exponents $e_p\ge E_w$ large enough; the primes with $e_pp_1$ divides the numerator or the denominator of one of the numbers $v_i$ and $v_i-1$ ($0\le i\le r$); this is possible by admissibility. For such $p$ and $j\le11$ the binomial coefficients $\binom{v_i}{j}$, $\binom{v_i-1}{j}$ and $\binom{1/(v_i-1)}{j}$ are $p$-adic integers. All implied constants have the form $c(k,\varepsilon)^J$, and $\log$-factors are absorbed into the factor $X^{\varepsilon}$; note that $m\le X^{1/2}$, as $\vartheta\le\vartheta_w\le\frac12$. For $y\in\mathbb{Z}_p$ and $e\ge0$ we write $e(y/p^e)$ for $e(y'/p^e)$, where $y'$ is an integer with $y'\equiv y\pmod{p^e}$. \emph{Types, and a local sum.} Let $p>p_1$ and $v\in\{v_0,\dots,v_r\}$, and let $2\le N\le11$. A power series $\Phi(y_0+y)=\sum_{i\ge0}\alpha_iy^i$ with $y_0\in\mathbb{Z}$ and $\alpha_i\in\mathbb{Z}_p$, considered on the disk $y_0+p\mathbb{Z}_p$, has \emph{type $v$ and order $N$, with constants $A,B\in\mathbb{Z}_p^\times$}, if $\alpha_i\equiv AB^i\binom vi\pmod p$ for $2\le i\le N$. Expanding about another point $y_1$ of the disk does not change the coefficients modulo $p$, since that of degree $i$ becomes $\sum_{l\ge i}\alpha_l\binom li(y_1-y_0)^{l-i}$; the expansions have coefficients in $\mathbb{Z}_p$; and the residue of $\Phi(x)$ modulo $p^e$ depends only on $x$ modulo $p^e$. In particular $\Phi'\equiv\alpha_1\pmod p$ on the disk, and $\Phi(x)-\Phi(x')=(x-x')\Phi'(x)+ (x-x')^2\rho$ with $\rho\in\mathbb{Z}_p$. \emph{Claim.} Let $\Phi$ be as above, let $e\ge2$, and for $\ell\in\mathbb{Z}_p$ put $S(\ell):=\sum e((\Phi(x)-\ell x)/p^e)$, the sum over the residues $x$ modulo $p^e$ with $x\equiv y_0\pmod p$. Then $S(\ell)=0$ unless $\ell\equiv\alpha_1\pmod p$. If $\ell\equiv\alpha_1\pmod p$, the equation $\Phi'(x)=\ell$ has exactly one solution $x_\ell\in y_0+p\mathbb{Z}_p$, and \[ S(\ell)=p^{e/2}\,\mathfrak{g}\,e\bigl(\Phi^*(\ell)/p^e\bigr),\qquad\Phi^*(\ell):=\Phi(x_\ell)-\ell x_\ell, \] where $|\mathfrak{g}|=1$ and $\mathfrak{g}$ depends only on $p$, $e$ and $\alpha_2\bmod p$. The function $\Phi^*(\alpha_1+s)$ is a power series in $s$ with coefficients in $\mathbb{Z}_p$, its coefficient of degree $1$ is $-y_0$, and on the disk $\alpha_1+p\mathbb{Z}_p$ it has type $v/(v-1)$ and order $N$, with constants $(1-v)A$ and $1/(vAB)$. Indeed, put $F(x):=\Phi(x)-\ell x$ and $u:=\lceil e/2\rceil$, and write $x=y+p^ut$ with $y$ modulo $p^u$ and $t$ modulo $p^{e-u}$. As $2u\ge e$, we have $F(x)\equiv F(y)+F'(y)p^ut\pmod{p^e}$, so that $S(\ell)$ is $p^{e-u}$ times the sum of $e(F(y)/p^e)$ over the residues $y$ modulo $p^u$ in the disk with $F'(y)\equiv0\pmod{p^{e-u}}$. On the disk $F'\equiv\alpha_1-\ell\pmod p$, and $F'(x)-F'(x')$ is $x-x'$ times a unit, because $F''\equiv2\alpha_2\equiv AB^2v(v-1)\not\equiv0$. So there are no such $y$ if $\ell\not\equiv\alpha_1$; otherwise $F'$ has exactly one zero $x_\ell$ in the disk, by Hensel's lemma, and the residues in question are those with $y\equiv x_\ell\pmod{p^{e-u}}$. If $e=2u$, there is one such residue, and $F(x_\ell+p^uz)\equiv F(x_\ell)\pmod{p^e}$, as $F'(x_\ell)=0$. If $e=2u-1$, the residues are $y=x_\ell+p^{u-1}z$ with $z$ modulo $p$, and $F(y)\equiv F(x_\ell)+\frac12F''(x_\ell)p^{e-1}z^2\pmod {p^e}$, because $3(u-1)\ge e$; the sum over $z$ is a Gauss sum of modulus $\sqrt p$ that depends only on $\frac12F''(x_\ell)\equiv\alpha_2\pmod p$, as $p$ is odd. This gives the formula for $S(\ell)$. Next, the series $\Phi'(y_0+t)-\alpha_1=\sum_{i\ge1}(i+1)\alpha_{i+1}t^i$ has the unit $2\alpha_2$ as its coefficient of degree $1$, so that its compositional inverse $t(s)$ has coefficients in $\mathbb{Z}_p$, and $x_{\alpha_1+s}=y_0+t(s)$. Hence $\Phi^*(\alpha_1+s)=\Phi(y_0+t(s))-(\alpha_1+s)(y_0+t(s))$ is a power series with coefficients in $\mathbb{Z}_p$, and its derivative is $-y_0-t(s)$; so its coefficient of degree $i\ge1$ is $-t_{i-1}/i$, where $t(s)=\sum_{j\ge1}t_js^j$ and $t_0:=y_0$. Modulo $p$ and modulo $t^N$ we have $\Phi'(y_0+t)-\alpha_1\equiv ABv((1+Bt)^{v-1}-1)$, since $(i+1)\binom v{i+1}=v\binom{v-1}i$. Therefore, modulo $p$ and $s^N$, one has $1+Bt(s)\equiv(1+\hat s)^{1/(v-1)}$ with $\hat s:=s/(vAB)$, and integration of the derivative gives, modulo $p$ and $s^{N+1}$, \[ \Phi^*(\alpha_1+s)\equiv\Phi^*(\alpha_1)-y_0s-\frac1B\int_0^s\bigl((1+\hat s)^{\frac1{v-1}}-1\bigr)\,\mathrm{d}s =(1-v)A(1+\hat s)^{\frac v{v-1}}+c_0+c_1s \] for some $c_0,c_1\in\mathbb{Z}_p$; the divisions by $i\le N1$ with $r\mid m^k$ and $\epsilon_p:=v_p(r)\ge2$ for every prime $p\mid r$; a real number $X'\ge1$ and a set $\mathcal{I}$ of consecutive integers that is contained in an interval of length $X'$; a real number $\alpha$; and a finite set $\mathcal{C}$ and, for $c\in\mathcal{C}$, a residue class $\kappa(c)$ modulo $M:=\operatorname{rad}(r)$ and, for each prime $p\mid M$, a power series $\Phi_{p,c}$ of type $v$ and order $N$ on the disk $\kappa(c)+p\mathbb{Z}_p$. We call $r$ the modulus, the number $X'$ the length, and $\nu:=\log r/\log X'$ (if $X'>1$) the exponent of $\mathfrak{F}$. Its members are the sums \[ T_c:=\sum_{\substack{n\in\mathcal{I}\\ n\equiv\kappa(c)\bmod M}}e(\alpha n)\prod_{p\mid M}e\Bigl(\frac{\Phi_{p,c}(n)} {p^{\epsilon_p}}\Bigr)\qquad(c\in\mathcal{C}), \] and we put $|\mathfrak{F}|:=\sum_{c\in\mathcal{C}}|T_c|$. The system is \emph{twisted} if $\alpha\notin\mathbb{Z}$. Let $\delta_p(c)$ be the residue of $\Phi'_{p,c}$ modulo $p$ on the disk. The \emph{multiplicity} $\mu(\mathfrak{F})$ is the largest number of indices $c$ that have the same class $\kappa(c)$, or the same residues $\delta_p(c)$ for all $p\mid M$. Thus $|\mathcal{C}|\le\mu(\mathfrak{F})M$, and $|\mathfrak{F}|\le\mu(\mathfrak{F})(X'+M)$ trivially. (O1) \emph{Completion.} Let $\mu:=\mu(\mathfrak{F})$. Then $|\mathfrak{F}|\le\mu(4X'r^{-1/2}+2r^{1/2}\log(3r))$; and if $\mathfrak{F}$ is not twisted and all the residues $\delta_p(c)$ are nonzero, then $|\mathfrak{F}|\le 2\mu r^{1/2}\log(3r)$. Indeed, the function $\psi_c(n):=\mathbf 1_{n\equiv\kappa(c)\bmod M}\prod_pe(\Phi_{p,c}(n)/ p^{\epsilon_p})$ has period $r$. Let $\bar u_p$ be the inverse of $r/p^{\epsilon_p}$ modulo $p^{\epsilon_p}$; then $1/r\equiv\sum_p\bar u_p/p^{\epsilon_p}\pmod 1$, and the Chinese remainder theorem gives $\widehat\psi_c(\ell):=r^{-1}\sum_{n\bmod r}\psi_c(n)e(-\ell n/r)=r^{-1}\prod_pS_{p,c}(\bar u_p\ell)$, where $S_{p,c}$ is the sum of the claim for $\Phi_{p,c}$ and $e=\epsilon_p$. By the claim, we have $|\widehat\psi_c(\ell)|\le r^{-1/2}$, and $\widehat\psi_c(\ell)=0$ unless $\ell\equiv\kappa^*(c)\pmod M$, where $\kappa^*(c)$ is the class with $\bar u_p\kappa^*(c)\equiv\delta_p(c)\pmod p$ for all $p\mid M$. Put $y:=-\alpha r$, and take for $\ell$ the integers in $(y-\frac r2,y+\frac r2]$. Then $T_c=\sum_\ell\widehat\psi_c(\ell)G((\ell-y)/r)$, where $G(\zeta):= \sum_{n\in\mathcal{I}}e(\zeta n)$ satisfies $|G(\zeta)|\le\min\{X'+1,1/(2|\zeta|)\}$ for $|\zeta|\le\frac12$. Every $\ell$ belongs to at most $\mu$ indices $c$, so that \[ |\mathfrak{F}|\le\mu r^{-1/2}\sum_\ell\min\Bigl\{X'+1,\frac r{2|\ell-y|}\Bigr\}\le\mu r^{-1/2}\bigl(2X'+2+r(1+\log r)\bigr). \] If $\alpha\in\mathbb{Z}$, then $y\equiv0\pmod M$, while $\kappa^*(c)\not\equiv0$ modulo each $p\mid M$ when the residues $\delta_p(c)$ are nonzero; then $\ell\ne y$ in all nonzero terms, and the term $2X'+2$ can be omitted. (O2) \emph{Differencing.} Let $\mu:=\mu(\mathfrak{F})$, suppose that $M\le X'$, and let $B_0$ be a natural number with $M\mid B_0\le X'$; put $H:=\lfloor X'/B_0\rfloor$. For $0<|h|1$, as for the sums $T_{c,h}$ above. For a residue $y$ modulo $P$ let $\tilde y\in[0,P)$ be its representative and write $n=\tilde y+Pn'$. Then the members with $\kappa(c)\equiv y\pmod P$ are, up to factors of modulus $1$, the members of a system $\mathfrak{F}_y$ with modulus $r_1$, length $X'$, twist $0$, the classes $(\kappa(c)-\tilde y)\bar P$ modulo $M_1$, where $P\bar P\equiv1 \pmod{M_1}$, and the power series $x\mapsto\Phi_{p,c}(\tilde y+Px)$, which have the same types, with $B$ replaced by $BP$, and the residues $P\delta_p(c)$. Hence $\sum_c|T_c|\le P\max_y|\mathfrak{F}_y|$. (O4) \emph{Duality.} Let $\mathfrak{F}$ be a system with $r\ge X'$, and write $\mathcal{I}=[a,b]\cap\mathbb{Z}$. For a set $\mathcal{J}$ of consecutive integers and a real number $\beta$ let $\mathfrak{F}^*_{\mathcal{J},\beta}$ be the system of type $v/(v-1)$ and order $N$ with modulus $r$, set $\mathcal{J}$, twist $\beta$, index set $\mathcal{C}$, classes $\kappa^*(c)$ as in (O1), and power series $\ell\mapsto\Phi^*_{p,c}(\bar u_p\ell)$, where $\Phi^*_{p,c}$ is the function of the claim for $\Phi_{p,c}$. By the claim, its constants are $(1-v)A$ and $\bar u_p/(vAB)$, and its residues $\delta^*_p(c)$ are $-\bar u_p\kappa(c)$; so its multiplicity is at most $\mu(\mathfrak{F})$. For $L\ge1$ let $V^*(L)$ be the largest of the numbers $|\mathfrak{F}^*_{\mathcal{J},\beta}|$ with $\beta\in\{a/r,(b+1)/r\}$ and $\mathcal{J}$ contained in an interval of length $L$. Then \begin{equation}\label{eq:Adual} |\mathfrak{F}|\le50\,r^{-1/2}(1+\log X')\max_{r/X'\le L\le r}\frac rL\,V^*(L). \end{equation} Indeed, let $y$ and $G$ be as in (O1), and $\zeta_\ell:=(\ell-y)/r$. By the claim, we have \[ T_c=r^{-1/2}\mathfrak{g}_c\sum_\ell\psi^*_c(\ell)G(\zeta_\ell), \] where $|\mathfrak{g}_c|=1$ and $\psi^*_c(\ell)$ is the summand of the members of $\mathfrak{F}^*_{\mathcal{J},0}$. We split the range of $\ell$ into the set $\mathcal{P}_0$ where $|\ell-y|\le r/X'$, and the sets $\mathcal{P}_i^\pm$ where $2^{i-1}r/X'<\pm(\ell-y)\le2^ir/X'$, for the integers $i\ge1$ with $2^{i-1}r/X'<\frac r2$; there are at most $1+\log_2X'$ of them. On $\mathcal{P}_i^\pm$ we write $G(\zeta)=(e((b+1)\zeta)-e(a\zeta))g(\zeta)$ with $g(\zeta):=1/(e(\zeta)-1)=-\frac12-\frac i2\cot\pi\zeta$; the factors $e((b+1)\zeta_\ell)$ and $e(a\zeta_\ell)$ are constants times the twists $e(\beta\ell)$ with $\beta=(b+1)/r$ and $\beta=a/r$, and with $L_i:=2^{i-1}r/X'$ the function $g(\zeta_\ell)$ has modulus at most $r/(4L_i)$ and total variation at most $r/(2\pi L_i)$ on $\mathcal{P}_i^\pm$. On $\mathcal{P}_0$ we write $G(\zeta)=e(a\zeta)g_0(\zeta)$ with $g_0(\zeta):=\sum_{0\le n\le b-a}e(\zeta n)$, which has modulus at most $X'+1\le2X'$ and total variation at most $6\pi X'$ there; with $L_0:=\min\{2r/X',r\}$ the sum of these two bounds is at most $42r/L_0$. For each of the pieces partial summation, applied to the sum over $c$ of the moduli, gives \[ \sum_c\Bigl|\sum_{\ell\in\mathcal{P}}f_c(\ell)g(\ell)\Bigr|\le\bigl(\sup|g|+\operatorname{Var}g\bigr) \max_{\mathcal{J}}\sum_c\Bigl|\sum_{\ell\in\mathcal{J}}f_c(\ell)\Bigr|, \] the maximum being taken over the initial segments $\mathcal{J}$ of $\mathcal{P}$; these are the same for all $c$, which is why the members of a system have a common interval and a common twist. The segments in $\mathcal{P}_i^\pm$ and in $\mathcal{P}_0$ lie in intervals of lengths $L_i$ and $L_0$, all of which lie in $[r/X',r]$. Adding up gives \eqref{eq:Adual}, since $42+4(1+\log_2X')\le50(1+\log X')$. \emph{Regular systems.} The systems that occur below are indexed by residue classes $c$ modulo $M_0:= \operatorname{rad}(r_2)$, for a certain divisor $r_2$ of $q$ that is fixed at the beginning, and $\mathcal{C}$ consists of classes prime to $M_0$; the modulus $r$ of a system divides $r_2$. We call a system of type $v_i$ \emph{regular} if there are units $a_p$, $b_p$ and affine bijections $\phi_p$, $\phi'_p$ of $\mathbb{Z}/p\mathbb{Z}$ (depending on the system and on $p$, but not on $c$) and integers $t_p$ with $0<|t_p|\le K$ such that \begin{itemize} \item[(R1)] for $p\mid M$ the constants of $\Phi_{p,c}$ are congruent to $a_pc^{s_iv_i}$ and $b_pc^{-s_i}$ modulo $p$, and $\kappa(c)\equiv\phi_p(c^{s_i})\pmod p$; \item[(R2)] for $p\mid M$ one has $\delta_p(c)\equiv\phi'_p(c^{t_p})\pmod p$; \item[(R3)] for $p\mid M_0$ with $p\nmid M$ the residue of $c^{t_p}$ modulo $p$ is the same for all $c\in\mathcal{C}$. \end{itemize} As $c\mapsto c^t$ is at most $|t|$ to one on $(\mathbb{Z}/p\mathbb{Z})^\times$, a regular system has multiplicity at most $K^J$. We say that it is \emph{of the first kind} if moreover $\delta_p(c)\equiv d_pc^{s_i(v_i-1)}$ with units $d_p$, for $p\mid M$. The operations preserve regularity. In (O2) the new constants are $a'_pc^{s_i(v_i-1)}$ with $a'_p=ua_pb_pv_i$, and $b_pc^{-s_i}$; as $s_{i+1}=s_i$ and $v_{i+1}=v_i-1$ this is (R1) for the type $v_{i+1}$, and the new residues are $a'_pb_p(v_i-1)c^{s_i(v_i-2)}$, which is the first kind. In (O3) the constants $b_p$ are multiplied by $P$, the maps $\phi_p$ are composed with an affine map, the residues are multiplied by $P$, and for the primes $p\mid P$ condition (R3) holds with $t_p=s_i$, because $\kappa(c)$ is fixed modulo $p$ in $\mathfrak{F}_y$. In (O4), applied to a system of the first kind, the new constants are $(1-v_i)a_pc^{s_iv_i}$ and $\bar u_p(v_ia_pb_p)^{-1} c^{-s_i(v_i-1)}$, the new classes are $\kappa^*(c)\equiv\bar u_p^{-1}d_pc^{s_i(v_i-1)}$ and the new residues are $-\bar u_p\phi_p(c^{s_i})$; as $s_{i+1}=s_i(v_i-1)$ and $s_{i+1}v_{i+1}=s_iv_i$, the dual systems are regular. \emph{Shift moduli.} Let $\mathfrak{F}$ be a system with modulus $r$ and length $X'$, and let $01/k>\omega$, we have $m>p_+$. Consequently, if $a\ge0$ is an integer with $\log(r/X'^b)\ge(3+a)\log m$, then $\mu\log m\ge\log(r/B_0)>(3+a)\log m-\log p_+>(2+a)\log m$, so that $\mu\ge3+a$, and every prime with $\epsilon_p\ge3+a$ satisfies $v_p(r/B_0)\ge2+a$. \emph{The induction.} For $0\le ii$ with $w_j=A$}, \end{equation} such that $\nu\ge1$, or $\mathfrak{F}$ is not twisted and all its residues $\delta_p(c)$ are nonzero, and such that $\mathfrak{F}$ is of the first kind if $i1-\frac12\nu$; then $|\mathfrak{F}|\le K^J(X'+M)\le2K^JX'$, so that we may suppose that $X'^{g_i(\nu)}>X^{(r-i)\omega}$. Write $\kappa':=\kappa_{i+1}$ and $\lambda':=\lambda_{i+1}$, and let $\mathfrak{F}$ have modulus $r$ and length $X'$. \emph{A step $A$.} Let $w_{i+1}=A$, so that $(\kappa_i,\lambda_i)=A(\kappa',\lambda')$ and $a_{i+1}=a_i-1$. Put $b:=(\lambda'+\kappa'(\nu-1))/(1+\kappa')$. A short computation shows that $1-\lambda_i-\kappa_i(\nu-1)=\frac12(1-b)$, that $1-b=1-\lambda'-\kappa'(\nu-b-1)$, and that $g_i(\nu)>1-\frac12\nu$ means $\nu>1+\lambda'$, which is equivalent to $\nu-b>1$. Thus $\nu>\frac32$ and $\frac12\le\lambda'\le b<1$, and $g_i(\nu)=\frac12(1-b)$. As $M\le X'^{1/3}\log X'\ge (3+a_{i+1})\log m$, so that the safe primes, for which $\epsilon_p\ge a_i+2=a_{i+1}+3$, satisfy $v_p(r_0)\ge a_{i+1}+2$, where $r_0:=r/B_0$. We apply (O2). Let $0<|h|1$, we apply (O3) with $P=P_h$; the resulting systems $\mathfrak{F}_{h,y}$ have type $v_{i+1}$, order $N_{i+1}$, modulus $r_h$, length $X'$, no twist and nonzero residues, they are regular, and they satisfy \eqref{eq:Alength} for $i+1$, as the conditions for $j>i+1$ are among those for $i$, with the same products. So they are systems of level $i+1$. Their exponents are at most $\log r_0/\log X'\le\nu-b$, and $g_{i+1}(\nu-b)\ge 1-\lambda'-\kappa'(\nu-b-1)=1-b$, so that the induction hypothesis gives \[ V_h\le P_h\max_y|\mathfrak{F}_{h,y}|\ll P_h\,\Xi(\mathfrak{F}_{h,y})\,X'^{\,b}X^{(r-i-1)\omega+\varepsilon}. \] Here $P_h\Xi(\mathfrak{F}_{h,y})\le\Xi(\mathfrak{F})^2D_h$. Indeed, a prime $p\mid M$ that is not safe in $\mathfrak{F}$ contributes $p$ to the right hand side and at most $p$ to the left. A safe prime with $p\nmid h$ has $v_p(r_0/D_h)=v_p(r_0)\ge a_{i+1}+2$, so that it is safe in $\mathfrak{F}_{h,y}$ and contributes $1$ on both sides; and a safe prime with $p\mid h$ divides $D_h$ and contributes at most $p\le p^{v_p(D_h)}$ on the left. If $r_h=1$, then $V_h\le2K^JX'$ and $D_h\ge r_0/m$. The number of such $h$ is at most $2Hd(r_0)m/r_0$, and \[ \frac{X'm}{r_0}\frac32$ and $m\le X'^{1/3}$. As $\sum_{0<|h|1-\frac12\nu$ means $(\nu-1)(1-\lambda')>\kappa'$, so that $\nu>1$. As $\mathfrak{F}$ is of the first kind, we may apply (O4). The dual systems are regular, of type $v_{i+1}$ and order $N_{i+1}=N_i$, with modulus $r$ and lengths $L$ with $r/X'\le L\le r$, so that their exponents $\nu_L:=\log r/\log L$ are at least $1$; their safe primes are those of $\mathfrak{F}$; and they satisfy \eqref{eq:Alength} for $i+1$, because $\log L\ge(\nu-1)\log X'>\log X'\cdot \kappa'/(1-\lambda')$ and $\Pi_{i,j}=\Pi_{i+1,j}\kappa'/(1-\lambda')$. So they are systems of level $i+1$. As $g_{i+1}(\nu_L)\ge1-\lambda'-\kappa'(\nu_L-1)$, the induction hypothesis gives $\frac rLV^*(L)\ll r^{1+\kappa'}L^{\lambda'-\kappa'-1}\,\Xi(\mathfrak{F})X^{(r-i-1)\omega+\varepsilon}$, which is largest for $L=r/X'$, as $\lambda'-\kappa'<1$. By \eqref{eq:Adual}, we have \[ |\mathfrak{F}|\ll r^{\lambda'-1/2}X'^{1+\kappa'-\lambda'}\,\Xi(\mathfrak{F})X^{(r-i-1)\omega+\varepsilon} =X'^{1-g_i(\nu)}\,\Xi(\mathfrak{F})X^{(r-i-1)\omega+\varepsilon}, \] the equality being the definition of $(\kappa_i,\lambda_i)$. This completes the induction. \emph{The beginning.} We remove the condition $(n,p)=1$ at the primes $p\mid m$ with $p\nmid q$ by inclusion and exclusion: $\mathcal{S}=\sum_g\mu(g)\mathcal{S}_g$, with $\mathcal{S}_g:=\sum_{n\le X/g,\,(n,q)=1}e(ag^kn^k/q)$, the sum over the at most $2^J$ divisors $g$ of the product of these primes. Let $r_1$ be the product of the primes with $e_p=1$, and $r_2:=q/r_1$; then $r_2>1$, as $r_1\le m1-\frac12U$. Let $w_1=A$. The function $x\mapsto\mathbf 1_{(x,r_1)=1}e(a_1x^k/r_1)$ on $\mathbb{Z}/r_1\mathbb{Z}$ has Fourier coefficients $\widehat\chi(j)$ with $\sum_j|\widehat\chi(j)|^2\le1$, so that $\sum_j|\widehat\chi(j)|\le r_1^{1/2}$ and $|\mathcal{S}_g|\le r_1^{1/2}\max_j|\mathfrak{F}_j|$, where $\mathfrak{F}_j$ is the system with modulus $r_2$, length $X$, twist $j/r_1$, index set $(\mathbb{Z}/M_0\mathbb{Z})^\times$, classes $\kappa(c)=c$ and power series $\Phi_{p,c}(x)=a_px^k$. These have type $k=v_0$, with the constants $a_pc^k$ and $c^{-1}$, and $\delta_p(c)=ka_pc^{k-1}$; so $\mathfrak{F}_j$ is regular and of the first kind. As $w_1=A$, the inequality $\sigma'>1-\frac12U$ means $U>1+\lambda_1>\frac32$, and as $\vartheta\le\vartheta_w\le\frac13$, the exponent of $\mathfrak{F}_j$ is at least $U-\vartheta>1$. Condition \eqref{eq:Alength} for $i=0$ and $\ell=1$ reads $\Pi_{0,j}\ge(3+a_j)\vartheta$, and $\Pi_{0,j}$ is the number $\Pi_j$ of \eqref{eq:Acw}; so it follows from $\vartheta\le\vartheta_w$. Thus $\mathfrak{F}_j$ is a system of level $0$, and \eqref{eq:Aindpair} gives \[ \mathcal{S}_g\ll r_1^{1/2}X^{1-g_0(\nu)}\,\Xi\,X^{r\omega+\varepsilon}\le r_1^{1/2}\,\Xi\,X^{1-\sigma'+r\omega+ \varepsilon}, \] where $\nu\le U$ is the exponent of $\mathfrak{F}_j$ and $\Xi$ is the product of the numbers $p^{1/2}$ over the primes with $2\le e_pD$ the saving in Corollary~\ref{cor:Amv} is governed by the last term of Lemma~\ref{lem:Amv}. It comes from the pairs $(n,n')$ for which $\alpha_D(n)-\alpha_D(n')$ is not an integer: there are about $q_DY^{-D}$ possible values $r/q_D$ of this difference modulo~$1$, and for each of them Lemma~\ref{lem:Apairs} allows about $X$ pairs. Davidson \cite[\S7]{Dav2026b} has observed that for $r\ne0$ this count can be improved. The condition on $\alpha_{D-1}$ is detected by additive characters; when the two resulting sums over $n$ and $n'$ are completed, the relation $\alpha_{D-1}'=(D/A)\,\alpha_D$ between the two coefficients confines the pairs of frequencies to a line; and along this line the terms are the values of a $p$-adically analytic phase, so that their sum can be estimated by the methods above. We carry this out in our setting. In \cite{Dav2026b} the integers $n$ and $n'$ are restricted to one residue class modulo the primes in question, and the sum along the line is estimated by exponent pairs; we keep the classes of Lemma~\ref{lem:Aclasses}, so that the term $1/X$ of the diagonal is not affected, and we estimate the sum along the line by one or two differencing steps (see Remark~\ref{rem:Afurther}). For $\iota\in\{1,2\}$ put \[ \varkappa_\iota:=\frac1{2^{\iota+2}-2},\qquad\text{so that}\quad\varkappa_1=\tfrac16,\quad\varkappa_2=\tfrac1{14}; \] the pairs $(\varkappa_\iota,1-(\iota+1)\varkappa_\iota)$ are $(\frac16,\frac23)$ and $(\frac1{14},\frac{11}{14})$, which belong to the words that consist of one and of two letters $A$. \begin{lemma}[differencing for power series]\label{lem:Aseries} Let $0<\omega\le1$, and suppose that $m\le X$ and that every prime factor of $m$ lies in $(11,X^\omega]$. Let $\iota\in\{1,2\}$. Let $r>1$ be a natural number all of whose prime factors divide $m$, with $\epsilon_p:=v_p(r)\ge2$ for every prime $p\mid r$, and put $M:=\operatorname{rad}(r)$. Let $y_0$ be an integer, and for every prime $p\mid M$ let $\Psi_p(y_0+y)=\sum_{l\ge0}\alpha_{p,l}\,y^l$ be a power series with coefficients in $\mathbb{Z}_p$, considered on the disk $y_0+p\mathbb{Z}_p$, such that $\alpha_{p,l}$ is a unit for $2\le l\le\iota+2$. Let $N$ be a real number with $m^3\le N\le r$, and let $\mathcal{J}$ be a set of at most $N$ consecutive integers. Then \[ \sum_{\substack{n\in\mathcal{J}\\ n\equiv y_0\bmod M}}\ \prod_{p\mid M}e\Bigl(\frac{\Psi_p(n)}{p^{\epsilon_p}}\Bigr) \ll N^{1-(\iota+2)\varkappa_\iota}\,r^{\varkappa_\iota}\,X^{\omega/2}\,\log(3r), \] with an absolute implied constant. \end{lemma} \begin{proof} We use the claim and the operations (O1)--(O3) of the proof of Proposition~\ref{prop:Apairs}, for systems with a single member and without a twist, so that $\mu=1$ there; we write $N$ for the length $X'$. In these arguments the hypothesis that the power series have a type enters only as follows. In the first two assertions of the claim, and hence in (O1), it is used that $\alpha_2$ is a unit. In (O2) it is used that the coefficients $\alpha_{l+1}$ in question are units; the computation there shows that the coefficient of degree $l$ of the series $(\Psi_p(x+hB_0)-\Psi_p(x))p^{-j}$, where $j=v_p(hB_0)\ge1$, is congruent to $(hB_0p^{-j})(l+1)\,\alpha_{p,l+1}$ modulo $p$. In (O3) the coefficient of degree $l$ is multiplied by $P^l$. As $p>11$, the factors $l+1\le5$ are units. Let us say that a sum as in the lemma, with a modulus $r'$ in place of $r$, has \emph{order} $i$ if the coefficients $\alpha_{p,l}$ with $2\le l\le i+2$ are units, and that it is \emph{nondegenerate} if the coefficients $\alpha_{p,1}$ are units as well. Thus: (a) A nondegenerate sum of order $0$ with the modulus $r'>1$ is at most $2r'^{1/2}\log(3r')$ in modulus, by the second bound of (O1). (b) Let $T$ be a sum of order $i\ge1$ with the modulus $r'$, and let $B_0$ be a natural number with $\operatorname{rad}(r')\mid B_0\mid r'$ and $B_0\le N$; put $H:=\lfloor N/B_0\rfloor$ and $r_0:=r'/B_0$. Then, by (O2), we have \[ |T|^2\le\frac{3N}{H}\Bigl(2N+\sum_{0<|h|1$, then by (O2) and (O3) the sum $T_h$ is, up to a factor of modulus $1$, a nondegenerate sum of order $i-1$ with the modulus $r_h$, over a set of at most $N$ consecutive integers. If $r_h=1$, then $|T_h|\le N/\operatorname{rad}(r')+1\le N$, and $h$ is a multiple of $r_0/\operatorname{rad}(r_0)$, since $v_p(h)\ge v_p(r_0)-1$ for all $p$; the number of these $h$ is at most $2H\operatorname{rad}(r')/r_0$, and together they contribute at most $4HN/r_0$ to the sum over $h$, because $\operatorname{rad}(r')\le m\le N$. We prove the lemma for $\iota=1$, in the following form: \emph{a sum $T$ of order $1$ with a modulus $r'$ such that $m^3\le N\le r'$ satisfies $|T|\le6N^{1/2}r'^{1/6}X^{\omega/2}\log(3r')$.} If $r'^{1/3}X^\omega>N$, the right hand side exceeds $N\ge|T|$. Otherwise we choose $B_0$ as in Lemma~\ref{lem:Agreedy}: starting from $\operatorname{rad}(r')\le m\le N^{1/3}\le r'^{1/3}$ we multiply by prime factors of $r'/B_0$ as long as $B_01$. Hence \[ |T|^2\le12B_0N+3N\bigl(4r'^{1/3}\log(3r')+4r'^{1/3}X^\omega\bigr)\le36\,Nr'^{1/3}X^\omega\log(3r'). \] Now let $\iota=2$, let $T$ be the sum of the lemma, and put $B_*:=N^{3/7}r^{1/7}$, so that $N^{1-4\varkappa_2}r^{\varkappa_2}=(NB_*)^{1/2}$. If $B_*X^\omega>N$, the assertion is trivial. Otherwise we choose $B_0$ with \[ \operatorname{rad}(r)\mid B_0\mid r\qquad\text{and}\qquad B_*\le B_01$ are nondegenerate of order $1$. If $r_h\le N$, then (a) gives $|T_h|\le2N^{1/2}\log(3r)\le2B_*\log(3r)$, because $N\le r^2$. If $r_h>N$, the case $\iota=1$ applies to $T_h$, and as $r_h\le r/B_*$ it gives \[ |T_h|\le6N^{1/2}(r/B_*)^{1/6}X^{\omega/2}\log(3r)=6B_*X^{\omega/2}\log(3r). \] The sums with $r_h=1$ contribute at most $4HN/r_0\le4HB_*X^\omega$, because $N\le r$. So $|T|^2\le12B_0N+3N\cdot16B_*X^\omega\log(3r)\le60NB_*X^\omega\log(3r)$, which proves the lemma. \end{proof} For a prime $p\mid m$ put $j_p:=(D+1)s_p-e_p\ge0$. By the definitions, we have \begin{equation}\label{eq:Ajp} v_p(q_D)=\max\{s_p-j_p,0\},\qquad v_p(q_{D-1})=\max\{2s_p-j_p,0\},\qquad v_p(A/q_D)=\min\{j_p,s_p\}, \end{equation} and $j_p\le D$ if $e_p\ge1$, while $j_p=D+1$ and $s_p=1$ if $e_p=0$. In particular $A/q_D\le m^D$. \begin{lemma}[cancellation in the count of pairs]\label{lem:Acancel} Let $3\le D\le k-2$, let $u$, $A$, $q_D$ and $q_{D-1}$ be as above, and put $Y:=\lfloor X/A\rfloor$, $\mathfrak{j}:=A/q_D$ and $L:=A^2/(4X)$. Suppose that $(D+1)A\le X$ and $m\le X$, and that every prime factor of $m$ lies in $(3k,X^\omega]$, where $0<\omega\le1$. Let $\iota\in\{1,2\}$ and $\varkappa:=\varkappa_\iota$. Then, for every $\varepsilon>0$, one has \[ \mathcal{S}\ll X^{1+\varepsilon}\biggl(\frac1X+\frac1{q_{D-1}}+\frac{q_{D-1}}{Y^{D-1}Xq_D^2}+\frac1{Y^{D-1}q_D} +\frac1{Y^{2D-1}}+\frac{q_D}{Y^DX}\,\mathcal{E}\biggr)^{\frac1{D(D+1)}}, \] where \[ \mathcal{E}:=X^{\varkappa+\omega/2}L^{-(\iota+1)\varkappa}\operatorname{rad}(q_D)\,\mathfrak{j}^{\,1+2(\iota+1)\varkappa} +\mathfrak{j}^2m^{3/2}L^{-1/2}+\frac{X\mathfrak{j}^2}{A^2}. \] The implied constant is at most $c(k,\varepsilon)^J$. \end{lemma} \begin{proof} In this proof $c_1,c_2,\dots$ denote numbers that depend on $k$ and $\varepsilon$ only. As in the proof of Lemma~\ref{lem:Amv}, with the same number $Y$, we have \[ \mathcal{S}\ll X^{1+\varepsilon}\max_{\mathcal{V}}\bigl(\mathcal{M}/X^2\bigr)^{\frac1{D(D+1)}}, \] where $\mathcal{V}$ runs over at most $(6k^5)^J$ sets of pairwise equivalent integers $n$ with $(n,m)=1$ and $|n|\le X$, and $\mathcal{M}$ is the number of pairs $(n,n')\in\mathcal{V}^2$ with $\|\alpha_i(n)-\alpha_i(n')\|\le2Y^{-i}$ for $i=D$ and $i=D-1$; here $\alpha_D(n)=b_1n^u/q_D$ and $\alpha_{D-1}(n)=b_2n^{u+1}/q_{D-1}$, where $b_1/q_D$ and $b_2/q_{D-1}$ are the fractions $\frac aq\binom kDA^D$ and $\frac aq\binom k{D-1}A^{D-1}$ in lowest terms. As $(u+1)\binom k{D-1}=D\binom kD$, we have \begin{equation}\label{eq:Aderiv} \frac{(u+1)\,b_2}{q_{D-1}}=\frac DA\cdot\frac{b_1}{q_D},\qquad\text{so that}\qquad \alpha_{D-1}(x+Av)\equiv\alpha_{D-1}(x)+Dv\,\alpha_D(x)\pmod1 \end{equation} for all integers $x$ and $v$, because $q_{D-1}\mid A^2$. We fix $\mathcal{V}$, and for $p\mid m$ we let $\mathcal{X}_p$ be the set of the partition of Lemma~\ref{lem:Aclasses} that contains the residues of the elements of $\mathcal{V}$; let $\mathbf 1_{\mathcal{X}}(n)$ be $1$ if $n\bmod p\in\mathcal{X}_p$ for all $p\mid m$, and $0$ otherwise. \emph{The pairs with $q_D\mid n-n'$.} By Lemma~\ref{lem:Aval} these are the pairs for which $\alpha_D(n)-\alpha_D(n')$ is an integer. The first part of the proof of Lemma~\ref{lem:Apairs}, with $r_1=q_D$, $r_2=q_{D-1}$, $\delta=2Y^{1-D}$ and $L=3X$ there, shows that their number is at most \[ 3X+c_1^JX^2\Bigl(\frac1{q_{D-1}}+\frac{q_{D-1}}{Y^{D-1}Xq_D^2}+\frac1{Y^{D-1}q_D}\Bigr). \] For the other pairs let $r$ be the residue of $b_1(n^u-n'^u)$ modulo $q_D$ of least absolute value; then $0<|r|\le H:=2q_DY^{-D}$. For an integer $r\ne0$ let $\mathcal{N}(r)$ be the number of pairs $(n,n')\in\mathcal{V}^2$ with $b_1(n^u-n'^u)\equiv r\pmod{q_D}$ and $\|\alpha_{D-1}(n)-\alpha_{D-1}(n')\|\le2Y^{1-D}$. It remains to show that \begin{equation}\label{eq:Acancel1} \sum_{0<|r|\le H}\mathcal{N}(r)\le c_2^JX^{\varepsilon}\Bigl(\frac{X^2}{Y^{2D-1}}+\frac{q_DX}{Y^D}\,\mathcal{E}\Bigr). \end{equation} Here $H\gamma_p$ and $s>\rho_p+j$, and we evaluate $\Omega_p$ for these primes. Let $p$ be one of them, and write $\gamma:=\gamma_p$, $\rho:=\rho_p$, $f:=v_p(q_D)=s-j$ and $\epsilon:=2s-\gamma$; thus $f>\max\{\tau_p,\rho\}$ and $\epsilon\ge s+1$. Detecting the last of the three congruences by additive characters modulo $p^f$, we obtain \[ \Omega_p(\ell)=p^{-f}\sum_{\xi\bmod p^f}e\Bigl(-\frac{\xi r}{p^f}\Bigr)T_\xi(\ell)\,\overline{T_\xi(\ell-\ell_0)}, \] where \[ T_\xi(\ell):=\sum_{\substack{x\bmod p^s\\(u+1)\beta x^u\equiv\ell\bmod p^s}}\mathbf 1_{\mathcal{X}_p}(x)\, e\Bigl(\frac{\bar a_p(\beta x^{u+1}-\ell x)}{p^{2s}}+\frac{\xi b_1x^u}{p^f}\Bigr) \] and $\mathbf 1_{\mathcal{X}_p}(x)$ is $1$ if $x\bmod p\in\mathcal{X}_p$, and $0$ otherwise. As before, the number $p^sT_\xi(\ell)$ is the complete sum of $e\bigl((p^\gamma\Phi_\xi(n)-\bar a_p\ell n)/p^{2s}\bigr)$ over the residues $n$ modulo $p^{2s}$ in classes of $\mathcal{X}_p$, where \[ \Phi_\xi(x):=\bar a_p\beta'x^{u+1}+\xi b_1p^{\,s-\tau_p}x^u,\qquad\beta':=\beta p^{-\gamma}; \] note that $2s-f-\gamma=s-\tau_p\ge1$. The substitution $n\mapsto n+p^{\epsilon}z$ shows that this sum vanishes unless $p^\gamma\mid\ell$. Let $\ell=p^\gamma\ell'$. Then \[ T_\xi(\ell)=p^{\gamma-s}\sum_{y_0\in\mathcal{X}_p}\ \sum_{\substack{n\bmod p^{\epsilon}\\ n\equiv y_0\bmod p}} e\Bigl(\frac{\Phi_\xi(n)-\bar a_p\ell'n}{p^{\epsilon}}\Bigr). \] On the disk $y_0+p\mathbb{Z}_p$ the polynomial $\Phi_\xi$ has type $u+1$, with the constants $\bar a_p\beta'y_0^{u+1}$ and $y_0^{-1}$, in the sense of the proof of Proposition~\ref{prop:Apairs}; the claim there, and its proof, apply to every rational number $v$ such that $p$ divides neither the numerators nor the denominators of $v$ and $v-1$, and to $p>11$, and we use it with $v=u+1$, $N=5$ and $e=\epsilon$. It shows that the inner sum vanishes unless $(u+1)\beta'y_0^u\equiv\ell'\pmod p$, which holds for at most one $y_0\in\mathcal{X}_p$, and that for this $y_0$ it equals $p^{\epsilon/2}\,\mathfrak{g}\,e\bigl(\Phi^*_{\xi,y_0}(\bar a_p\ell')/p^{\epsilon}\bigr)$, where $|\mathfrak{g}|=1$, the number $\mathfrak{g}$ depends only on $p$, $\epsilon$ and $y_0$, and $\Phi^*_{\xi,y_0}$ is the function $\Phi^*$ of the claim for $\Phi_\xi$ on this disk. By the last assertion of the claim, the function $z\mapsto\Phi^*_{\xi,y_0}(\bar a_pz)$ is a power series with coefficients in $\mathbb{Z}_p$ on the disk of the numbers $z\equiv(u+1)\beta'y_0^u\pmod p$, and for $2\le l\le5$ its coefficient of degree $l$ is congruent modulo $p$ to \begin{equation}\label{eq:Acancel5} \upsilon_l\,y_0^{\,u+1-lu},\qquad\text{where}\quad\upsilon_l:=-u\,\bar a_p\beta'\bigl((u+1)\beta'\bigr)^{-l} \binom{(u+1)/u}{l} \end{equation} is a unit that does not depend on $y_0$ and $\xi$. Indeed, the binomial coefficient is the product of $u+1$ and of the numbers $1-iu$ with $1\le i\le l-2$, divided by $u^l\,l!$; and $p>3k$ divides none of the numbers $u$, $u+1$, $l!$ and $iu-1$ with $i\le3$, while $u\ge2$. The same applies to $T_\xi(\ell-\ell_0)$, with $\ell'-\ell_0'$ in place of $\ell'$, where $\ell_0':=\ell_0p^{-\gamma}$ has $v_p(\ell_0')=\rho$; let $y_0'$ be the corresponding element of $\mathcal{X}_p$. As $\gamma-s+\frac12\epsilon=\frac12\gamma$, we conclude: \emph{if $\Omega_p(\ell)\ne0$, then $p^\gamma\mid\ell$, the elements $y_0,y_0'\in\mathcal{X}_p$ exist, they depend only on $\ell'$ modulo $p$, and} \begin{equation}\label{eq:Acancel6} \Omega_p(\ell)=p^{\gamma}\,\mathfrak{g}\overline{\mathfrak{g}'}\,p^{-f}\sum_{\xi\bmod p^f}e\Bigl(-\frac{\xi r}{p^f} \Bigr)e\Bigl(\frac{\Psi_\xi(\ell')}{p^{\epsilon-\rho}}\Bigr), \end{equation} \emph{where} \[ \Psi_\xi(z):=p^{-\rho}\Bigl(\Phi^*_{\xi,y_0}(\bar a_pz)-\Phi^*_{\xi,y_0'}\bigl(\bar a_p(z-\ell_0')\bigr)\Bigr). \] Here $\epsilon-\rho=2s-\gamma-\rho\ge j+2\ge2$. We claim that $\Psi_\xi$ is a power series with coefficients in $\mathbb{Z}_p$ on the disk of $\ell'$ whose coefficients of degree $2$, $3$ and $4$ are units. If $\rho\ge1$, then $y_0'=y_0$, and by the computation in (O2) the coefficient of degree $l$ of $\Psi_\xi$ is congruent to $(\ell_0'p^{-\rho})(l+1)\upsilon_{l+1}y_0^{\,1-lu}$, a unit for $1\le l\le4$. If $\rho=0$, then $\ell'\not\equiv\ell'-\ell_0'\pmod p$, so that $y_0^u\not\equiv y_0'^u$ and $y_0\ne y_0'$; by \eqref{eq:Acancel5} the coefficient of degree $l$ is congruent to $\upsilon_l(y_0^{-e}-y_0'^{-e})$ with $e:=(l-1)u-1$, and for $l=2,3,4$ these exponents are $u-1$, $2u-1$ and $3u-1$, for which $x\mapsto x^e$ is injective on $\mathcal{X}_p$, by the choice of the partition. This proves the claim. In particular $|\Omega_p(\ell)|\le p^{\gamma}$. \emph{The sum along the line.} Let $A_{\mathrm n}$ be the product of the numbers $p^{s_p}$ over the primes that are not core primes, and put \[ d_{\mathrm c}:=\prod_{p\ \mathrm{core}}p^{\gamma_p},\qquad M_{\mathrm c}:=\prod_{p\ \mathrm{core}}p,\qquad r_{\mathrm c}:=\prod_{p\ \mathrm{core}}p^{2s_p-\gamma_p-\rho_p},\qquad d_{\mathrm n}:=\prod_{p\ \text{not core}}p^{\min\{\gamma_p,s_p\}}, \] and let $\mathfrak{j}_{\mathrm n}$ be the product of the numbers $p^{\min\{j_p,s_p\}}$ over the primes that are not core primes. We split the integers $\ell$ with $|\ell|1$, and Lemma~\ref{lem:Aseries} applies with the modulus $r_{\mathrm c}$, for every set of consecutive integers in this range: note that $r_{\mathrm c}\ge A^2/(R_0|r|)\ge A^2/(R_0H)\ge N$, because $\prod p^{\rho_p}\le|r|\le H\le X/4$. By partial summation, which costs the factor $1+4$ for the weight $W$, and since $N^{1-(\iota+2)\varkappa}r_{\mathrm c}^{\varkappa}=N^{1-(\iota+1)\varkappa}(r_{\mathrm c}/N)^{\varkappa}\le N^{1-(\iota+1)\varkappa}X^{\varkappa}$, we obtain from \eqref{eq:Acancel3} \begin{align*} |K_r(g)|&\le c_4\frac{X^2}{A^2}\cdot\frac{A_{\mathrm n}^2}{d_{\mathrm n}}\cdot d_{\mathrm n}\mathfrak{j}_{\mathrm n} \cdot M_{\mathrm c}\,d_{\mathrm c}\cdot N^{1-(\iota+1)\varkappa}X^{\varkappa+\omega/2}\log(3X)\\ &\le c_5\,X^{1+\varkappa+\omega/2}L^{-(\iota+1)\varkappa}\,M_{\mathrm c}\,\mathfrak{j}_{\mathrm n}\, R_0^{(\iota+1)\varkappa}\log(3X), \end{align*} because $A_{\mathrm n}^2d_{\mathrm c}N=4L$ and $X^2L/A^2=\frac14X$. Without the hypothesis \eqref{eq:Acancel7} we have, by \eqref{eq:Acancel3}, \eqref{eq:Acancel4} and the bound $|\Omega_p|\le p^{\gamma_p}$ for the core primes, \begin{equation}\label{eq:Acancel8} |K_r(g)|\le\frac{\pi^4X^2}{A^2}\Bigl(\frac{2L}{d}+1\Bigr)d\,\mathfrak{j}\le c_6\Bigl(X\mathfrak{j}+ \frac{X^2(g,A)\,\mathfrak{j}^2}{A^2}\Bigr),\qquad d:=\prod_{p\mid m}p^{\min\{\gamma_p,s_p\}}\le(g,A)\,\mathfrak{j}. \end{equation} \emph{The sum over $g$ and $r$.} Let $G:=(g,A)\,(r,q_D)$. If $p$ is not a core prime and $s_p>j_p$, then $v_p(q_D)=s_p-j_p\le\max\{\tau_p,\rho_p\}$, so that $p^{s_p}$ divides $p^{j_p}(g,p^{s_p})(r,p^{v_p(q_D)})$; if $s_p\le j_p$, then $p^{s_p}=p^{\min\{j_p,s_p\}}$. Hence $A_{\mathrm n}\le\mathfrak{j}_{\mathrm n}G_{\mathrm n}$, where $G_{\mathrm n}$ is the part of $G$ that belongs to the primes that are not core primes, and $d_{\mathrm c}\le(\mathfrak{j}/\mathfrak{j}_{\mathrm n})(G/G_{\mathrm n})$; thus $R_0\le\mathfrak{j}^2G^2$. Moreover $M_{\mathrm c}\le\operatorname{rad}(q_D)$, because $s_p>j_p$ for the core primes. So if $4L\ge m^3\mathfrak{j}^2G^2$, then \eqref{eq:Acancel7} holds, and \[ |K_r(g)|\le c_5\,X^{1+\varkappa+\omega/2}L^{-(\iota+1)\varkappa}\operatorname{rad}(q_D)\, \mathfrak{j}^{\,1+2(\iota+1)\varkappa}\,G^{2(\iota+1)\varkappa}\log(3X). \] Here $2(\iota+1)\varkappa\le\frac23$. For $0<\theta\le1$ the sum of $(g,A)^\theta$ over $0<|g|G_0$ is at most $4ZH\,d(A)d(q_D)/G_0$, for every $G_0>0$. We use the last bound with $G_0:=2L^{1/2}m^{-3/2}\mathfrak{j}^{-1}$ and \eqref{eq:Acancel8} for these pairs. As $d(A)d(q_D)\le(k+1)^{2J}$ and $\log(3X)\ll X^{\varepsilon}$, it follows from \eqref{eq:Acancel2} that the terms with $g\ne0$ contribute to \eqref{eq:Acancel1} at most \[ c_7^JX^{\varepsilon}H\Bigl(X^{1+\varkappa+\omega/2}L^{-(\iota+1)\varkappa}\operatorname{rad}(q_D)\, \mathfrak{j}^{\,1+2(\iota+1)\varkappa}+X\mathfrak{j}^2m^{3/2}L^{-1/2}+\frac{X^2\mathfrak{j}^2}{A^2}\Bigr) =2c_7^JX^{\varepsilon}\,\frac{q_DX}{Y^D}\,\mathcal{E}. \] This proves \eqref{eq:Acancel1}, and the lemma. \end{proof} \begin{corollary}\label{cor:Acancel} Let $3\le D\le k-2$ and $\iota\in\{1,2\}$, put $\varkappa:=\varkappa_\iota$, and suppose that $U\ge D-\frac12$, that $U/(D+1)+\vartheta<1$ and that $(D+3)\vartheta\le\frac14$. Let $0<\omega\le1$, and suppose that every prime factor of $m$ lies in $(3k,X^\omega]$. Put $U_1:=U/(D+1)$, let $E_1$ and $E_2$ be as in Corollary~\ref{cor:Amv}, and \begin{align*} E_5&:=D+1-U+\varkappa\bigl((\iota+1)(2U_1-1)-1\bigr)-\bigl(D+1+2(\iota+1)\varkappa D\bigr)\vartheta,\\ E_6&:=(2D-1)(1-U_1-\vartheta). \end{align*} Then, for every $\varepsilon>0$, one has \[ \mathcal{S}\ll X^{1+\varepsilon+\omega-\varrho},\qquad\text{where}\quad\varrho:=\frac1{D(D+1)}\min\{1,E_1,E_2,E_5,E_6\}. \] The implied constant is at most $c(k,\varepsilon)^J$. \end{corollary} \begin{proof} If the minimum is not positive, there is nothing to prove; so let $E_6>0$. By \eqref{eq:Asizes} we have $X^{U_1}\le A\le X^{U_1+\vartheta}$. If $(D+1)A>X$, then $X^{1-U_1-\vartheta}j_p$. By the remarks that follow \eqref{eq:Ajp}, this is at most $D+1+2(\iota+1)\varkappa D$ in all cases: if $e_p=0$, it is $D+1+2(\iota+1)\varkappa$. As $L\ge\frac14X^{2U_1-1}$, the first term of $\mathcal{E}$ therefore contributes $\ll X^{-E_5+\omega/2}$. It remains to show that the other two terms of $\mathcal{E}$ do not exceed a constant multiple of the first, for which it suffices that \[ m^{3/2}\mathfrak{j}^{\,1-2(\iota+1)\varkappa}\le L^{\frac12-(\iota+1)\varkappa}X^{\varkappa}\qquad\text{and}\qquad X^{1-\varkappa}L^{(\iota+1)\varkappa}\mathfrak{j}^{\,1-2(\iota+1)\varkappa}\le A^2 . \] We have $\mathfrak{j}\le m^D$, $L\le A^2/X$ and $L\ge\frac14X^{2U_1-1}$, and $U_1\ge\frac58$, because $U\ge D-\frac12$ and $D\ge3$. For $\iota=1$ the two inequalities follow, up to constant factors, from $(\frac32+\frac13D)\vartheta\le\frac13U_1$ and from $\frac12+\frac13D\vartheta\le\frac43U_1$, and for $\iota=2$ from $(\frac32+\frac47D)\vartheta\le\frac1{14}(8U_1-3)$ and from $\frac57+\frac47D\vartheta\le\frac{11}7U_1$. All four hold when $U_1\ge\frac58$ and $(D+3)\vartheta\le\frac14$. \end{proof} For $\vartheta=0$ and $D\le U\le D+\frac12$ one has $E_1\ge1$ and $E_2\ge1$, and \[ E_6-E_5=(D-2)(1-U_1)-\eta_{D,\iota}(U), \] where \begin{equation}\label{eq:Aeta} \begin{gathered} \eta_{D,\iota}(U):=\varkappa_\iota\Bigl(\frac{2(\iota+1)U}{D+1}-\iota-2\Bigr),\qquad\text{that is,}\\ \eta_{D,1}(U)=\frac{4U-3(D+1)}{6(D+1)},\qquad\eta_{D,2}(U)=\frac{3U-2(D+1)}{7(D+1)} . \end{gathered} \end{equation} On this range $\eta_{D,\iota}(U)\le\eta_{D,\iota}(D+\frac12)\le\frac{D-2}{2(D+1)}\le(D-2)(1-U_1)$; the middle inequality reads $D-1\le3(D-2)$ for $\iota=1$ and $2D-1\le7(D-2)$ for $\iota=2$. So the saving of Corollary~\ref{cor:Acancel} is \[ \frac{\min\{1,\,D+1-U+\eta_{D,\iota}(U)\}}{D(D+1)} . \] Thus the saving $1/(D(D+1))$ persists up to the point where $U-D=\eta_{D,\iota}(U)$, and beyond this point the falling line of Corollary~\ref{cor:Amv} is shifted to the right by $\eta_{D,\iota}(U)$. These are the numbers of \cite[(P1)]{Dav2026b} when the estimate that is used along the line is the one of a differencing step followed by completion ($\iota=1$), or of two such steps ($\iota=2$). One has $\eta_{D,1}\ge\eta_{D,2}$ exactly when $U\ge\frac9{10}(D+1)$. A third differencing step would lead in the same way to the number $\frac1{30}\bigl(8U/(D+1)-5\bigr)$ in place of $\eta_{D,\iota}(U)$; this is smaller than $\eta_{D,2}(U)$ when $U/(D+1)>\frac{25}{34}$, and in particular for $U\ge D$, so that nothing would be gained. \emph{Prime multipliers with cancellation.} In Lemma~\ref{lem:Amult} the hypothesis $4q_D0$ and an integer $d_i$ with $1\le d_i\le e$ such that, for all $\lambda\in\mathbb{Z}_p$, \[ |S_G(\lambda)|\le\sum_i\varpi_i\,\mathbf 1_{\lambda\equiv\lambda_*\bmod p^{d_i}},\qquad \sum_i\varpi_ip^{-d_i}\le2p^{e/2-1},\qquad\sum_i\varpi_i\le2p^{(2e+1)/3}. \] If $g_2$ is a unit, one may take $\lambda_*=0$ and the single pair $(p^{e/2},1)$. \end{lemma} \begin{proof} If $g_2$ is a unit, this is the claim just quoted, with $y_0=0$ and $\alpha_1=0$. Let $p\mid g_2$, so that $g_3$ is a unit. The series $G''(y)=2g_2+6g_3y+\cdots$ has $G''(0)\equiv0\pmod p$ and the unit $6g_3$ as its coefficient of degree $1$; so it has a unique zero $y_*\in p\mathbb{Z}_p$ (the map $y\mapsto-(G''(y)-6g_3y)/(6g_3)$ is a contraction of $p\mathbb{Z}_p$). Expanding about $y_*$ we get $G(y_*+t)=g_0^*+g_1^*t+G^*(t)$ with $G^*(t)=\sum_{l\ge3}g_l^*t^l$, where $g_l^*\in\mathbb{Z}_p$ and $g_3^*\equiv g_3\pmod p$; here $g_1^*=G'(y_*)\in p\mathbb{Z}_p$. Put $\lambda_*:=g_1^*$. Then $|S_G(\lambda)|=|\mathcal{A}(\lambda-\lambda_*)|$, where $\mathcal{A}(\lambda'):=\sum_te((G^*(t)-\lambda't)/p^e)$, the sum over $t$ modulo $p^e$ with $p\mid t$. Let $i_1:=\lfloor(e+1)/3\rfloor$, so that $3i_1\ge e-1$ and $3(i_1-1)\le e-2$. We split the sum according to $i:=v_p(t)$ for $i1$ be an integer whose prime factors are at least $13$, put $\epsilon_p:=v_p(r)$ and $M:=\operatorname{rad}(r)$, and let $y_0\in\mathbb{Z}$. For every prime $p\mid M$ let \[ \Phi_p(y_0+y)=\beta_{p,0}+\beta_{p,1}y+p^{c_p}G_p(y), \] where $\beta_{p,0},\beta_{p,1}\in\mathbb{Z}_p$, the number $c_p\ge0$ is an integer and $G_p(y)=\sum_{l\ge2}g_{p,l}y^l\in\mathbb{Z}_p[[y]]$. Let $\mathcal{A}$ be the set of the primes with $c_p\le\epsilon_p-2$, and suppose that for $p\in\mathcal{A}$ one of $g_{p,2}$ and $g_{p,3}$ is a unit; put $e_p:=\epsilon_p-c_p$ for $p\in\mathcal{A}$, and let $\mathcal{A}'$ be the set of the $p\in\mathcal{A}$ for which $g_{p,2}$ is not a unit. Let $N\ge1$, and let $\mathcal{J}$ be a set of at most $N$ consecutive integers. Then \[ \Bigl|\sum_{\substack{n\in\mathcal{J}\\ n\equiv y_0\bmod M}}\prod_{p\mid M}e\Bigl(\frac{\Phi_p(n)}{p^{\epsilon_p}} \Bigr)\Bigr|\le2N\prod_{p\in\mathcal{A}\setminus\mathcal{A}'}p^{-e_p/2}\prod_{p\in\mathcal{A}'}2p^{-(e_p-1)/3} +(2+\log r)\prod_{p\in\mathcal{A}}2p^{\,e_p/2-1}. \] \end{lemma} \begin{proof} Let $\psi(n)$ be the summand for $n\equiv y_0\pmod M$, and $0$ otherwise; it has period $r$. As in (O1) of Proposition~\ref{prop:Apairs}, the coefficient $\widehat\psi(\ell):=r^{-1}\sum_{n\bmod r}\psi(n)e(-\ell n/r)$ equals $r^{-1}\prod_pS_p(\bar u_p\ell)$, where $\bar u_p$ is the inverse of $r/p^{\epsilon_p}$ modulo $p^{\epsilon_p}$ and $S_p(\ell)$ is the sum of $e((\Phi_p(x)-\ell x)/p^{\epsilon_p})$ over $x$ modulo $p^{\epsilon_p}$ with $x\equiv y_0\pmod p$; and the sum of the lemma is $\sum_\ell\widehat\psi(\ell)\,\mathcal{G}(\ell/r)$, where $\ell$ runs over the integers in $(-\frac r2,\frac r2]$ and $|\mathcal{G}(\zeta)|\le\min\{N+1,1/(2|\zeta|)\}$. Fix $p$, and write $\epsilon,c,G,\beta_1$ for $\epsilon_p,c_p,G_p,\beta_{p,1}$. With $x=y_0+y$, the number $|S_p(\ell)|$ is the modulus of the sum of $e(((\beta_1-\ell)y+p^cG(y))/p^\epsilon)$ over $y$ modulo $p^\epsilon$ with $p\mid y$. If $p\notin\mathcal{A}$, then $p^cG(y)\in p^{c+2}\mathbb{Z}_p\subseteq p^{\epsilon+1}\mathbb{Z}_p$, so that $|S_p(\ell)|=p^{\epsilon-1}$ if $\ell\equiv\beta_1\pmod{p^{\epsilon-1}}$, and $S_p(\ell)=0$ otherwise. Let $p\in\mathcal{A}$, and write $y=y_1+p^{\epsilon-c}z$ with $y_1$ modulo $p^{\epsilon-c}$ and $z$ modulo $p^c$. Then $p^cG(y)\equiv p^cG(y_1)\pmod{p^\epsilon}$, the sum over $z$ is $p^c$ if $\ell\equiv\beta_1\pmod{p^c}$ and $0$ otherwise, and for $\ell=\beta_1+p^c\lambda$ we get $|S_p(\ell)|=p^c|S_{G}(\lambda)|$, with $e=\epsilon-c\ge2$ in the definition of $S_G$. By Lemma~\ref{lem:Aairy} there are pairs $(\varpi_{p,i},d_{p,i})$ and a class $\kappa_p$ with \[ p^{-\epsilon}|S_p(\bar u_p\ell)|\le p^{-e_p}\sum_i\varpi_{p,i}\,\mathbf 1_{\ell\equiv\kappa_p\bmod p^{c_p+d_{p,i}}}, \] and a single pair $(p^{e_p/2},1)$ if $p\notin\mathcal{A}'$. Multiplying out, we find that $|\widehat\psi(\ell)|$ is at most the sum, over the tuples $\mathbf i=(i_p)_{p\in\mathcal{A}}$, of $w_{\mathbf i}\mathbf 1_{\ell\equiv\kappa_{\mathbf i}\bmod Q_{\mathbf i}}$, where \[ w_{\mathbf i}:=\prod_{p\notin\mathcal{A}}p^{-1}\prod_{p\in\mathcal{A}}p^{-e_p}\varpi_{p,i_p},\qquad Q_{\mathbf i}:=\prod_{p\notin\mathcal{A}}p^{\epsilon_p-1}\prod_{p\in\mathcal{A}}p^{c_p+d_{p,i_p}}, \] and $Q_{\mathbf i}$ divides $r$. A residue class modulo $Q$ contains at most one integer $\ell$ with $|\ell|<\frac12Q$, and for $t\ge1$ at most two with $(t-\frac12)Q\le|\ell|<(t+\frac12)Q$; hence, for $Q\mid r$, we have \[ \sum_{\substack{|\ell|\le r/2\\ \ell\equiv\kappa\bmod Q}}\min\Bigl\{N+1,\frac r{2|\ell|}\Bigr\}\le N+1+\sum_{1\le t\le\frac r{2Q}+\frac12}\frac{2r}{(2t-1)Q}\le2N+\frac rQ(2+\log r). \] Since $r/Q_{\mathbf i}=\prod_{p\notin\mathcal{A}}p\prod_{p\in\mathcal{A}}p^{e_p-d_{p,i_p}}$, the sum of the lemma is at most \[ 2N\prod_{p\in\mathcal{A}}\Bigl(p^{-e_p}\sum_i\varpi_{p,i}\Bigr)+(2+\log r)\prod_{p\in\mathcal{A}} \Bigl(\sum_i\varpi_{p,i}p^{-d_{p,i}}\Bigr), \] and the bounds of Lemma~\ref{lem:Aairy} give the assertion. \end{proof} \begin{lemma}[derivative tests for power series]\label{lem:Adt} Let $0<\omega\le1$, and suppose that $m\le X$ and that every prime factor of $m$ lies in $[13,X^\omega]$. Let $\iota\in\{1,2\}$ and $l_0:=\iota+2$. Let $r>1$ be a natural number all of whose prime factors divide $m$, with $\epsilon_p:=v_p(r)\ge2$ for $p\mid r$, and $M:=\operatorname{rad}(r)$. Let $y_0\in\mathbb{Z}$, and for every prime $p\mid M$ let $\Psi_p(y_0+y)=\sum_{l\ge0}\alpha_{p,l}y^l$ be a power series with coefficients in $\mathbb{Z}_p$ and $a_p\ge0$ an integer such that \begin{itemize} \item[(i)] $p^{a_p}\mid\alpha_{p,l}$ for all $l\ge l_0$, and \item[(ii)] if $a_p\le\epsilon_p-2$, then $\alpha_{p,l_0}p^{-a_p}$ or $\alpha_{p,l_0+1}p^{-a_p}$ is a unit. \end{itemize} Let $r_*$ be the product of the numbers $p^{\epsilon_p-a_p}$ over the primes with $a_p\le\epsilon_p-2$. Let $N\ge1$, let $\mathcal{J}$ be a set of at most $N$ consecutive integers, and \[ T:=\sum_{\substack{n\in\mathcal{J}\\ n\equiv y_0\bmod M}}\ \prod_{p\mid M}e\Bigl(\frac{\Psi_p(n)}{p^{\epsilon_p}} \Bigr). \] \begin{itemize} \item[(a)] Let $\iota=1$. For every natural number $B_0$ with $M\mid B_0$ and $B_0\le N$, one has \[ |T|^2\le\frac{12NB_0}{M^2}+4^J\Bigl(12N^2M^{1/3}R^{-1/3}+6N(2+\log r)R^{1/2}\Bigr),\qquad R:=\frac{r_*}{(r_*,B_0)} . \] \item[(b)] Let $\iota=1$, and suppose that $a_p\le\epsilon_p-2$ for all $p\mid M$ and that $m^3\le N\le r_*$. Then \[ |T|^2\le4^J\,12\log(3r)\,X^{\omega}\Bigl(Nr_*^{1/3}+N^2m^{1/3}r_*^{-2/9}\Bigr). \] \item[(c)] Let $\iota=2$, and suppose that $a_p\le\epsilon_p-2$ for all $p\mid M$, that $m^7\le N\le r_*$ and that $m^7r_*\le N^4$. Then \[ |T|^2\le4^J\,42\log(3r)\,X^{\omega}\Bigl(N^{10/7}r_*^{1/7}+N^{43/21}m^{1/2}r_*^{-2/21}\Bigr). \] \end{itemize} \end{lemma} When all the coefficients $\alpha_{p,l}$ with $2\le l\le\iota+2$ are units, (i) and (ii) hold with $a_p=0$, and the first terms in (b) and (c) are, up to the factors $4^J$, the squares of the bounds of Lemma~\ref{lem:Aseries}; the second terms come from stationary points of the differenced sums, which Lemma~\ref{lem:Aseries} excludes by its hypothesis on the coefficients of lower degree. \begin{proof} By the proof of (O2) in Proposition~\ref{prop:Apairs}, applied to the single sum $T$ (before Cauchy's inequality over $c$ is used): if $M\mid B_0\le N$ and $H:=\lfloor N/B_0\rfloor$, then \begin{equation}\label{eq:Adiffone} |T|^2\le\frac{3N}{MH}\Bigl(\frac{2N}M+\sum_{0<|h|i}\binom li\alpha_{p,l}(hB_0)^{l-i}. \] By (i), for $i\ge l_0-1$ every term of $\gamma_i$ is divisible by $p^{a+j}$, and all terms but the first by $p^{a+2j}$; so $p^{a+j}\mid\gamma_i$ and $\gamma_ip^{-a-j}\equiv(i+1)\,\alpha_{p,i+1}p^{-a}\,(hB_0p^{-j})\pmod p$ for these $i$. Here $i+1\le5N$, the bound exceeds $N^2$. Otherwise $\operatorname{rad}(r_*)=M\le m\le N^{1/3}\le r_*^{1/3}$, and multiplying $M$ by prime factors of $r_*$ as long as the product is less than $r_*^{1/3}$ we obtain $B_0$ with $M\mid B_0\mid r_*$ and $r_*^{1/3}\le B_0N$, the bound exceeds $N^2$; so let $B_*X^\omega\le N$. The hypotheses give \begin{equation}\label{eq:Afacts} M\le m\le N^{1/7}\le B_*\le r_*^{4/7},\qquad mB_*\le N,\qquad MN\le B_*^2,\qquad(r_*/B_*)^{1/3}=B_*^2/N ; \end{equation} the second is $m^7r_*\le N^4$, and the third follows from $M^7N\le N^2\le r_*^2$. As in (b) there is $B_0$ with $M\mid B_0\mid r_*$ and $B_*\le B_0r_*/(B_*X^\omega)$, and $E_p:=v_p(r_0)$. We use \eqref{eq:Adiffone}. By \eqref{eq:Ashift} with $l_0=4$, the sum $T_h$ satisfies (i) and (ii) for $\iota=1$ with the numbers $a_p+j_p$ in place of $a_p$, and the corresponding number $r_*$ is \[ r_h:=\prod_{p\,:\,E_p-v_p(h)\ge2}p^{E_p-v_p(h)},\qquad\text{a divisor of }r_0 . \] We apply (a) to $T_h$ with a number $B'=MB''$, where $B''$ divides $r_h/\operatorname{rad}(r_h)$ and is chosen as follows: $B''=1$ if $r_h=1$; otherwise we multiply by prime factors, starting from $B''=1$, as long as $\operatorname{rad}(r_h)B''r_0^{2/3}X^{-\omega}$. By \eqref{eq:Afacts}, we have \[ B'\le\max\{m,(mB_*)(X^\omega B_*)/N\}\le N,\qquad12NB'/M^2\le12NB''\le12B_*^2X^\omega, \] and $R'^{1/2}\le r_0^{1/3}\le B_*^2/N$. So (a) gives \[ |T_h|^2\le\bigl(12X^\omega+4^J6(2+\log r)\bigr)B_*^2+4^J12N^2M^{1/3}\bigl(r_0^{-2/9}X^{\omega/3} +M^{1/3}r_h^{-1/3}\bigr). \] Next, we have $r_0/r_h=\prod_pp^{c_p(h)}$, where $c_p(h)=v_p(h)$ if $v_p(h)\le E_p-2$ and $c_p(h)=E_p$ otherwise. The primes with $E_p\le1$ contribute at most $M$ to this product. For the others, the condition $c_p(h)=d\ge1$ implies that $p^{\max\{d-1,1\}}\mid h$; so the sum over $0<|h|0$, with $\mathcal{E}_\iota$ as in \eqref{eq:AEcal}, one has \[ \sum_{0<|r|\le H}\mathcal{N}(r)\le c_1^JX^{\varepsilon}\Bigl(\frac{X^2}{Y^{2D-1}}+\frac{q_DX}{Y^D}\, \mathcal{E}_\iota(\tilde b)\Bigr). \] \end{lemma} \begin{proof} We indicate what changes in the proof of Lemma~\ref{lem:Acancel}. Here $Y\ge D+1\ge4$, and $Y\ge DX/(2(D+1)AB)$ and $H\gamma_p$ and $s>\rho_p+j$, and write $\gamma$, $\rho$, $f=s-j$ and $\epsilon=2s-\gamma$ as there. Detecting the third congruence by characters, and arguing as there for each of the two multipliers, we get: if $\Omega_p(\ell,\ell_2)\ne0$, then $\ell=p^\gamma\ell'$ and $\ell_2=p^\gamma\ell_2'$, there are unique $y_0,y_0'\in\mathcal{X}_p$ with $(u+1)\beta'b^{D-1}y_0^u\equiv\ell'$ and $(u+1)\beta'b'^{D-1}y_0'^u\equiv\ell_2'\pmod p$, where $\beta'=\beta p^{-\gamma}$, and \begin{equation}\label{eq:AOmtwo} \Omega_p(\ell,\ell_2)=p^{\gamma}\,\mathfrak{g}\overline{\mathfrak{g}'}\,p^{-f}\sum_{\xi\bmod p^f} e\Bigl(-\frac{\xi r}{p^f}\Bigr)e\Bigl(\frac{\Phi^{b,*}_{\xi,y_0}(\bar a_p\ell')-\Phi^{b',*}_{\xi,y_0'}(\bar a_p \ell_2')}{p^{\epsilon}}\Bigr), \end{equation} where $|\mathfrak{g}|=|\mathfrak{g}'|=1$, these two numbers do not depend on $\xi$ and depend on $\ell'$ and $\ell_2'$ only through $y_0$ and $y_0'$, and $\Phi^{\mathfrak{b},*}_{\xi,y}$ is the function $\Phi^*$ of the claim in Proposition~\ref{prop:Apairs} for the polynomial \[ \Phi^{\mathfrak{b}}_\xi(x):=\bar a_p\beta'\mathfrak{b}^{D-1}x^{u+1}+\xi b_1\mathfrak{b}^Dp^{s-\tau_p}x^u \] on the disk $y+p\mathbb{Z}_p$. In particular $|\Omega_p|\le p^\gamma$. \emph{The two dual phases.} Let $\Phi_\xi:=\Phi^{1}_\xi$ be the polynomial of the proof of Lemma~\ref{lem:Acancel}. Then $\Phi^{\mathfrak{b}}_\xi(x)=\mathfrak{b}^k\Phi_\xi(x/\mathfrak{b})$, because $k-u-1=D-1$. If $x$ is the zero of $(\Phi^{\mathfrak{b}}_\xi)'-z$ in $y+p\mathbb{Z}_p$, then $\hat x:=x/\mathfrak{b}$ is the zero of $\Phi_\xi'-\mathfrak{b}^{1-k}z$ in the disk of $\hat y:=y/\mathfrak{b}$, and therefore \[ \Phi^{\mathfrak{b},*}_{\xi,y}(z)=\mathfrak{b}^k\Phi_\xi(\hat x)-z\,\mathfrak{b}\hat x =\mathfrak{b}^k\,\Phi^*_{\xi,\hat y}\bigl(\mathfrak{b}^{1-k}z\bigr). \] For a unit $\hat y$ let $F_{\hat y}(\zeta):=\Phi^*_{\xi,\hat y}(\bar a_p\zeta)$. As in the proof of Lemma~\ref{lem:Acancel} (where the claim is now used with $N=6$), one sees that $F_{\hat y}$ is a power series with coefficients in $\mathbb{Z}_p$ on the disk of the numbers $\zeta\equiv(u+1)\beta'\hat y^u\pmod p$, and its Taylor coefficient $f_l^{\hat y}(\zeta)$ of degree $l$ at any point $\zeta$ of this disk satisfies \begin{equation}\label{eq:Atype} f_l^{\hat y}(\zeta)\equiv\upsilon_l\,\hat y^{-e_l}\pmod p\quad(2\le l\le6),\qquad e_l:=lu-u-1, \end{equation} with the numbers $\upsilon_l=-u\bar a_p\beta'((u+1)\beta')^{-l}\binom{(u+1)/u}{l}\in\mathbb{Z}_p$ of \eqref{eq:Acancel5}; they are units for $l\le5$, and $(l+1)(u+1)\beta'\upsilon_{l+1}=(\kappa_u-l)\upsilon_l$ with $\kappa_u:=(u+1)/u$. Put $\hat y:=y_0/b$ and $\hat y':=y_0'/b'$, and \[ z_1:=b^{1-k}\ell',\qquad z_2:=b'^{1-k}\ell_2',\qquad\theta:=(b'/b)^k,\qquad\mu:=b^{-k}\ell_0p^{-\gamma}, \] so that $z_1=\theta z_2+\mu$ with $v_p(\mu)=\rho$, and $z_2\equiv(u+1)\beta'\hat y'^u$ is a unit. The phase in \eqref{eq:AOmtwo} is \begin{equation}\label{eq:Aphase} b^k\bigl(F_{\hat y}(\theta z_2+\mu)-\theta F_{\hat y'}(z_2)\bigr). \end{equation} \emph{Taylor coefficients along the line.} If $z_2$ is replaced by $z_2+\sigma w$ with a unit $\sigma$, the coefficient of $w^l$ in \eqref{eq:Aphase} is $b^k\sigma^l\theta\,\Gamma_l$, where \[ \Gamma_l:=\theta^{l-1}f_l^{\hat y}(z_1)-f_l^{\hat y'}(z_2). \] We claim: \emph{there is an integer $a$ with $0\le a\le\rho$, depending only on $p$, $b$, $b'$, $r$, $g$ and on $z_2$ modulo $p$, such that $p^a\mid \Gamma_l$ for all $l\ge1$, and such that for each $l\in\{2,3,4\}$ one of $\Gamma_lp^{-a}$ and $\Gamma_{l+1}p^{-a}$ is a unit.} \emph{Case A:} $\hat y\not\equiv\hat y'\pmod p$. Take $a:=0$. By \eqref{eq:Atype}, we have $\Gamma_l\equiv\upsilon_l(\theta^{l-1}\hat y^{-e_l}-\hat y'^{-e_l})$ for $2\le l\le5$. If $\Gamma_l\equiv \Gamma_{l+1}\equiv0$ for some $l\in\{2,3,4\}$, then, as $e_{l+1}=e_l+u$, division gives $\theta\equiv(\hat y/\hat y')^u$, and then the first congruence says that $(\hat y/\hat y')^{u(l-1)-e_l}=\hat y/\hat y'\equiv1$, a contradiction. \emph{Case B:} $\hat y\equiv\hat y'\pmod p$. Then $F_{\hat y}=F_{\hat y'}=:F$, with Taylor coefficients $f_l$, and $\Delta:=z_1-z_2=(\theta-1)z_2+\mu$ is divisible by $p$. From the Taylor expansion of $f_l$, we get \begin{equation}\label{eq:AGl} \Gamma_l=(\theta^{l-1}-1)f_l(z_2)+\theta^{l-1}\bigl((l+1)f_{l+1}(z_2)\Delta+\Delta^2R_l\bigr),\qquad R_l\in\mathbb{Z}_p . \end{equation} Let $a_1:=v_p(\theta-1)\in[0,\infty]$. By \eqref{eq:AGl}, the number $p^{\min\{a_1,v_p(\Delta)\}}$ divides every $\Gamma_l$. \begin{itemize} \item[(B0)] $a_1=0$. Take $a:=0$. Then $\Gamma_l\equiv(\theta^{l-1}-1)f_l(z_2)\pmod p$, and $f_l(z_2)$ is a unit for $l\le5$; if $\Gamma_l\equiv \Gamma_{l+1}\equiv0$, then $\theta^{l-1}\equiv\theta^l\equiv1$, hence $\theta\equiv1$, a contradiction. \item[(B1)] $1\le a_1<\rho$. Take $a:=a_1$, and write $\theta=1+p^a\tilde\theta$. Then $\Delta\equiv p^a\tilde\theta z_2$ and $\theta^{l-1}-1\equiv(l-1)p^a\tilde\theta\pmod{p^{a+1}}$, so that, by \eqref{eq:Atype} and the relation between $\upsilon_l$ and $\upsilon_{l+1}$, \[ \Gamma_lp^{-a}\equiv\tilde\theta\bigl((l-1)f_l(z_2)+(l+1)z_2f_{l+1}(z_2)\bigr)\equiv\tilde\theta\,\upsilon_l\hat y^{-e_l} \bigl(l-1+\kappa_u-l\bigr)=\tilde\theta\,\upsilon_l\hat y^{-e_l}/u, \] a unit for $l\le5$. \item[(B2)] $\rhoG_0$, at most $4ZHd(A)d(q_D)/G_0$ in number, we use \eqref{eq:AKtriv}. With $\mathcal{N}(r)\le\frac{\pi^2}{4Z}\sum_g|K_r(g)|$ it follows that the terms with $g\ne0$ contribute at most \[ c_6^JX^{\varepsilon}H\Bigl(X^{1+\omega/2}\operatorname{rad}(q_D)\bigl(X^{\varkappa}L^{-(\iota+1)\varkappa} \mathfrak{j}^{\,1+2(\iota+1)\varkappa}\tilde b^{\,-1+(\iota+2)\varkappa}+\mathfrak{s}_\iota(\tilde b)\bigr) +\frac{X\mathfrak{j}}{\tilde bG_0}+\frac{X^2\mathfrak{j}^2}{A^2}\Bigr), \] and $X\mathfrak{j}/(\tilde bG_0)=\frac12X\mathfrak{j}^2N_\iota(\tilde b)^{1/2}(L\tilde b)^{-1/2}$. This is $2c_6^JX^\varepsilon(q_DX/Y^D)\,\mathcal{E}_\iota(\tilde b)$. \end{proof} \begin{lemma}[prime multipliers with cancellation]\label{lem:Amultc} Let $3\le D\le k-2$, let $B\ge2$ and $Y:=\lfloor X/(2AB)\rfloor$, let $\mathfrak{j}$ and $L$ be as in Lemma~\ref{lem:Acancel}, and suppose that $(2D+2)AB\le X$, that $B\le q_D\le X/B$, that $m^{14}\le X$, and that every prime factor of $m$ lies in $(3k,X^\omega]$, where $0<\omega\le1$. Let $\mathcal{P}$ be the set of the primes in $[B,2B)$ that do not divide $m$, and suppose that $\#\mathcal{P}\ge B/(4\log2B)$. Let $\iota\in\{1,2\}$ and $\varkappa:=\varkappa_\iota$. Then, for every $\varepsilon>0$, \begin{multline*} \mathcal{S}\ll X^{1+\varepsilon}\biggl(\frac1{BX}+\frac{q_{D-1}}{Y^{D-1}q_D^3}+\frac1B\Bigl(\frac1{q_{D-1}}+ \frac{q_{D-1}}{Y^{D-1}Xq_D^2}+\frac1{Y^{D-1}q_D}\Bigr)\\ +\frac1{Y^{2D-1}}+\frac{q_D}{Y^DX}\,\mathcal{E}_\iota(B)\biggr)^{\frac1{D(D+1)}}, \end{multline*} with $\mathcal{E}_\iota$ as in \eqref{eq:AEcal}. The implied constant is at most $c(k,\varepsilon)^J$. \end{lemma} The first five terms are those of Lemma~\ref{lem:Amult}, but the hypothesis $4q_D0$ and $\varepsilon\le\beta\le1-U_1-\vartheta-\varepsilon$, and suppose that $J\le X^{\varepsilon/2}$. Let $G_1$ and $G_3$ be as in Corollary~\ref{cor:Amult}, and \begin{align*} E_5'&:=D+1-U+\varkappa\bigl((\iota+1)(2U_1-1)-1\bigr)-\bigl(D-1+(\iota+2)\varkappa\bigr)\beta\\ &\qquad-\bigl(D+1+2(\iota+1)\varkappa D\bigr)\vartheta,\\ E_6'&:=(2D-1)(1-U_1-\vartheta-\beta),\\ E_7&:=\begin{cases}D+1-U+\frac29U_1-(D-1)\beta-\bigl(\frac{11}9D+\frac76\bigr)\vartheta&(\iota=1),\\[2pt] D+1-U+\frac1{42}(2U_1+1)-(D-1)\beta-\bigl(\frac{22}{21}D+\frac54\bigr)\vartheta&(\iota=2), \end{cases}\\ E_8&:=\begin{cases}D+1-U+U_1-\frac12-\bigl(D-\frac12\bigr)\beta-\bigl(2D+\frac32\bigr)\vartheta&(\iota=1),\\[2pt] D+1-U+U_1-\frac23-\bigl(D-\frac13\bigr)\beta-\bigl(2D+\frac76\bigr)\vartheta&(\iota=2),\end{cases}\\ E_9&:=D-U+2U_1-D\beta-2D\vartheta . \end{align*} Then $\mathcal{S}\ll X^{1+2\varepsilon+\omega-\varrho}$ with $\varrho:=\min\{1+\beta,G_1,G_3,E_5',E_6',E_7,E_8,E_9\}/(D(D+1))$, and the implied constant is at most $c(k,\varepsilon)^J$. \end{corollary} \begin{proof} Let $B:=X^\beta$, and let $G_2:=2U_1+\beta-(D-1)\vartheta$ be as in Corollary~\ref{cor:Amult}. As $2U_1\ge1+(D-1)\vartheta$, we have $G_2\ge1+\beta$ and $U_1-D\vartheta\ge1-U_1-\vartheta\ge\beta+\varepsilon$. As in the proof of Corollary~\ref{cor:Amult}, for $X\ge X_0(k,\varepsilon)$ the hypotheses of Lemma~\ref{lem:Amultc} hold: one has $(2D+2)AB\le(2D+2)X^{U_1+\vartheta+\beta}\le X$ and $B\le X^{U_1-D\vartheta}\le q_D\le X^{U_1}\le X/B$, while $m^{14}\le X$ (as $\vartheta\le\frac1{24}$), and $\#\mathcal{P}\ge B/(4\log2B)$. We have $Y\ge X/(3AB)\ge\frac13X^{1-U_1-\vartheta-\beta}$, $L\ge\frac14X^{2U_1-1}$, $A\ge X^{U_1}$ and $\mathfrak{j}\le m^D$, and, as in the proof of Corollary~\ref{cor:Acancel}, \[ \frac{q_D}{Y^DX}\le\frac{3^D}{\mathfrak{j}}\,X^{U-D-1+D\beta}\prod_{p\mid m}p^{j_p}. \] The first six terms of Lemma~\ref{lem:Amultc} are $\ll X^{-E}$ with $E$ equal to $1+\beta$, $G_1$, $G_2\ge1+\beta$, $G_3$, $G_1+\beta+D\vartheta\ge G_1$ and $E_6'$. In the product of the last display with a member of $\mathcal{E}_\iota(B)$ that contains $\operatorname{rad}(q_D)\mathfrak{j}^{1+\theta}$, the prime $p$ occurs with the exponent $j_p+\theta\min\{j_p,s_p\}$, and with $1$ more if $s_p>j_p$, hence with at most $D+1+\theta D$, by the remarks that follow \eqref{eq:Ajp}; in the product with $\mathfrak{j}^2$ it occurs with at most $2D$. Counting exponents, we find that the four members give $\ll X^{-E+\omega/2}$ with $E$ equal to $E_5'$, $E_7$, $E_8$ and $E_9$, respectively. \end{proof} For $\vartheta=0$ the condition $E_5'\ge1+\beta$ reads \begin{equation}\label{eq:Abetacond} \bigl(D+(\iota+2)\varkappa_\iota\bigr)\beta\le D-U+\eta_{D,\iota}(U), \end{equation} with the numbers $\eta_{D,\iota}$ of \eqref{eq:Aeta}, in place of the condition $D\beta\le D-U$ of Corollary~\ref{cor:Amult}; and $E_6'\ge1+\beta$ reads $2D\beta\le(2D-1)(1-U_1)-1$. So the multipliers now give a saving larger than $1/(D(D+1))$ also for $U\ge D$, essentially up to the point at which $U-D=\eta_{D,\iota}(U)$; the saving for $\vartheta=0$ is described in \S\ref{ss:Around}, after \eqref{eq:Alimit}. \subsection{The saving function, rounding, and chains}\label{ss:Around} In Lemma~\ref{lem:saving} each estimate of \S\ref{s:exp} is assigned to a fixed range of $U$, and the losses that are caused by the rounding of moduli are majorised by the common factor $1-\eta_k(\theta)$. This is convenient but wasteful. For example, Lemma~\ref{lem:Agreedy} saves the exponent $\varrho=(j+2-U)/(2^{j+2}-2)$ in the range of $U$ in which Lemma~\ref{lem:vdc}(ii) saves $\varrho-\frac12\vartheta$, whereas Lemma~\ref{lem:saving} uses $\varrho-\kappa(\theta)\vartheta\varrho$; and the conditions of Definition~\ref{def:round} only serve to make every estimate applicable throughout the range assigned to it. We now let the estimates compete. \begin{definition}\label{def:Asaving} Let $k\ge5$. For $U>1$ and $\vartheta\ge0$ let $\varsigma^\star(U,\vartheta)$ denote the largest of the following numbers, a number being admitted only when the conditions stated with it hold: \begin{enumerate} \item[\textup{(a)}] $0$ and $1-\frac12U$; \item[\textup{(b)}] $\mathfrak{s}_j(U,\vartheta)$, with $\mathfrak{s}_j$ as in \eqref{eq:Agreedy}, for the integers $j$ with $1\le j\le k-2$; \item[\textup{(c)}] $\min\{1,E_1,E_2,E_3,E_4\}/(D(D+1))$, with $E_1,\dots,E_4$ as in Corollary~\ref{cor:Amv}, for integers $D$ with $3\le D\le k-1$ and $U/(D+1)+\vartheta<1$; \item[\textup{(d)}] for each word $w\in\mathcal{W}$ that is admissible for $k$, provided that $\vartheta\le\vartheta_w$ and $U\ge1+c_w\vartheta$, with $c_w$ and $\vartheta_w$ as in \eqref{eq:Acw}: the number $1-\lambda_w-\kappa_w(U-1)-\frac12\vartheta$, and, if $\kappa_w(k-E_w+1)\ge1$, also the number \[ 1-\lambda_w-\kappa_w(U-1)-\frac{(k\vartheta-U)^+}{2(k-E_w+1)},\qquad\text{where }x^+:=\max\{x,0\}; \] \item[\textup{(e)}] for integers $D$ with $3\le D\le k-1$ and $\beta_D^*\ge0$, with $\beta_D^*$ as in Corollary~\ref{cor:Amult}: the number \[ \max_{0\le\beta\le\beta_D^*}\ \frac{\min\{1+\beta,G_1,G_2,G_3,E_3,E_4\}}{D(D+1)}, \] with $G_1$, $G_2$, $G_3$ as in Corollary~\ref{cor:Amult} (they depend on $\beta$) and $E_3$, $E_4$ as in Corollary~\ref{cor:Amv}; \item[\textup{(f)}] for integers $D$ with $3\le D\le k-2$ and for $\iota\in\{1,2\}$, provided that $U\ge D-\frac12$, that $U/(D+1)+\vartheta<1$ and that $(D+3)\vartheta\le\frac14$: the number \[ \frac{\min\{1,E_1,E_2,E_5,E_6\}}{D(D+1)}, \] with $E_1$, $E_2$ as in Corollary~\ref{cor:Amv} and $E_5$, $E_6$ as in Corollary~\ref{cor:Acancel} (of these, the number $E_5$ depends on $\iota$); \item[\textup{(g)}] for integers $D$ with $3\le D\le k-2$ and for $\iota\in\{1,2\}$, provided that $(D+3)\vartheta\le\frac14$, that $U/(D+1)+\vartheta\le1$ and that $2U\ge(D+1)(1+(D-1)\vartheta)$: the number \[ \max_{0\le\beta\le1-U/(D+1)-\vartheta}\ \frac{\min\{1+\beta,G_1,G_3,E_5',E_6',E_7,E_8,E_9\}}{D(D+1)}, \] with $G_1$, $G_3$ as in Corollary~\ref{cor:Amult} and $E_5',\dots,E_9$ as in Corollary~\ref{cor:Amultc} (they depend on $\beta$, and $E_5'$, $E_7$ and $E_8$ on $\iota$). \end{enumerate} Further let \begin{gather*} \sigma_k(\theta):=\inf\{\varsigma^\star(U,\theta/k):\ 1\varsigma_D^{\mathcal{M}}(D)$; and for $D\ge4$ one has $\varsigma_{D-1}^{\mathcal{M}}(D)=1/(D(D+1))$ and \[ \varsigma_{D-1}^{\mathcal{Q}}(D)=\frac{\eta_{D-1}(D)}{(D-1)D}=\frac1{6(D-1)D}\le\frac1{D(D+1)} . \] On the stated interval, the expression $(6-U)/36$ is the function $\omega_3$ of \eqref{eq:Amultlim}. Moreover $\varsigma_D^{\mathcal{M}}$ agrees with $\omega_{D+1}$ for $U\ge\frac23(D+2)$, that is, on all of $[D,D+1]$ when $D\ge4$. The number $\varsigma_D^{\mathcal{Q}}(U)$ is the saving of Corollary~\ref{cor:Acancel} with the better of the two choices of $\iota$ (see the remarks that follow that corollary); it is constant up to the point at which $U-D=\eta_D(U)$. Similarly, the number $\omega_D^\sharp(U)$ is the saving of Corollary~\ref{cor:Amultc} for $\vartheta=0$ with the better choice of $\iota$ and the best choice of $\beta$, when this saving is at least $1/(D(D+1))$: for $\vartheta=0$ the conditions $X\ge1+\beta$, for the terms $X=G_1,E_6',E_5',E_7,E_8,E_9$ of (g) of Definition~\ref{def:Asaving}, say that $\beta$ does not exceed the corresponding number in \eqref{eq:Abetasharp} (see the proof of Lemma~\ref{lem:Alimit}). The six numbers decrease as $U$ increases, and $\beta_D^\sharp(U)>\beta_D(U)$ on an interval that contains $D$ in its interior; this is where the multipliers of Lemma~\ref{lem:Amultc} improve on those of Lemma~\ref{lem:Amult}. For instance, one has $\omega_3^\sharp(U)=(168-25U)/1104$ for $\frac{48}{17}\le U\le\frac{76}{25}$ and $\omega_4^\sharp(U)=(35-4U)/375$ for $\frac{40}{11}\le U\le\frac{65}{16}$, from the third number with $\iota=2$; on these intervals $\varsigma^\star=\omega_3^\sharp$ and $\varsigma^\star=\omega_4^\sharp$. For $D\ge6$ the third number with $\iota=1$ is the least one near $U=D$, so that $\beta_D^\sharp(D)=(D-3)/(3(D+1)(2D+1))$, and $\beta_D^\sharp$ vanishes at the point $(D+1)(6D-3)/(6D+2)$, at which $U-D=\eta_{D,1}(U)$; thus $\varsigma^\star$ exceeds $1/(D(D+1))$ up to this point, which lies between $D$ and $D+\frac16$. \begin{lemma}\label{lem:Alimit} Let $k\ge5$. \textup{(i)} The function $\varsigma^\star$ of \eqref{eq:Alimit} is continuous and nonincreasing. \textup{(ii)} For $U>1$ one has $\varsigma^\star(U,0)\le\varsigma^\star(U)$, with equality when $U\le k-2$. \textup{(iii)} For $\vartheta=0$ the exponents saved by Lemma~\textup{\ref{lem:mv}}, and by Lemma~\textup{\ref{lem:vdc}(ii)} with $j\ge4$, do not exceed $\varsigma^\star(U)$. Consequently $\varsigma\le\varsigma^\star$. \end{lemma} \begin{proof} Part~(i) follows from \eqref{eq:Alimit}, Table~\ref{tab:Awords} and the remarks just made, for the function $\varsigma^\star_\circ$ that is defined by \eqref{eq:Alimit} without the numbers $\omega_{D'}^\sharp$; in the last line of \eqref{eq:Alimit} each of the functions $D+1-U+\eta_{D,\iota}(U)$ has the slope $-1+2(\iota+1)\varkappa_\iota/(D+1)<0$. The function $\omega_D^\sharp$ is nonincreasing and continuous, except at the points where $\beta_D^\sharp$ vanishes or where $U=\frac12(D+1)$, at which it falls to $0$. At a point $U\ge D$ where $\beta_D^\sharp(U)=0$ one has $D+1-U+\eta_{D,\iota}(U)\ge1$ for some $\iota$, by the third number in \eqref{eq:Abetasharp}, so that $\varsigma^\star_\circ(U)=1/(D(D+1))=\omega_D^\sharp(U)$; and for $D\ge3$ one has $\beta_D^\sharp(U)>0$ for $\frac12(D+1)\le U\le D$, while for $U\ge D+1$ the second number is negative. Further, we have \[ \omega_{D+1}^\sharp(D)\le\frac{1+7/(6(D+1))}{(D+1)(D+2)}<\frac1{D(D+1)}, \] by the third number in \eqref{eq:Abetasharp}, as $\eta_{D+1,\iota}\le\frac16$ on $[D,D+2]$. Since for $U-11$ the first term of the minimum in the definition of $\mathfrak{s}_j$ is at least $2^{-j-1}$, so that the number in (b) that belongs to $j$ is $\min\{\varrho_j,2^{-j-1}\}$ with $\varrho_j:=(j+2-U)/(2^{j+2}-2)$, as far as it is positive; it equals $\varrho_j$ for $U\ge j+2^{-j}$, and the value $2^{-j-1}$ of $\varrho_j$ at $j+2^{-j}$ for $UD'$, because then the number in (f) that belongs to $D'$ and $\iota$ is admitted and is at least as large, as $1\le E_1$, $G_1=E_2$, $E_5'=E_5$ and $E_6'=E_6$ for $\beta=0$. In the first case the number is at most $\omega_{D'}^\sharp(U)$. Let $U\ge4$, and let $D\ge4$ be an integer with $D\le U\le D+1$. For $D'\in\{D,D+1\}$ the number $\omega_{D'}^\sharp(U)$ occurs in \eqref{eq:Alimit}. If $D'\le D-1$, the first case occurs only if $U=D'+1$, and then the second number in \eqref{eq:Abetasharp} is negative. Let $D'=D+j$ with $j\ge2$. As $\eta_{D',\iota}(U)\le\eta_{D',\iota}(D'+1)\le\frac16$, the third number in \eqref{eq:Abetasharp} is at most $(D'-U+\frac16)/D'$, so that \[ \omega_{D'}^\sharp(U)\le f(U):=\frac{2D'-U+\frac16}{D'^2(D'+1)} . \] On $[D,D+1]$ the function $\varsigma^\star$ is at least the larger of \[ g_1(U):=\frac{D+1-U}{D(D+1)}\qquad\text{and}\qquad g_2(U):=\omega_{D+1}(U), \] as $\eta_D(U)\ge0$. The two lines meet at the point \[ U_c:=D+1-\frac{D(D+1)}{D^2+2D+2}, \] where both equal $1/(D^2+2D+2)$. For $j=2$ the inequality $f\le\max\{g_1,g_2\}$ holds at $U=D$, at $U=U_c$ and at $U=D+1$, where it reads, after multiplication by the denominators, \begin{gather*} (D+\tfrac{25}6)D(D+1)\le(D+2)^2(D+3),\\ (2D+4-U_c+\tfrac16)(D^2+2D+2)\le(D+2)^2(D+3),\\ (D+\tfrac{19}6)(D+1)\le(D+2)(D+3), \end{gather*} and the middle one follows from $U_c\ge D$ and $(D+\frac{25}6)(D^2+2D+2)\le(D+2)^2(D+3)$; as $f$ is linear and $\max\{g_1,g_2\}$ is convex and piecewise linear with the single corner $U_c$, the inequality holds on $[D,D+1]$. For $j\ge3$ it suffices that $f(D)\le g_2(D+1)=1/((D+1)(D+2))$, that is, that $(D+2j+\frac16)(D+1)(D+2)\le(D+j)^2(D+j+1)$; this holds for $j=3$, and the right hand side grows faster with $j$. For $U<4$ and $D'\ge12$ the number is at most $2/(D'(D'+1))<\frac1{20}\le\varsigma^\star(U)$. Hence for $U\ge4$ the numbers in (g) do not exceed $\varsigma^\star(U)$, and $\omega_D^\sharp(U)$ and $\omega_{D+1}^\sharp(U)$ are attained when the degrees $D$ and $D+1$ are admitted in (g), that is, when $D\le k-3$. A comparison of the linear functions of (d), for the $133$ words of $\mathcal{W}$, with each other, with $\varsigma^\circ$, with the linear pieces of $\omega_{D'}$ on $[\frac12(D'+1),D']$ and of $\omega^\flat_{D'}$ on $[1,\frac12(D'+1)]$ for $3\le D'\le11$, with the linear pieces of the numbers in (f) on $[D'-\frac12,D'+1]$ and of the numbers in (g) on $[\frac12(D'+1),D'+1]$ for $3\le D'\le11$, in rational arithmetic on the range $1\le U\le10$, shows that the largest of all these numbers is $\varsigma^\star(U)$, for $1\le U\le10$, and that the words outside Table~\ref{tab:Awords} may be omitted from this maximum. The end points in Table~\ref{tab:Awords} are the points at which adjacent functions agree, and every number $1-\lambda_w-\kappa_w(U-1)$ is negative for $U>\frac{19}2$ (the program of \S\ref{ss:numerics} carries out this comparison). For $U\ge4$ what has been shown suffices. As the $43$ words of Table~\ref{tab:Awords} are admissible for every $k\ge5$ (none of them begins with three letters $A$), as the degree $D'=3$ that gives $\omega_3$ and $\omega_3^\sharp$ is at most $k-2$, and as for $3\le U\le k-2$ the integer $D$ in the last line of \eqref{eq:Alimit} can be taken with $D\le k-3$, this proves (ii). (iii) Let $4\le D'\le k-1$ and $U\frac{11}{10}$. For $0p_{D+1}$ implies $\beta_{D+1}^\sharp(U)>0$, so that $U-(D+1)<\eta_{D+1,\iota}(U)\le\frac16$ for some $\iota$. As each number in \eqref{eq:Abetasharp} decreases as $U$ increases, the number $\Theta_{D+1}^\sharp(t)$ is the larger, over $\iota\in\{1,2\}$, of the least of the six values of $U$ at which these numbers, with $D+1$ in place of $D$, equal $(D+1)(D+2)t-1$; in particular $\Theta_{D+1}^\sharp(t)\le\max\{\phi_{D+1,1}^\sharp(t),\phi_{D+1,3}^\sharp(t)\}$. For $3\le D\le14$ the pieces of $\theta^\star$ on $(p_{D+1},p_D]$ are listed in Table~\ref{tab:Abands}. For $D\ge15$ one has $p_{D+1}\frac{41}{191}$ the pieces are the inverses of the lines of the $B$-led words of Table~\ref{tab:Awords}, and $2-2t$ for $t\ge\frac9{20}$), so that $\theta^\star(t)+t$ is decreasing. As $\theta^\star(\frac{41}{191})=\frac{341}{191}$, it follows that $\theta^\star(t)>2-t$ for $t<\frac{41}{191}$ and $\theta^\star(t)<2-t$ for $t>\frac{41}{191}$; that is, one has $2/\theta^\star(2u)<1/(1-u)$ for $u<\frac{41}{382}$, with the opposite inequality for $u>\frac{41}{382}$. So the constant is least for $z_0=\frac{41}{382}$, where it equals $C_0^\star$. A change of regime at $z_0=\frac1{10}$, as in \S\ref{s:pot}, would give $2+\log9+2\int_0^{1/5}\mathrm{d}t/(t\,\theta^\star(t))=6.220804\ldots$ instead. In the potentials below the change of regime is made at a point $z_0<\frac{13}{120}$ (Lemma~\ref{lem:Apot}), so that Lemma~\ref{lem:iter} is applied with $W\le X^{1/9}$. \begin{lemma}\label{lem:Asaving} Let $k\ge5$. \textup{(i)} Let $p_1(k)$ be the largest of $3k$ and of the numbers $p_1$ of Proposition~\textup{\ref{prop:Apairs}} for the words of $\mathcal{W}$ that are admissible for $k$. In the situation of \S\ref{s:exp}, let $0<\omega<1/k$, and suppose that $m\le X$ and that every prime factor of $m$ lies in $(p_1(k),X^\omega]$. Then $\mathcal{S}\ll X^{1-\varsigma^\star(U,\vartheta)+10\omega+\varepsilon}$ for every $\varepsilon>0$, with an implied constant at most $c(k,\varepsilon)^J$, where $c(k,\varepsilon)$ depends on $k$ and $\varepsilon$ only. \textup{(ii)} The function $\varsigma^\star$ is nonincreasing in $\vartheta$ and upper semicontinuous, and $\varsigma^\star\le\frac12$. The function $\sigma_k$ is nonincreasing and left-continuous on $[1,\frac12k]$. \textup{(iii)} For $\frac32\le\theta\le\min\{\frac94,\frac k2\}$ one has $\sigma_k(\theta)\ge\frac16(3-\theta)$. Moreover $\frac18\le\sigma_k(\frac94)\le\frac{271}{1944}$, so that $\theta_k(t)\ge\frac94$ for $01$, and let $1\frac32$, then $\frac14(U-\vartheta)\ge\frac14$ and $\frac12(1-\vartheta)\ge\frac14\ge\frac16(3-U)$, so that $\mathfrak{s}_1(U,\vartheta)=\frac16(3-U)\ge\frac16(3-\theta)$. This proves the first assertion, which gives $\sigma_k(\frac94)\ge\frac18$, as $\frac94\le\frac12k$. By (ii) and Lemma~\ref{lem:Alimit}(ii), we have $\sigma_k(\frac94)\le\varsigma^\star(\frac94,\frac9{4k})\le\varsigma^\star(\frac94,0)\le\varsigma^\star(\frac94)$, and this is $\frac{271}{1944}$, the value at $\frac94$ of the line of the word $ABAABAAA$ (Table~\ref{tab:Awords}). The last assertion follows from the definition of $\theta_k$. \end{proof} Lower bounds for $\theta_k$ are obtained from the following lemma, in which the estimates are arranged in a chain. Its last two parts concern the end point $v/(1-\theta_k(2v)/k)$ of a step that begins at $v$ (see \S\ref{ss:Arec}). \begin{lemma}[chains]\label{lem:Achain} Let $k\ge5$ and $t>0$, and let $0\le\vartheta\le\frac12$. Let $\mathcal{I}_0:=(1,2-2t]$; for integers $j$ with $1\le j\le k-2$ and $2^{j+1}t\le1$ let \[ \mathcal{I}_j:=\bigl[\,j\vartheta+2^{j+1}t,\ j+2-(2^{j+2}-2)t\,\bigr]; \] and for integers $D$ with $3\le D\le k-1$ and $t_D:=D(D+1)\,t\le1$ let $\mathcal{T}_D:=[l_D,r_D]$ (we call these intervals \emph{tents}), where \begin{align*} l_D&:=\tfrac12(D+1)\bigl(t_D+(D-1)\vartheta\bigr),\\ r_D&:=\min\Bigl\{\frac{(D+1)\bigl(D-1-t_D-(2D-1)\vartheta\bigr)}{D-2},\ (D+1)\Bigl(1-\frac{t_D+(3D-1)\vartheta}{2D-2}\Bigr),\\ &\hspace{5em}D+1-t_D-D\vartheta\Bigr\}. \end{align*} For integers $D$ with $3\le D\le k-1$ let $\mathcal{M}_D:=[(D+1)\mu_D^-,(D+1)\mu_D^+]$, where, with $T:=D(D+1)\,t$, \begin{align*} \mu_D^-&:=\max\Bigl\{T-1+D\vartheta,\ D\vartheta,\ T-\frac{D-1}D+(D+1)\vartheta,\ \frac{D(T-1+D\vartheta)}{D-1},\\ &\hspace{4em}\frac{T+(2D-1)\vartheta}3,\ \frac{(D-1)T-D+(D^2-D+1)\vartheta}{D-3}\Bigr\},\\ \mu_D^+&:=\min\Bigl\{\frac{2D-2-DT-(3D-1)\vartheta}{D-2},\ 2-T-\frac{(2D-1)\vartheta}{D-1},\ \frac{D(2-T-\vartheta)}{D+1},\\ &\hspace{4em}\frac{D-1-T-(3D-1)\vartheta}{D-2},\ \frac{D-T-(2D-1)\vartheta}{D-1},\ \frac{D(1-\vartheta)}{D+1},\\ &\hspace{4em}1-\frac{T+(3D-1)\vartheta}{2D-2},\ 1-\frac{T+D\vartheta}{D+1}\Bigr\}; \end{align*} for $D=3$ the last term of $\mu_3^-$ is omitted, and $\mathcal{M}_3:=\emptyset$ if $2T+7\vartheta>3$. For integers $D$ with $3\le D\le k-2$ and $t_D\le1$, and for $\iota\in\{1,2\}$, let $\mathcal{Q}_{D,\iota}:=[\max\{l_D,D-\frac12\},r^{\mathcal{Q}}_{D,\iota}]$ if $(D+3)\vartheta\le\frac14$, and $\mathcal{Q}_{D,\iota}:=\emptyset$ otherwise, where, with $\varkappa:=\varkappa_\iota$, \begin{align*} r^{\mathcal{Q}}_{D,\iota}:=\min\Bigl\{&\frac{(D+1)\bigl(D-1-t_D-(2D-1)\vartheta\bigr)}{D-2},\ (D+1)\Bigl(1-\vartheta-\frac{t_D}{2D-1}\Bigr),\\ &\frac{(D+1)\bigl(D+1-(\iota+2)\varkappa-t_D-(D+1+2(\iota+1)\varkappa D)\vartheta\bigr)}{D+1-2(\iota+1)\varkappa}\Bigr\}. \end{align*} For integers $D$ with $3\le D\le k-2$ and for $\iota\in\{1,2\}$ let $\mathcal{N}_{D,\iota}:=[l^{\mathcal{N}}_D, r^{\mathcal{N}}_{D,\iota}]$ if $(D+3)\vartheta\le\frac14$, and $\mathcal{N}_{D,\iota}:=\emptyset$ otherwise, where $l^{\mathcal{N}}_D:=\frac12(D+1)(1+(D-1)\vartheta)$ and $r^{\mathcal{N}}_{D,\iota}$ is the least of the fourteen numbers \[ \frac{x_0+x_\beta L+x_\vartheta\vartheta-T}{-x_U}\qquad(L\in\{0,T-1\}), \] one pair for each of the seven terms $x_0+x_UU+x_\beta\beta+x_\vartheta\vartheta$ of the minimum in (g) of Definition~\ref{def:Asaving} other than $1+\beta$, that is, for $G_1$, $G_3$, $E_5'$, $E_6'$, $E_7$, $E_8$ and $E_9$ with this $D$ and $\iota$. Further, for integers $J$ with $0\le J\le k-2$ and $2^{J+1}t\le1$ put $R_J(t):=J+2-(2^{J+2}-2)t$. Finally, for each word $w\in\mathcal{W}$ that is admissible for $k$, if $\vartheta\le\vartheta_w$, put $P_w:=1-\lambda_w+\kappa_w$ and $(\gamma_1,\delta_1):=(\kappa_w,\frac12)$, and, if $c:=k-E_w+1$ satisfies $\kappa_wc\ge1$, put $(\gamma_2,\delta_2):=(\kappa_w-\frac1{2c},\frac k{2c})$; for the indices $\nu$ for which $(\gamma_\nu,\delta_\nu)$ is defined let \[ \mathcal{P}_{w,\nu}:=\bigl[1+c_w\vartheta,\ R_{w,\nu}(t)\bigr],\qquad\text{where}\quad R_{w,\nu}(t):=\frac{P_w-t-\delta_\nu\vartheta}{\gamma_\nu}. \] \textup{(i)} A number $U$ with $11$, then $\sigma_k(\theta)\ge t$ if and only if the intervals cover $(1,\theta]$. \textup{(ii)} Let $J$ be as above. Then $\mathcal{I}_0\cup\dots\cup\mathcal{I}_J\supseteq(1,R_J(t)]$. \textup{(iii)} Let $\theta:=k\vartheta>1$. Let $\mathcal{J}_0$ be either $(1,R_J(t)]$, for some $J$ as above, or an interval $\mathcal{P}_{w,\nu}$ with $c_w=0$, and let $\mathcal{J}_1,\dots,\mathcal{J}_m$ $(m\ge0)$ be intervals of the kinds $\mathcal{P}_{w,\nu}$, $\mathcal{T}_D$, $\mathcal{M}_D$, $\mathcal{Q}_{D,\iota}$ and $\mathcal{N}_{D,\iota}$ (as far as they are defined). Suppose that for $1\le i\le m$ the left end point of $\mathcal{J}_i$ does not exceed the right end point of $\mathcal{J}_{i-1}$, and that $\theta$ does not exceed the right end point of $\mathcal{J}_m$. Then $\sigma_k(\theta)\ge t$, and consequently $\theta_k(t)\ge\theta$. We call such a sequence a \emph{chain}. \textup{(iv)} Fix the types of the intervals of a chain, that is, the numbers $J$, the words $w$ and indices $\nu$, the degrees $D$ of the tents and of the intervals $\mathcal{M}_D$, and the pairs $(D,\iota)$ of the intervals $\mathcal{Q}_{D,\iota}$ and $\mathcal{N}_{D,\iota}$, in their order, and suppose that no interval $\mathcal{Q}_{D,\iota}$ follows directly upon an interval $(1,R_J(t)]$. Then each of the conditions on $\vartheta$ in \textup{(iii)}, together with the conditions $\vartheta\le\vartheta_w$ for the intervals $\mathcal{P}_{w,\nu}$, the conditions $(D+3)\vartheta\le\frac14$ for the intervals $\mathcal{Q}_{D,\iota}$ and $\mathcal{N}_{D,\iota}$, and the condition $2T+7\vartheta\le3$ if $\mathcal{M}_3$ occurs, is equivalent to a finite set of conditions of the form $\vartheta\le a_1-a_2t$ with real numbers $a_1$ and $a_2\ge0$ that do not depend on $t$ and $\vartheta$. Let $\hat\theta(t)$ be the smaller of $\frac12k$ and $k$ times the least of the numbers $\min\{a_1,1\}-a_2t$ that belong to these conditions. Then $\theta_k(t)\ge\hat\theta(t)$ for every $t>0$ for which the types are admissible, that is, for which $2^{J+1}t\le1$ for the numbers $J$ and $t_D\le1$ for the tents $\mathcal{T}_D$ and the intervals $\mathcal{Q}_{D,\iota}$ that occur. On every interval of such numbers $t$ the function $\hat\theta$ is concave, piecewise linear and nonincreasing, and $t\mapsto t/(1-\hat\theta(t)/k)$ is positive and nondecreasing. \textup{(v)} Let $\mathcal{I}$ be such an interval, and let $00$, the number $0$ in (a) of Definition~\ref{def:Asaving} is irrelevant, and it suffices to show that each interval of the list is the set of the numbers $U>1$ at which one of the other numbers of the definition is admitted and at least $t$. For $\mathcal{I}_0$ and the number $1-\frac12U$ this is clear. For $\mathcal{I}_j$ and $\mathfrak{s}_j(U,\vartheta)$ it follows from \eqref{eq:Agreedy}, because the condition $2^jt\le1-\vartheta$ there is implied by $2^{j+1}t\le1$, as $\vartheta\le\frac12$. For $\mathcal{T}_D$ and the number in (c) with this $D$, the inequality $U\ge l_D$ is equivalent to $E_1\ge t_D$, and $U\le r_D$ to $\min\{E_2,E_3,E_4\}\ge t_D$; moreover $E_3\ge t_D>0$ implies that $U/(D+1)+\vartheta<1$, and $\min\{1,E_1,\dots,E_4\}\ge t_D$ requires $t_D\le1$. For $\mathcal{P}_{w,\nu}$ and the $\nu$-th number in (d), the conditions $\vartheta\le\vartheta_w$ and $U\ge1+c_w\vartheta$ are those of (d), and, as $U\le k\vartheta$, the inequality between that number and $t$ reads $\gamma_\nu U\le P_w-t-\delta_\nu\vartheta$, that is, it reads $U\le R_{w,\nu}(t)$; here $\gamma_\nu>0$, as $\gamma_2\ge \frac12\kappa_w$. For $\mathcal{M}_D$ and the number in (e) with this $D$ let $U_1:=U/(D+1)$. The maximum in (e) is attained, so that this number is admitted and at least $t$ if and only if some $\beta$ with $0\le\beta\le\beta_D^*$ satisfies $1+\beta\ge T$, $G_1\ge T$, $G_2\ge T$ and $G_3\ge T$, and moreover $E_3\ge T$ and $E_4\ge T$. Solved for $\beta$, these conditions say that $\beta$ is at least each of the three numbers $0$, $T-1$ and $T-2U_1+(D-1)\vartheta$, and at most each of the four numbers $1-\frac{D+1}DU_1-\vartheta$ and $U_1-D\vartheta$, whose minimum is $\beta_D^*$, the number $((D-1)(1-U_1)+U_1-(3D-1)\vartheta-T)/(D-1)$, from $G_1\ge T$, and the number $(1+(D-1)(1-U_1)-(2D-1)\vartheta-T)/(D-2)$, from $G_3\ge T$. Such a number $\beta$ exists if and only if each of the three lower bounds is at most each of the four upper bounds. These twelve inequalities and the inequalities $E_3\ge T$ and $E_4\ge T$ are linear in $U_1$. For $D\ge4$ six of them say that $U_1$ is at least one of the six terms of $\mu_D^-$, and the other eight that $U_1$ is at most one of the eight terms of $\mu_D^+$; for instance, the condition $T-1\le U_1-D\vartheta$ gives the first term of $\mu_D^-$, and $T-1\le1-\frac{D+1}DU_1-\vartheta$ the third term of $\mu_D^+$. For $D=3$ the same holds, except that the inequality between $T-2U_1+2\vartheta$ and the bound from $G_3\ge T$ does not involve $U_1$ and reads $2T+7\vartheta\le3$. Hence the number in (e) is admitted and at least $t$ exactly when $U\in\mathcal{M}_D$. For $\mathcal{Q}_{D,\iota}$ and the number in (f) with this $D$ and $\iota$, the inequality $U\ge l_D$ is equivalent to $E_1\ge t_D$, and the three terms of $r^{\mathcal{Q}}_{D,\iota}$ are the largest numbers $U$ with $E_2\ge t_D$, with $E_6\ge t_D$ and with $E_5\ge t_D$, respectively; moreover $E_6\ge t_D>0$ implies that $U/(D+1)+\vartheta<1$, the other two conditions of (f) are $U\ge D-\frac12$ and $(D+3)\vartheta\le\frac14$, and $t_D\le1$ is required as for the tents. For $\mathcal{N}_{D,\iota}$ and the number in (g) with this $D$ and $\iota$, each of the seven terms $X$ named above has $x_U<0$ and $x_\beta<0$. Hence the maximum in (g) is at least $T$ if and only if all seven terms are at least $T$ for $\beta=\max\{0,T-1\}$, the least value of $\beta$ with $1+\beta\ge T$; the condition $\beta\le1-U/(D+1)-\vartheta$ of (g) then follows from $E_6'\ge T>0$, which also gives $U/(D+1)+\vartheta<1$. As the terms decrease in $\beta$, this holds if and only if they are at least $T$ both for $\beta=0$ and for $\beta=T-1$, that is, if and only if $U\le r^{\mathcal{N}}_{D,\iota}$; the other two conditions of (g) are $U\ge l^{\mathcal{N}}_D$ and $(D+3)\vartheta\le\frac14$. The second assertion of (i) follows, since $\theta\le\frac12k$ and $\sigma_k(\theta)\ge t$ means that $\varsigma^\star(U,\vartheta)\ge t$ for $10$, with two exceptions: the right end point $R_J(t)$ has $\rho_2=0$, and the left end point $1+c_w\vartheta$ of $\mathcal{P}_{w,\nu}$ has $\lambda_2=c_w$; for the right end points $R_{w,\nu}(t)$ note that $\gamma_\nu$ and $\delta_\nu$ are positive. For the left end points of the tents and of the intervals $\mathcal{M}_D$ one has $\lambda_2>0$, and so has the left end point $l^{\mathcal{N}}_D$ of $\mathcal{N}_{D,\iota}$; the left end point of $\mathcal{Q}_{D,\iota}$ has the terms of $l_D$ and the term $D-\frac12$, for which $\lambda_1=\lambda_2=0$. The terms of $r^{\mathcal{N}}_{D,\iota}$ have $\rho_1=D(D+1)/(-x_U)$ or $\rho_1=(1-x_\beta)D(D+1)/(-x_U)$, and $\rho_2=x_\vartheta/x_U>0$, as every $x_\vartheta$ is negative. Hence the condition between a term of a left end point and a term of a right end point reads $(\lambda_2+\rho_2)\vartheta\le\rho_0-\lambda_0-(\lambda_1+\rho_1)t$, where $\lambda_2+\rho_2>0$: if $\rho_2=0$, the right end point is $R_J(t)$, and the left end point belongs to a tent, to an interval $\mathcal{M}_D$ or $\mathcal{N}_{D,\iota}$, or to an interval $\mathcal{P}_{w,\nu}$ with $c_w>0$, since the left end point of $\mathcal{J}_0$ is not compared and no interval $\mathcal{Q}_{D,\iota}$ follows upon $(1,R_J(t)]$. The condition between $\theta=k\vartheta$ and a term of a right end point reads $(k+\rho_2)\vartheta\le\rho_0-\rho_1t$. So all these conditions have the form $\vartheta\le a_1-a_2t$ with $a_2\ge0$, and so do the conditions $\vartheta\le \vartheta_w$, $(D+3)\vartheta\le\frac14$ and $2T+7\vartheta\le3$, as $T=12t$ in the last one. For example, the condition $l_{D_1}\le R_J(t)$ reads \[ \vartheta\le\frac{2(J+2)}{D_1^2-1}-\frac{t}{D_1-1}\Bigl(\frac{2(2^{J+2}-2)}{D_1+1}+D_1(D_1+1)\Bigr), \] and here the number $a_1=2(J+2)/(D_1^2-1)$ may exceed $1$. For an interval $\mathcal{P}_{w,\nu}$ that follows $(1,R_J(t)]$ the condition $1+c_w\vartheta\le R_J(t)$ reads $c_w\vartheta\le J+1-(2^{J+2}-2)t$; the condition $\theta\le R_{w,\nu}(t)$ reads $(k\gamma_\nu+\delta_\nu)\vartheta\le P_w-t$; and the condition $l_{D_1}\le R_{w,\nu}(t)$ reads \[ \bigl(\tfrac12\gamma_\nu(D_1^2-1)+\delta_\nu\bigr)\vartheta\le P_w-\bigl(1+\tfrac12\gamma_\nu D_1(D_1+1)^2\bigr)t . \] For the conditions $l_{D+1}\le r_D$ and $\theta\le r_D$ between tents one has $a_1<1$: the three terms of $r_D$ have $\rho_2\ge3$ and $\rho_0\le\rho_2+1$, and $l_{D+1}$ has $\lambda_0=0$ and $\lambda_2=\frac12(D+2)D\ge4$, so that $a_1=\rho_0/(\lambda_2+\rho_2)\le(\rho_2+1)/(\rho_2+4)$ for the first condition and $a_1=\rho_0/(k+\rho_2)<1$ for the second. As $\min\{a_1,1\}-a_2t\le a_1-a_2t$, the number $\theta:=\hat\theta(t)$ satisfies all conditions of (iii), and $\theta\le\frac12k$; so $\theta_k(t)\ge\hat\theta(t)$ when $\hat\theta(t)>1$, and otherwise $\theta_k(t)\ge1\ge\hat\theta(t)$. The minimum of $\frac12$ and of finitely many functions $\min\{a_1,1\}-a_2t$ with $a_2\ge0$ is concave, piecewise linear and nonincreasing. Finally \[ \frac{t}{1-\hat\theta(t)/k}=\min\Bigl\{2t,\ \min\frac{t}{1-\min\{a_1,1\}+a_2t}\Bigr\}, \] where the inner minimum is taken over the conditions with $1-\min\{a_1,1\}+a_2t>0$ (the others do not affect $\hat\theta(t)$, as $\hat\theta(t)\le\frac12k$); each function on the right is positive and nondecreasing for $t>0$, because $1-\min\{a_1,1\}\ge0$. (v) Let $a\le v\le b$. By (iv), we have $\theta_k(2v)\ge\hat\theta(2v)$, and as $\theta_k(2v)\le\frac12k$ the left hand side of the inequality in~(v) is at least $v/(1-\hat\theta(2v)/k)$. By~(iv) this number is at least its value at $v=a$. \end{proof} \subsection{Potentials}\label{ss:Apot} In \S\ref{s:pot} the potential $\mathcal{G}$ enters the induction through Lemma~\ref{lem:pot}, and the proofs there draw on its particular shape, on the admissibility of $\Theta$ and on the hypothesis $k\ge37$. In this appendix two other potentials are used, for all $k\ge6$. We therefore record what is used of \S\S\ref{s:setup}--\ref{s:circle} when $k<37$, and then isolate the properties of a potential on which Proposition~\ref{prop:main} rests (Lemma~\ref{lem:Apot}). \emph{The range of $k$.} Let $k\ge6$. Sections~\ref{s:setup}--\ref{s:apriori} and~\ref{s:circle} were written for $k\ge37$ and for a number $\Theta$ that is admissible for $k$. Apart from \S\ref{s:pot}, and from the evaluation of the potential of that section in \S\ref{ss:major}, the admissibility of $\Theta$ is used in \eqref{eq:params}, in Lemma~\ref{lem:saving}, in Corollary~\ref{cor:fibre} and in Lemma~\ref{lem:iter}, the last through the inequality $\Theta\le\frac12k$. The hypothesis $k\ge37$ is used only in the following places: in the inequality $s>4.19\,k\ge4k+1$ of \S\ref{ss:arcs}, which requires $k\ge6$; in the inequality $s>4.19\,k\ge2k+3$ in the proof of Proposition~\ref{prop:prune}, which is not needed below; in the inequality $\varrho^\dagger>1.5$ after Theorem~\ref{thm:mvexplicit} and in its proof, which requires $k\ge27$ and is not needed either (see the proof of Theorem~\ref{thm:Arec}); and in the inequality $h_k\le\frac15$, on which the second assertion of Theorem~\ref{thm:explicit} depends. The results from outside the paper that are quoted in these sections hold for $k\ge6$: \cite[Theorem~2.2]{BW2025} is stated for $k\ge6$ and for all real orders $t\ge4$, with arbitrary weights, so that \eqref{eq:admexp} is available as explained in \S\ref{s:apriori}; \S\ref{s:exp} holds for $k\ge3$; and the results of \cite{BW2023,BW2024,Vau1989} that are quoted in \S\ref{ss:arcs} and below are used there for $k\ge4$. In \S\ref{s:pot} both hypotheses are used at several further points; that section is replaced by Lemma~\ref{lem:Apot} below. \emph{The parameters.} Let $\Theta$ be a real number with $1<\Theta\le\frac12k$ and $\sigma_k(\Theta)>0$. In place of \eqref{eq:params} we suppose that \begin{equation}\label{eq:Aparams} 0<\delta_0<\tfrac1{40},\qquad0<\varepsilon_2\le\min\{\tfrac1{100},\delta_0\},\qquad0<\gamma\le\frac1{100\,k},\qquad 0<\varepsilon\le\tfrac14\delta_0\,\sigma_k(\Theta); \end{equation} thus $\sigma(\Theta)$ is replaced by $\frac12\sigma_k(\Theta)$, and the condition $\delta_0<\frac12(1-\eta_k(\Theta))$ is omitted. The other parameters are chosen as in \S\ref{ss:params}; in particular \eqref{eq:eta} holds, and we suppose in addition that $\eta\le\gamma\varepsilon/(4k)$. With these parameters Corollary~\ref{cor:fibre} holds for $1<\theta\le\Theta$, with $\sigma_k(\theta)$ in place of $(1-\eta_k(\theta))\sigma(\theta)$, for every modulus $m$ whose prime factors lie in $(p_1(k),X^{\varepsilon/(16k)}]$, with $p_1(k)$ as in Lemma~\ref{lem:Asaving}(i); this covers the moduli $d\in\mathcal{D}$ to which it is applied in Lemma~\ref{lem:iter}, since their prime factors are usable, so that they exceed $p_0=L^3>p_1(k)$ when $P$ is large, and they are at most $R=P^\eta\le X^{\eta/(4\gamma)}\le X^{\varepsilon/(16k)}$ there. Indeed, if $m\le X^{\theta/k}$, and if $q$ is a divisor of $m^k$ with $q>X$, then $\vartheta\le\theta/k\le\frac12$ and $1\frac{13}{60}$. So $\theta(z)$ is well defined, the function $\theta(\cdot)$ is nonincreasing with values in $[1,\Theta]$, one has $M(\theta(z))\ge z$, and $\theta(z)=\Theta$ exactly when $z\le u_\Theta$. By the definition of $\theta_k$, we have \begin{equation}\label{eq:Athetaz} \theta(z)=\min\bigl\{\Theta,\ \theta_k\bigl(2z/(1-\delta_0)\bigr)\bigr\}\qquad(0\frac12$, and $\tau^\circ:=\tau_k$. In the \emph{second case} $7\le k\le20$, and $\Psi^\circ$ and $\tau^\circ$ are formed with the permissible exponents that Vaughan and Wooley \cite[\S\S9--22]{VW2000} have tabulated, as follows. We write $\lambda_s=\lambda_s^{(k)}$ $(3\le s\le S_k)$ for the numbers that are recorded in the table for $k$ in \cite{VW2000}; here \[ S_k=16,\ 20,\ 22,\ 26,\ 29,\ 32,\ 36,\ 40,\ 43,\ 47,\ 50,\ 54,\ 58,\ 62\qquad(k=7,8,\dots,20). \] For $k=8$ the last of these numbers, namely $\lambda_{20}$, is obtained in \cite[\S10]{VW2000} by the process $\mathrm{D}_s$ of \cite[\S8]{VW2000}; the other entries come with the parameters $\phi_1$ of the iterations that produce them (see \S\ref{ss:Averif}). Further let $\lambda_0:=0$, $\lambda_1:=1$ and $\lambda_2:=2$. These numbers are permissible exponents in the sense of \cite[\S2]{VW2000}: for every $\varepsilon'>0$ there is $\eta'>0$ such that the number of solutions of the equation \[ n_1^k+\dots+n_s^k=n_{s+1}^k+\dots+n_{2s}^k\qquad\bigl(n_i\in\mathcal{A}(Y,Z)\bigr) \] is $\ll Y^{\lambda_s+\varepsilon'}$ whenever $2\le Z\le Y^{\eta'}$. For $s\le2$ this is trivial, or Hua's lemma, as in \S\ref{s:apriori}; for $s\ge3$ the recorded numbers are stated in \cite[\S8]{VW2000} to be upper bounds for the exponents that were computed there. Put \begin{gather*} \Delta_s:=\lambda_s-2s+k\quad(0\le s\le S_k),\qquad z^{(s)}:=\tfrac12(\Delta_s-\Delta_{s+1})\quad(0\le s0),\qquad \tau_k^{\mathrm{VW}}:=\frac1{T_k}, \end{gather*} where the numbers $T_k$ for $k=7,8,\dots,20$ are \begin{gather*} 48.47,\quad58.01,\quad67.51,\quad76.95,\quad86.40,\quad95.66,\quad104.95,\\ 114.19,\quad123.40,\quad132.60,\quad141.78,\quad150.95,\quad160.07,\quad169.18, \end{gather*} and let $\Psi^\circ:=\Psi_k^{\mathrm{VW}}$ and $\tau^\circ:=\tau_k^{\mathrm{VW}}$. In the first case we put $\zeta^\circ:=\frac{13}{60}$, and in the second case $\zeta^\circ:=\frac15$. The following facts are verified by the program of \S\ref{ss:numerics}, in exact rational arithmetic: \begin{enumerate} \item[\textup{(V1)}] the sequence $(\lambda_s)_{0\le s\le S_k}$ is convex, with $\lambda_{s+1}-\lambda_s<2$, and $\Delta_{S_k}>0$; \item[\textup{(V2)}] $\lambda_k-\lambda_{k-1}\le\frac85$, or equivalently $z^{(k-1)}\ge\frac15$; \item[\textup{(V3)}] with $u:=k-1$ one has $\tau_k^{\mathrm{VW}}<(k-2\Delta_u)/(4u^2)$. \end{enumerate} Here $\Delta_s$ is indexed by the number $s$ of variables on each side of the equation; it is the exponent that is denoted by $\Delta_{2s}$ in \S\ref{ss:arcs} and in Lemma~\ref{lem:Ainputs}(iii) below, which are indexed by the order $2s$ of the moment. By (V1) the numbers $\Delta_s$ are positive and decrease, the numbers $z^{(s)}$ are positive and do not increase with $s$, and the minimum that defines $\Psi_k^{\mathrm{VW}}(z)$ is attained at $s$ when $z^{(s)}\le z\le z^{(s-1)}$, where $z^{(-1)}:=\infty$ and $z^{(S_k)}:=0$; note that $z^{(0)}=\frac12$, so that $\Psi_k^{\mathrm{VW}}(z)=1/z$ for $z\ge\frac12$. The number $T_k$ is a rounded-up value of $4u^2/(k-2\Delta_u)$; for instance $1/\tau_{17}=153.47\ldots$, whereas $T_{17}=141.78$. \begin{lemma}\label{lem:Ainputs} Let $k\ge6$, and let $(\Psi^\circ,\tau^\circ)$ be as above. \textup{(i)} The function $\Psi^\circ$ is continuous, decreasing and locally Lipschitz continuous on $(0,\infty)$, and $\Psi^\circ(z)=1/z$ for $z\ge\frac12$. The function $\mathfrak{g}^\circ(z):=-z\,\frac{\mathrm{d}}{\mathrm{d}z}\Psi^\circ(z)$ satisfies $0\le\mathfrak{g}^\circ\le\Psi^\circ$ almost everywhere, and \begin{equation}\label{eq:Agcirc} \Psi^\circ(z)-\mathfrak{g}^\circ(z)\ge2\qquad\text{for almost all }z\in(0,\zeta^\circ]. \end{equation} In particular $\Psi^\circ\ge2$ on $(0,\zeta^\circ]$. \textup{(ii)} Let $0\frac12$. So $\Psi^\circ-\mathfrak{g}^\circ$ vanishes for $z>\frac12$, and for $z<\frac12$ it equals $\Psi(z)-\frac1{1-z}$, which is decreasing, vanishes at $z=\frac12$, and is at least $2+\log\frac{47}{13}-\frac{60}{47}>2$ for $z\le\frac{13}{60}$. In the second case let $z^{(s)}\tau^\circ$, by (V3). \end{proof} \begin{lemma}[potentials]\label{lem:Apot} Let $k\ge6$, let $(\Psi^\circ,\tau^\circ)$ be as above, and let $\Theta$, the parameters and the function $\theta(\cdot)$ be as in the paragraph on the parameters. Let $u$ and $z_0$ be real numbers with \[ 00$ and $\Phi(x,0):=0$, and let $\mathcal{G}_\gamma:=\mathcal{G}(\gamma u)$. \textup{(i)} For $\gamma\le x\le1$ the functions $\lambda\mapsto\Phi(x,\lambda)$ and $\lambda\mapsto\mathcal{G}_\gamma k\lambda-\Phi(x,\lambda)$ are nondecreasing on $[0,\infty)$, and the function $\lambda\mapsto\Phi(x,\lambda)-2k\lambda$ is nondecreasing on $[0,\zeta^\circ x]$. \textup{(ii)} Let $\gamma\le x\le1$ and $\lambda\ge0$, suppose that $z:=\lambda/x\gamma$ and therefore $\gamma u/x4\gamma$ and $z\ge z_0$. Then $\lambda=zx\ge z_0\gamma\ge\gamma u$, so that $\Phi(x,\lambda)=k\lambda\,\Psi^\circ(z)$ by (G1), and the assertion is Lemma~\ref{lem:Ainputs}(ii) with $z_*=z_0$ when $z\le\frac12$, and the trivial bound when $z>\frac12$. Case~3 is the case $x>4\gamma$ and $zL^3$ of $l^{-k/3}$ is small because $k>3$. For the first term one uses parts~(i) and~(ii) in place of Lemma~\ref{lem:pot}(ii) and~(iii). In addition the inequalities $\lambda'\le\frac15x$ and $\lambda^+/(x-y_d)\le\zeta^\circ$ are needed, the second one in place of the bound $\frac15$ in the proof of Lemma~\ref{lem:rec}; they hold for large $P$, because $\lambda'\le zx+\log2/L$ and $\lambda^+/(x-y_d)\le2z+\log(16L)/(2\gamma L)$, while $z0$ with \begin{equation}\label{eq:Aseed} \theta_k(t)\ge2-t+c\,(2z_\star-t)\qquad(2z_\star-c\le t\le2z_\star). \end{equation} That is, at $t=2z_\star$ a step of length $\theta_k(t)$ is at least as long as $2-t$, the length for which the two terms in $\Psi(z)=2+\log\frac{1-z}z$ and in the integral below balance, and to the left of this point it gains on $2-t$ at a positive rate. The number $\frac1{10}$ is a seed for every $k\ge37$, with $c=\frac1{20}$: by Lemma~\ref{lem:Asaving}(iii) one has $\sigma_k(3-6t)\ge t$, and hence $\theta_k(t)\ge3-6t=2-t+5(\frac15-t)$, for $\frac18\le t\le\frac14$. In Lemma~\ref{lem:Alarge} we show that $\frac{41}{382}$ is a seed for every $k\ge5000$, and we put \[ z_k:=\tfrac1{10}\quad(37\le k<5000),\qquad z_k:=\tfrac{41}{382}\quad(k\ge5000). \] For real numbers $\Theta$ with $\frac94\le\Theta\le\Theta_k$ let \[ \mathcal{Y}_k(\Theta):=k\Bigl(\Psi(z_k)+2\int_{\tau_k}^{z_k}\frac{\mathrm{d}v}{v\,\min\{\Theta,\theta_k(2v)\}}\Bigr) -\log\frac{z_k}{\tau_k},\qquad\text{where}\quad\Psi(z)=2+\log\frac{1-z}{z}. \] The number $\mathcal{Y}_k(\Theta)$ is nonincreasing in $\Theta$; for $\Theta=\Theta_k$ the minimum in the integrand equals $\theta_k(2v)$. The term $-\log(z_k/\tau_k)=-\log(9.027901\,k\,z_k)$, which is about $-\log(0.90\,k)$ for $k<5000$ and about $-\log(0.97\,k)$ for $k\ge5000$, has no counterpart in Theorem~\ref{thm:explicit}: it comes from the exact length of the steps in the potential (see the remark that follows the proof of Theorem~\ref{thm:Aexplicit}). \begin{theorem}\label{thm:Aexplicit} Let $k\ge37$ and $\frac94\le\Theta\le\Theta_k$, and suppose that $z_k$ is a seed for $k$. \textup{(i)} One has $G(k)\le\lfloor\mathcal{Y}_k(\Theta)\rfloor+1$. \textup{(ii)} Theorems~\textup{\ref{thm:almostexplicit}} and~\textup{\ref{thm:mvexplicit}} hold for $k$ and $\Theta$ when $\mathcal{Y}_k(\Theta)$ takes the place of the number $k\bigl(C(h_k)-2T(\Theta)+2R_k(\Theta)+W_k(\Theta)\bigr)$ wherever it occurs in them. \textup{(iii)} Theorem~\textup{\ref{thm:fracexplicit}} holds for $k$ and $\Theta$ when the condition on $s_0$ is replaced by \[ 2s_0>\mathcal{Y}_k(\Theta)-\frac{2k}{\Theta'}\Bigl(1+\log\frac{9.027901\,\Theta'\,b}{2}\Bigr),\qquad\text{where}\quad \Theta':=\frac{\Theta}{1-\Theta/(2k)}. \] \end{theorem} In these statements $\Theta$ need not be admissible in the sense of Definition~\ref{def:round}. Any positive function $\tilde\theta$ with $\tilde\theta\le\theta_k$ on $[2\tau_k,2z_k]$ yields an upper bound for $\mathcal{Y}_k(\Theta)$, namely the number that is obtained when $\theta_k$ is replaced by $\tilde\theta$ in the integral, and it shows that $\tilde\theta(2\tau_k)\le\Theta_k$. It is in this way that the theorem will be applied. For $k\le5000$ parts~(i) and~(ii) are superseded by Theorem~\ref{thm:Arec}; we use them for $k\ge5000$ (Proposition~\ref{prop:Alarge}), and part~(iii) for all $k\ge37$ (\S\ref{ss:Afrac}). \begin{proof} We go through \S\S\ref{s:setup}--\ref{s:ls} with $k$ and $\Theta$ as in the theorem. In these sections the hypothesis that $\Theta$ is admissible for $k$, which is made in \S\ref{ss:params} and again at the beginning of \S\ref{s:ls}, is replaced by $\frac94\le\Theta\le\Theta_k$. It was used in \eqref{eq:params}; in Lemma~\ref{lem:saving}, Corollary~\ref{cor:fibre} and Lemma~\ref{lem:iter}; throughout \S\ref{ss:potdef}, and in the proofs of Lemma~\ref{lem:pot} and of Proposition~\ref{prop:main}, that is, of Lemma~\ref{lem:rec}, namely for the positivity and the strict monotonicity of $M$, for \eqref{eq:adm}, \eqref{eq:H} and \eqref{eq:uzc}, for the inequality $2\varepsilon\le\delta_0\sigma(\Theta)$, and through the inequality $\theta\le\Theta<\sqrt k\le\frac12k$, which is also used in Lemma~\ref{lem:iter} and at the end of \S\ref{s:exp}; and in Lemma~\ref{lem:pot}(i), which is quoted in \S\S\ref{ss:major}, \ref{ss:weyl} and~\ref{ss:frac}. We have $\Theta\le\Theta_k\le\frac12k$ and $\sigma_k(\Theta)\ge\sigma_k(\Theta_k)\ge2\tau_k>0$. So the paragraph of \S\ref{ss:Apot} on the parameters applies: the parameters are subject to \eqref{eq:Aparams}, Corollary~\ref{cor:fibre} and Lemma~\ref{lem:iter} hold in the form stated there, and $M$, $u_\Theta$ and $\theta(\cdot)$ are defined as there. \emph{The potential.} Let $c>0$ be a number for which \eqref{eq:Aseed} holds with $z_\star=z_k$, and put \[ \eta:=\frac{(1+c)\,\delta_0+2\varepsilon_2}{c},\qquad z_c:=z_k-\eta,\qquad\theta_0:=2(1+\varepsilon_2)(1-z_c),\qquad t_c:=\frac{2z_c}{1-\delta_0}. \] We may suppose that $\delta_0$ and $\varepsilon_2$ are so small that $\eta\le\min\{\frac12c,\frac1{100}\}$. Since $\eta\ge\delta_0\ge\delta_0z_k$, we have $t_c\le2z_k$ and \[ 2z_k-t_c=\frac{2\eta-2\delta_0z_k}{1-\delta_0}\ge2\eta-2\delta_0, \] and $t_c\ge2z_c\ge2z_k-c$. So \eqref{eq:Aseed} gives \[ \theta_k(t_c)\ge2-2z_k+(1+c)(2z_k-t_c)\ge2-2z_k+2\eta+2c\eta-2(1+c)\delta_0=2-2z_k+2\eta+4\varepsilon_2\ge\theta_0, \] because $\theta_0=2-2z_k+2\eta+2\varepsilon_2(1-z_c)$. By the definition of $\theta_k$ and the left-continuity of $\sigma_k$ it follows that $\sigma_k(\theta_0)\ge t_c$, or equivalently $M(\theta_0)\ge z_c$; and $\theta_0<\frac94\le\Theta$. Hence $\theta(z_c)\ge\theta_0$, so that \eqref{eq:H} holds, and $\theta_0\ge2(1-\frac{41}{382})>1.78$. Moreover $z_c\ge\frac1{10}-\frac1{100}$, while $u_\Theta\le M(\frac94)\le\frac12\sigma_k(\frac94)\le\frac{271}{3888}<0.07$, by Lemma~\ref{lem:Asaving}(iii), and $z_c\frac32$, and (G1) holds by the definition of $\mathcal{G}$. The function $\mathcal{G}$ is nonincreasing and locally Lipschitz continuous. For almost all $z4.1$; this gives (G2). For (G3) let $0\Theta$. \emph{Large $k$.} We now make the bound of Theorem~\ref{thm:Aexplicit} explicit for $k\ge5000$, by means of the chains of Lemma~\ref{lem:Achain}. Let $D_\star=D_\star(k)$ be the largest integer $D$ with $D^2+6D+32\le k$, let $D_{\mathrm M}=D_{\mathrm M}(k)$ be the largest integer $D$ with $2D^2+11D+57\le k$, and let $D_{\mathrm Q}=D_{\mathrm Q}(k)$ be the largest integer $D$ with $(2D+1)(2D+6)\le k$. Then $D_\star=\lfloor\sqrt{k-23}\rfloor-3$; moreover $D_\star\ge67$, $D_{\mathrm M}\ge47$ and $D_{\mathrm Q}\ge33$ for $k\ge5000$, and $D_{\mathrm Q}\frac1{20}$ moreover $\theta<4$, so that $\vartheta<0.0008$, except on the piece $\phi_{4,2}^\sharp$ of the second line, where $\theta<\frac{65}{16}$; in the third line $\thetaD^2+6D+32$, and $D_{\mathrm Q} 0.0008$; for the four words that begin with $B$ we have $\vartheta_w=\frac12$ and $c_w\le113$, so that $1+c_w\vartheta<1.1<2-2t=R_0(t)$. So we may use the chain $\mathcal{P}_{w,2}$ if $w$ begins with $A$, and the chain $(1,R_0(t)],\mathcal{P}_{w,2}$ if $w$ begins with $B$. The condition $\theta\le R_{w,2}(t)$ reads $(k\gamma_2+\delta_2)\vartheta\le P_w-t$, and $k\gamma_2+\delta_2=k\kappa_w$, so that it reads $\theta\le(P_w-t)/\kappa_w$. \emph{The seed.} Let $w$ be the word $BABAABAAA$, for which $P_w=\frac{145}{243}$ and $\kappa_w=\frac{52}{243}$. By the first line, we have $\theta_k(t)\ge(P_w-t)/\kappa_w$ for $\frac{17}{83}\frac1{102}$, the condition \eqref{eq:Aseed} holds for $z_\star=\frac{41}{382}$ with $c=\frac1{102}$. \emph{The piece $6-36t$.} Let $\frac1{12}0$; for $5\le D'\le41$ one has $\epsilon(D')<261$, so that the right hand side is smaller than $4200$. In all cases the condition follows from $k\ge2D'^2+11D'+57$ and $k\ge5000$. The junction $(D'+1)\mu_{D'}^-\le r_D$. Since $T'-1\le(D'-1)/(D'^2+1)<1/D'$ and $D'\vartheta<\frac12$, the six terms of $\mu_{D'}^-$ are at most \[ \frac12+\frac1{D'},\quad\frac12,\quad\frac{D'+5}{2D'},\quad\frac{D'+2}{2(D'-1)},\quad\frac{2+1/D'}3,\quad \frac{D'}{2(D'-3)}, \] respectively; for $D'\ge14$ these are at most $0.7$. On the other hand $t_D<1$ and $\vartheta<1/(2D')$, and the three terms of $r_D$ are at least $D-3/(D-2)$, $D+1-\frac54(D+1)/(D-1)$ and $D-\frac12$, so that $r_D\ge D-\frac32$. For $D\ge13$ we have $0.7(D+2)\frac1{20}$ (Table~\ref{tab:Abands}), and it is a term of the right end point $r^{\mathcal{N}}_{D',\iota'}$, with $\iota'=\iota$, and $\iota'=2$ for $\phi^\sharp_{D',3}$: namely the term with $L=T-1$ that comes from $E_5'$, or from $E_7$, formed for $\vartheta=0$. We use the chain $(1,R_2(t)],\mathcal{N}_{3,2}$ if $D'=3$, the chain $(1,R_3(t)],\mathcal{N}_{4,2}$ if $D'=4$, and the chain $(1,R_3(t)],\mathcal{T}_4,\dots,\mathcal{T}_D,\mathcal{N}_{D+1,\iota'}$ if $D'\ge5$. The conditions up to $\mathcal{T}_D$ hold by the paragraph on the tents, since $t\le p_D$ and $\vartheta\le1/(D+7)$, as $\theta(D+7)<(D+\frac76)(D+7)D_{\mathrm Q}}\bigl(\Lambda_D^\star-\Lambda_D^\sharp\bigr)-2\sum_{D\ge D_\star}\Lambda_D^\star\\ &\hspace{2em}+2\sum_{D=D_{\mathrm M}}^{D_\star-1}\bigl(\Lambda_D-\Lambda_D^\star\bigr) +\frac2\Theta\log\frac{9.027901\,k}{2D_\star(D_\star+1)}\Bigr)+2\rho_3+2\sum_{D=4}^{D_{\mathrm Q}-1}\rho_D^\dagger\\ &+2\rho_{D_{\mathrm Q}}+2\sum_{D=D_{\mathrm Q}+1}^{D_{\mathrm M}-1}\bigl(D\Lambda_D^{\mathrm T}+(D+1)\Lambda_D^{\mathrm M}\bigr) +2\sum_{D=D_{\mathrm M}}^{D_\star-1}D\Lambda_D-\log\frac{z_k}{\tau_k}\\ <{}&C_0^\star k-c_\star\sqrt k+\tfrac73\log k+11, \end{align*} where $c_\star:=4-2\log\frac{9.027901}{2}=0.98565\ldots$. Thus $G(k)\le C_0^\star k-0.9856\,\sqrt k+\frac73\log k+12$. \end{proposition} \begin{proof} By Lemma~\ref{lem:Alarge} we have $\Theta\le\Theta_k$, the number $z_k=\frac{41}{382}$ is a seed for $k$, and the functions on the right hand side there are lower bounds for $\min\{\Theta,\theta_k(t)\}$ on $[2\tau_k,2z_k]$; note that $2\tau_kp_{D+1}$ and $\gamma_{D,\iota}>D+1$, and as $D+1\le D_\star$. We insert these bounds in the definition of $\mathcal{Y}_k(\Theta)$, after the substitution $t=2v$, as follows. On $(p_{D_{\mathrm Q}},\frac{41}{191}]$ we use the first two lines. For $D=D_{\mathrm Q}$ we use the third line with $\iota=1$ on $(t_D^{(1)},p_D]$, and the fifth line on $(p_{D+1},t_D^{(1)}]$, which is contained in $(p_{D+1},q_D]$, since $t_D^{(1)}\le1/(D^2+2D+2)$ is equivalent to $D^2-2D+2\ge0$. For $D_{\mathrm Q}\sqrt{k-23}>\sqrt k-0.164$. Moreover $m\ge47$, and by the definition of $m$ we have $k<2(m+1)^2+11(m+1)+57=2m^2+15m+70$. Finally let $d:=D_{\mathrm Q}$. Then $d\ge33$ and \[ (2d+1)(2d+6)\le k<(2d+3)(2d+8), \] so that $2d+1<\sqrt k$; and $2d\le n$, because $(2d+\frac72)^2\le k+\frac{25}4$ gives $2d<\sqrt k-3.45d}\bigl(\Lambda_D^\star-\Lambda_D^\sharp\bigr)\le\frac{k}{5(d+\frac12)^2} <\frac{(2d+3)(2d+8)}{5(d+\frac12)^2}\le0.91, \] the last fraction being decreasing in $d$, and smaller than $0.91$ for $d=33$. Similarly $0\le\Lambda_D^\sharp-\Lambda_D^\dagger\le1/(6D^3)$ for $D\ge15$. Here the two integrands are $1/(t\,\theta^\star_\circ(t))$ and $1/(t\,\theta^\star(t))$; by \eqref{eq:Atsp} and \eqref{eq:Atsplarge} they agree for $t_D^Nn+1$, because $F'(\xi)=2L_1-2+2\log\frac{\xi}{n+1}+\frac2\xi>0$. Hence $F(\xi)0.9856$. \end{proof} The coefficient $c_\star$ belongs to the choice $\Theta=(1+o(1))\sqrt k$: the three terms that depend on $\Theta$ are then about $-4k/\Theta$ from the tail of the series, about $4\log\Theta$ from the rounding, and about $(2k/\Theta)\log(9.027901\,k/(2\Theta^2))$; the second of them is about $2\log k$. The rounding losses of the intervals $\mathcal{Q}_{D,\iota}$ and $\mathcal{N}_{D,\iota}$ with $D\le D_{\mathrm Q}$, which are larger than those of the tents, add about $\frac43\log k$, and the term $-\log(z_k/\tau_k)$ removes $\log k$. In Theorem~\ref{thm:explicit} the term $2R_k(\Theta)$ is of order $k^{-1/2}$ when $\Theta$ is of order $\sqrt k$, and becomes infinite as $\Theta(\Theta+4)\to k$; here its place is taken by a term of order $k^{-1}\log k$. Larger steps are considered in Remark~\ref{rem:Asecond}. \subsection{The steps of the potential as a recursion}\label{ss:Arec} Condition (G3) of Lemma~\ref{lem:Apot} requires that the potential decrease by $\frac2k$ between the two ends of a step, that is, between $z$ and $z/(1-\theta(z)/k)$, apart from the effect of the parameters $\delta_0$ and $\varepsilon_2$. The potentials of \S\ref{s:pot} and of Theorem~\ref{thm:Aexplicit} achieve this by means of a differential inequality: their logarithmic derivative at a point $v$ is governed by $\theta(v)$, and since $\theta(\cdot)$ decreases along a step, they decrease by more than $\frac2k$ along most steps. In this section the requirement is imposed as it stands. The value of the potential at $z$ is defined to be $\frac2k$ plus its value at the end of the step that begins at $z$; more precisely, at the least of the end points of the steps that begin at points $v\ge z$, because the potential has to be monotone. Then $z\,\mathcal{G}(z)$ is no longer concave, and Lemma~\ref{lem:pot}(iv) and the second assertion of Corollary~\ref{cor:moment} are lost. They were needed in \S\ref{s:circle} only for Lemma~\ref{lem:admissible}, which provides the admissible exponent with which the arcs of height $Q\ge P^{1/2}$ are pruned, by means of a moment of $f$ and the bound of Weyl type (compare Remark~\ref{rem:height}). We prune these arcs in a different way. After the change of variables of \cite[Lemma~3.4]{BW2023} the bound of Weyl type \cite[(5.6)]{BW2023} holds for each of the shorter sums, so that only the values of these sums below that bound have to be considered, and the measure of the set on which such a sum is large is bounded by Proposition~\ref{prop:main} itself (Lemma~\ref{lem:Atrunc} and Proposition~\ref{prop:Aprune}). In this way arcs on which $f$ saves a factor $Y^{\tau}$ are pruned with any number of variables that exceeds $k\,\mathcal{G}(z_*)$ for some $z_*<\tau$, whether $z\,\mathcal{G}(z)$ is concave or not. The outcome is Theorem~\ref{thm:Arec}: it bounds $G(k)$ in terms of a single sequence of steps, which begins just below the exponent of the bound of Weyl type and ends below $\frac1{10}$, and no integral has to be estimated. The theorem holds for all $k\ge6$; its numerical consequences are worked out in \S\ref{ss:Anum}. \emph{Pruning by large values.} We turn to the arcs of height $Q\ge P^{1/2}$. The results below take the place of Lemma~\ref{lem:admissible} and Proposition~\ref{prop:prune}; the numbers $b$, $r$ and $t$ of \eqref{eq:rst} do not occur in them. Let $k\ge6$, and let $(\Psi^\circ,\tau^\circ)$ be one of the two pairs of \S\ref{ss:Apot}; in both cases $\tau^\circ<\frac1{40}$, since $\tau_k\le\tau_6<\frac1{54}$ and $T_k\ge T_7>48$. The admissible exponents of \cite{BW2023} are chosen as in Lemma~\ref{lem:Ainputs}(iii), so that $\tau(k)\ge\tau^\circ$. For $1\le Y\le P$ and $1\le\pi\le R$ we write $f(\alpha;Y,\pi):=\sum_{n\in\mathcal{A}(Y,\pi)}e(\alpha n^k)$, and for $q\in\mathbb{N}$ we put $\mathfrak{N}_q(Q;P):=\mathfrak{M}_q(Q;P)\setminus\mathfrak{M}_q(Q/2;P)$, so that $\mathfrak{N}(Q;P)\subseteq\bigcup_{q\le Q}\mathfrak{N}_q(Q;P)$. We use the following results of \cite{BW2023}. In \textup{(C1)}--\textup{(C4)}, the number $\varepsilon_3>0$ is arbitrary, the number $s>1$ is real, the parameter $\eta$ is sufficiently small in terms of $\varepsilon_3$, $k$, $s$ and the admissible exponents, and the implied constants may depend on these numbers. In \textup{(C2)} and \textup{(C3)} we keep the notation of \cite{BW2023}: $\pi$ is a prime, and $z$ is a natural number. \begin{enumerate} \item[\textup{(C1)}] \cite[Lemma~3.4]{BW2023}: if $1\le Q\le P^{k/2}$ and $M\ge R$, and if $1\le q\le Q$, then \[ \int_{\mathfrak{N}_q(Q;P)}|f(\alpha)|^s\,\mathrm{d}\alpha\ll(MR)^{s-1}I_q(M;\mathfrak{N})+QM^sP^{\varepsilon_3-k}, \] where $I_q(M;\mathfrak{N})$ is the integral of \cite[(3.4)]{BW2023}. \item[\textup{(C2)}] \cite[(5.4)]{BW2023}: if $1\le Q\le\frac12P^{k/2}R^{-k}$ and $M:=P(2Q)^{-2/k}R^{-1}$, so that $M\ge R$, then \[ \sum_{q\le Q}I_q(M;\mathfrak{N})\ll P^{\varepsilon_3}\sum_{\pi\le R}\ \sum_{m\in\mathcal{B}'(M,\pi,R)}m^{-k} \sum_{z\in\mathcal{A}(P/m,R)}V_s(\pi,m,z), \] where $\mathcal{B}'(M,\pi,R)$ is the set of the numbers $v\in\mathcal{A}(M\pi,R)$ with $v>M$ that are divisible by $\pi$ and have no prime factor smaller than $\pi$; it is denoted by $\mathcal{B}(M,\pi,R)$ in \cite[Lemma~3.3]{BW2023}, and $\mathcal{B}'(M,\pi,R)\subseteq(M,MR]$. Further \[ V_s(\pi,m,z):=\int_{\mathfrak{N}(Q;P/m)}\Bigl|f\Bigl(\alpha z^k;\frac P{mz},\pi\Bigr)\Bigr|^s\,\mathrm{d}\alpha . \] \item[\textup{(C3)}] \cite[(5.6)]{BW2023}: in the situation of \textup{(C2)} there is a number $C_4$, independent of $Q$, $\pi$, $m$, $z$ and $\alpha$, such that \[ \Bigl|f\Bigl(\alpha z^k;\frac P{mz},\pi\Bigr)\Bigr|\le C_4P^{\varepsilon_3}\Bigl(\frac Pm\Bigr)^{1-\tau(k)}z^{-1/2} \qquad(\alpha\in\mathfrak{N}(Q;P/m)). \] \item[\textup{(C4)}] \cite[Lemma~5.1]{BW2023}: let $t'$ be an even integer and $\Delta_{t'}$ an admissible exponent; if $a'\in\mathbb{Z}$ and $q'\in\mathbb{N}$ are coprime and $\Theta_1:=q'+P^k|q'\alpha-a'|$, then \[ f(\alpha)\ll q'^{\,\varepsilon_3}P^{1+\varepsilon_3}\bigl(P^{\Delta_{t'}}(\Theta_1^{-1}+P^{-k/2}+P^{-k}\Theta_1) \bigr)^{2/t'^2}+P^{1/2+\varepsilon_3}. \] \end{enumerate} The displays \cite[(5.4)--(5.6)]{BW2023} are steps in the proof of \cite[Theorem~5.2]{BW2023}; they do not use the hypothesis of that theorem on the exponent $\Delta_s^*$, which enters only afterwards, and the bound (5.6) holds uniformly in $\pi$, $m$, $z$ and $\alpha$, as \textup{(C3)} states. \begin{lemma}[truncated moments]\label{lem:Atrunc} In the situation of \S\ref{s:circle}, with the parameters as in \S\ref{ss:Apot}, let $\mathcal{G}$ be a nonincreasing function from $(0,\infty)$ to $[0,\infty)$, let $00),\qquad\Phi(x,0):=0 . \] Suppose that the assertion of Proposition~\textup{\ref{prop:main}} holds with this function $\Phi$, and that for $\gamma\le x\le1$ the function $\lambda\mapsto\Phi(x,\lambda)-2k\lambda$ is nondecreasing on $[0,\frac15x]$. Let $s>2k$ and $00$. Let $P^\gamma\le Y\le P$ and $a\in\mathcal{W}(Y)$, let $V>0$, and put $w:=\max\{1,\,VY^{z_*-1}\}$. Then, for large $P$, one has \[ \int_{\mathbb{T}}|F_a(\alpha)|^s\,\mathbf{1}\bigl[|F_a(\alpha)|\le V\bigr]\,\mathrm{d}\alpha \le s\Bigl(\frac1\xi+\frac1{s-2k}\Bigr)w^{s-2k}\,Y^{s-k-\xi z_*}P^{4k\gamma+2\varepsilon}. \] \end{lemma} \begin{proof} Let $I$ be the integral, and write $Y=P^y$, so that $\gamma\le y\le1$. As $|F_a|\le Y$, we have \begin{align*} I&=\int_0^\infty sU^{s-1}\operatorname{meas}\{\alpha:\ U\le|F_a(\alpha)|\le V\}\,\mathrm{d}U\\ &\le\int_0^{\min\{V,Y\}}sU^{s-1}\operatorname{meas}\{\alpha:\ |F_a(\alpha)|\ge U\}\,\mathrm{d}U . \end{align*} Define $\lambda_V$ by $V=YP^{-\lambda_V}$, and let $\lambda^0:=\max\{\lambda_V,0\}$. We substitute $U=YP^{-\lambda}$, and we use the hypothesis, which gives \[ \operatorname{meas}\{\alpha:|F_a(\alpha)|\ge YP^{-\lambda}\}\le Y^{-k}D(Y,P^\lambda)\le Y^{-k}P^{4k\gamma+2\varepsilon+\Phi(y,\lambda)}\qquad(\lambda\ge0). \] Thus \[ I\le sL\,Y^{s-k}P^{4k\gamma+2\varepsilon}\int_{\lambda^0}^\infty P^{\Phi(y,\lambda)-s\lambda}\,\mathrm{d}\lambda . \] Let $\lambda_1:=z_*y$, so that $\lambda_1\le\frac15y$. If $\lambda\ge\lambda_1$, then $\max\{\lambda,\gamma u\}/y\ge z_*$; as $\mathcal{G}$ is nonincreasing, this gives $\Phi(y,\lambda)\le k\lambda\,\mathcal{G}(z_*)=(s-\xi)\lambda$. If $0\le\lambda\le\lambda_1$, then $\Phi(y,\lambda)\le\Phi(y,\lambda_1)- 2k(\lambda_1-\lambda)$ by hypothesis, and therefore $\Phi(y,\lambda)-s\lambda\le-\xi\lambda_1+(s-2k)(\lambda_1- \lambda)$. Hence \[ \int_{\lambda^0}^\infty P^{\Phi(y,\lambda)-s\lambda}\,\mathrm{d}\lambda\le\frac{P^{-\xi\lambda_1}}L\Bigl(\frac1\xi +\frac{P^{(s-2k)\max\{\lambda_1-\lambda^0,\,0\}}}{s-2k}\Bigr). \] Finally $P^{-\xi\lambda_1}=Y^{-\xi z_*}$, and $P^{\lambda_1-\lambda^0}\le P^{\lambda_1-\lambda_V}=VY^{z_*-1}\le w$. Since $w\ge1$, the lemma follows. \end{proof} The moment of order $s$ over all of $\mathbb{T}$ depends on the values of $\mathcal{G}$ on all of $(0,1]$ (Corollary~\ref{cor:moment}). The truncated moment depends only on its values on $[z_*,\infty)$, apart from the factor $w^{s-2k}$. \begin{proposition}\label{prop:Aprune} Let $\mathcal{G}$, $u$ and $\Phi$ be as in Lemma~\textup{\ref{lem:Atrunc}}, and suppose that the hypotheses of that lemma on $\Phi$ hold. Let $s>2k$ and $00$, and suppose that $(4k+s)\gamma+2\varepsilon\le\xi z_*/(8k)$. If $\eta$ is sufficiently small, then \[ \int_{\mathfrak{m}(Q)}|f(\alpha)|^s\,\mathrm{d}\alpha\ll P^{s-k}Q^{-\xi z_*/k}\qquad(P^{1/2}\le Q\le P^{k/2}). \] \end{proposition} This is the analogue of \cite[Theorem~5.3]{BW2023}, in which the hypothesis $\Delta_s^*<0$ is replaced by $k\,\mathcal{G}(z_*)2k\ge12$, we have \begin{equation}\label{eq:zexp} \tfrac12s-\xi z_*\ge2\qquad\text{and}\qquad s-k-\xi z_*\ge2 . \end{equation} Let $Q_1:=\frac12P^{k/2}R^{-k}$, and let $P^{1/2}\le Q\le P^{k/2}$. \emph{Extreme arcs.} Let $\alpha\in\mathbb{T}\setminus\mathfrak{M}(Q_1;P)$. By Dirichlet's theorem there are coprime integers $a'$ and $q'$ with $1\le q'\le P^{k/2}$ and $|q'\alpha-a'|\le P^{-k/2}$. The number $\Theta_1:=q'+P^k|q'\alpha-a'|$ satisfies $\Theta_1\le2P^{k/2}$, and $\Theta_1>Q_1$, since otherwise $\alpha$ would lie in $\mathfrak{M}(Q_1;P)$. Hence $\Theta_1^{-1}+P^{-k/2}+P^{-k}\Theta_1\le5R^kP^{-k/2}$. Let $w_0\in\mathbb{N}$ be a number at which the maximum in the definition of $\tau(k)$ is attained; it exists, because $\tau(k)\ge\tau^\circ>0$ while the term that belongs to $w$ is at most $k/(4w^2)$, and apply \textup{(C4)} with $t'=2w_0$, so that $(k-2\Delta_{t'})/t'^2=\tau(k)\ge\tau^\circ$. As $t'\ge2$ we have $R^{2k/t'^2}\le P^{k\eta/2}$, and we obtain \[ f(\alpha)\ll P^{1-\tau^\circ+(k/2+1)\varepsilon_3+k\eta/2}+P^{1/2+\varepsilon_3} . \] Here $(k/2+1)\varepsilon_3+k\eta/2<\frac34(\tau^\circ-z_*)$, and $z_*+\varepsilon_3<\frac12$. So $|f(\alpha)|\le P^{1-z_*}$ when $P$ is large, and Lemma~\ref{lem:Atrunc}, applied with $Y=P$, $V=P^{1-z_*}$ and the indicator function of $\mathcal{A}(P,R)$ (so that $w=1$), gives \begin{equation}\label{eq:Aextreme} \begin{split} \int_{\mathbb{T}\setminus\mathfrak{M}(Q_1;P)}|f(\alpha)|^s\,\mathrm{d}\alpha&\le\int_{\mathbb{T}}|f(\alpha)|^s\, \mathbf{1}\bigl[|f(\alpha)|\le P^{1-z_*}\bigr]\,\mathrm{d}\alpha\\ &\ll P^{s-k-\xi z_*+4k\gamma+2\varepsilon}\le P^{s-k+\kappa}Q^{-2\xi z_*/k}. \end{split} \end{equation} \emph{Arcs of intermediate height.} Let $P^{1/2}\le Q'\le Q_1$, and let $M:=P(2Q')^{-2/k}R^{-1}$, as in \textup{(C2)} with $Q'$ in place of $Q$. Let $\pi\le R$ and $m\in\mathcal{B}'(M,\pi,R)$, and let $z\in\mathcal{A}(P/m,R)$, and put $Y:=P/(mz)$ and $V:=C_4P^{\varepsilon_3}(P/m)^{1-\tau(k)}z^{-1/2}$. By \textup{(C3)}, we have $|f(\alpha z^k;Y,\pi)|\le V$ for $\alpha\in\mathfrak{N}(Q';P/m)$. With $h(\beta):=|f(\beta;Y,\pi)|^s\,\mathbf{1}[|f(\beta;Y,\pi)|\le V]$ we therefore have \[ V_s(\pi,m,z)\le\int_0^1h(\alpha z^k)\,\mathrm{d}\alpha=\int_{\mathbb{T}}h(\beta)\,\mathrm{d}\beta , \] because $h$ is nonnegative and $1$-periodic. Here $f(\cdot\,;Y,\pi)=F_a$, where $a$ is the indicator function of $\mathcal{A}(Y,\pi)$, which belongs to $\mathcal{W}(Y)$ as $\pi\le R$. Suppose first that $Y\ge P^\gamma$. As $m\le MR$, we have $P/m\ge(2Q')^{2/k}\ge P^{1/k}$; since $\tau(k)\ge\tau^\circ>z_*$ and $\varepsilon_3<(\tau^\circ-z_*)/k$, it follows that \[ VY^{z_*-1}=C_4P^{\varepsilon_3}\Bigl(\frac Pm\Bigr)^{z_*-\tau(k)}z^{1/2-z_*}\le C_4P^{\varepsilon_3-(\tau^\circ-z_*)/k}z^{1/2}\le z^{1/2} \] for large $P$. Lemma~\ref{lem:Atrunc}, with $w\le z^{1/2}$, gives \[ \int_{\mathbb{T}}h(\beta)\,\mathrm{d}\beta\ll z^{(s-2k)/2}\Bigl(\frac P{mz}\Bigr)^{s-k-\xi z_*}P^{4k\gamma+2\varepsilon} =\Bigl(\frac Pm\Bigr)^{s-k-\xi z_*}z^{\xi z_*-s/2}P^{4k\gamma+2\varepsilon}. \] If $Y2$, we have \[ \sum_{MM}m^{-(s-\xi z_*)}\ll P^{s-k}M^{1-s}\Bigl(\frac PM\Bigr)^{-\xi z_*}. \] Thus $\sum_{q\le Q'}I_q(M;\mathfrak{N})\ll P^{\varepsilon_3+\eta+(4k+s)\gamma+2\varepsilon}P^{s-k}M^{1-s} (P/M)^{-\xi z_*}$. Now we sum \textup{(C1)} over $q\le Q'$. As $\mathfrak{N}(Q';P)\subseteq\bigcup_{q\le Q'} \mathfrak{N}_q(Q';P)$ and $R^{s-1}=P^{\eta(s-1)}$, we have \[ \int_{\mathfrak{N}(Q';P)}|f(\alpha)|^s\,\mathrm{d}\alpha\ll P^{s-k+\kappa}\Bigl(\frac PM\Bigr)^{-\xi z_*} +Q'^{\,2}M^sP^{\varepsilon_3-k}. \] Here $P/M=(2Q')^{2/k}R\ge Q'^{\,2/k}$, and $Q'^{\,2}M^s\le P^sQ'^{\,2-2s/k}\le P^sQ'^{\,-2\xi z_*/k}$, because $s-k\ge\xi z_*$. Hence \begin{equation}\label{eq:Ainter} \int_{\mathfrak{N}(Q';P)}|f(\alpha)|^s\,\mathrm{d}\alpha\ll P^{s-k+\kappa}Q'^{\,-2\xi z_*/k}\qquad (P^{1/2}\le Q'\le Q_1). \end{equation} \emph{Conclusion.} If $Q\ge Q_1$, then $\mathfrak{m}(Q)\subseteq\mathbb{T}\setminus\mathfrak{M}(Q_1;P)$, and \eqref{eq:Aextreme} applies. If $QQ\ge P^{1/2}$ for $0\le j\le J_0$, by the choice of $J_0$. By \eqref{eq:Aextreme} and \eqref{eq:Ainter}, we have \[ \int_{\mathfrak{m}(Q)}|f(\alpha)|^s\,\mathrm{d}\alpha\ll P^{s-k+\kappa}Q^{-2\xi z_*/k}\Bigl(1+\sum_{i\ge0} 2^{-2i\xi z_*/k}\Bigr)\ll P^{s-k+\kappa}Q^{-2\xi z_*/k}. \] Finally $P^\kappa\le Q^{2\kappa}\le Q^{\xi z_*/k}$, as $Q\ge P^{1/2}$ and $2\kappa\le\frac34\xi z_*/k$. \end{proof} When $z\,\mathcal{G}(z)$ is concave, the conclusion is the one that is described in Remark~\ref{rem:height}; the point of the proposition is that the concavity is not needed. \emph{The theorem.} As before, the pair $(\Psi^\circ,\tau^\circ)$ denotes one of the two pairs of \S\ref{ss:Apot}. \begin{theorem}\label{thm:Arec} Let $k\ge6$. Let $n\ge1$ be an integer and $c_0c_j$ for $1\le j\le n$; \item[\textup{(R3)}] $\Psi^\circ(c_{n-1})-\Psi^\circ(c_n)\ge\frac2k$. \end{enumerate} Put $\mathcal{Y}:=k\,\Psi^\circ(c_n)+2n$, and suppose that $\mathcal{Y}\ge4.19\,k$. \textup{(i)} One has $G(k)\le\lfloor\mathcal{Y}\rfloor+1$. \textup{(ii)} The conclusions of Theorem~\textup{\ref{thm:mvexplicit}}, with $\varrho^\dagger$ as defined there, hold for $k$ and every real number $s_1>\mathcal{Y}$, and the conclusions of Theorem~\textup{\ref{thm:almostexplicit}} hold for $k$ and every integer $\ell>\frac12\mathcal{Y}$. The parameters are chosen in terms of $k$, of $s_1$ or $\ell$, of the numbers $c_0,\dots,c_n$, and of the case. \end{theorem} Theorems~\ref{thm:almostexplicit} and~\ref{thm:mvexplicit} are stated for $k\ge37$ and for an admissible number $\Theta$; part~(ii) requires neither. Condition (R2) says that every step that begins in $[c_{j-1},c_j)$ ends beyond $c_j$. It can be verified by means of Lemma~\ref{lem:Achain}(v): if $\tilde\theta$ is as in that lemma, on an interval that contains $[2c_{j-1},2c_j]$, then (R2) holds for $j$ as soon as $c_j0$, because $\sigma_k$ is left-continuous. So the paragraph of \S\ref{ss:Apot} on the parameters applies with this $\Theta$: the parameters $\delta_0$, $\varepsilon_2$, $\gamma$ and $\varepsilon$ are subject to \eqref{eq:Aparams}, and $\theta(\cdot)$ is defined as there. We suppose that $\delta_0$ and $\varepsilon_2$ are so small that \begin{equation}\label{eq:Asmallpar} \delta_0+\varepsilon_2\le\epsilon\qquad\text{and}\qquad z_0\le(1-\delta_0)\,c_n . \end{equation} Then $\theta(z_0)\ge\theta_k(2c_n)\ge\frac32$, by \eqref{eq:Athetaz}. \emph{The steps.} For $0c_{j-1}\ge c_0$, so that $\theta_k(2v')\le\Theta$, and $\theta(v)=\theta_k(2v')$ by \eqref{eq:Athetaz}. For $0\le a\le\frac12$ one has \[ \frac{1-a}{1-a/(1+\varepsilon_2)}=1-\frac{a\,\varepsilon_2}{1+\varepsilon_2-a}\ge1-\varepsilon_2 ; \] with $a=\theta(v)/k$ this shows that \[ S(v)\ge(1-\delta_0)(1-\varepsilon_2)\,\frac{v'}{1-\theta_k(2v')/k}. \] If $v'z_0$. Let $j\le n$ and $z\ge c_{j-1}$. If $z\ge z_0$, then $\mathcal{G}(z)\le\Psi^\circ(z_0)=\Psi^\circ(c_n)+\frac2k$. If $z\mathcal{Y}$. Then $s>4.19\,k\ge4k+1$, by hypothesis. Fix $z_*$ with $c_0(3k-3)/(2k)>1$. Put $\nu_0:=\min\{\xi z_*/k,\,1/(6k)\}$. For $P^{1/2}\le Q\le P^{k/2}$, Proposition~\ref{prop:Aprune} gives \[ \int_{\mathfrak{m}(Q)}|f|^s\,\mathrm{d}\alpha\ll P^{s-k}Q^{-\xi z_*/k}\le P^{s-k}Q^{-\nu_0}. \] For $1\le Q4.19\,k$, which holds because $2\ell>\mathcal{Y}\ge4.19\,k$. In the proof of Theorem~\ref{thm:mvexplicit} the inequality $s_1>4.19\,k$ is used only to show that $\varrho^\dagger>1.5$, and this is not needed: what the proof uses is that $0<\varrho^\dagger\le(s_1-k-5)/(2k)<(s_1-2\lfloor k/2\rfloor-4)/(2k)$, which holds because $s_1>4k+1$. These proofs do not use the hypothesis $k\ge37$, and they are the same in both cases. As $2\ell>\mathcal{Y}$ and $s_1>\mathcal{Y}$, what has just been shown applies with $s=2\ell$ and with $s=s_1$. This gives~(ii). \end{proof} The number $k\,\mathcal{G}(c_0)$ in this proof cannot be lowered by another choice of the potential, as long as the potential is to be nonincreasing, to agree with $\Psi^\circ$ from some point $z_0$ on, and to satisfy (G3) below $z_0$: the function $\mathcal{G}$ is the least one with these properties. In comparison with Theorem~\ref{thm:Aexplicit} there are two gains. The potential of that theorem decreases along a step that begins at $v$ by an amount that is formed with the values of $\theta(\cdot)$ on the whole step, and these are smaller than $\theta(v)$; summed over the steps between $\tau_k$ and $z_k$, this costs roughly $\log\bigl(\Theta_k/\theta_k(2z_k)\bigr)$ in $\mathcal{Y}_k(\Theta_k)$. Secondly, the sequence may end at any point below $\frac12\zeta^\circ$, whereas the seed $z_k$ is prescribed (for $k=37$ one has $z_{37}=\frac1{10}$, and the sequence that is used below ends at $c_n=0.1048\ldots$). \subsection{Numerical values}\label{ss:Anum} \emph{The computation.} The sequences of Theorem~\ref{thm:Arec} are constructed by the program of \S\ref{ss:numerics}, with directed rounding, as follows. Let \[ D_k:=\min\bigl\{\lceil1.45\sqrt k\rceil+7,\ k-1\bigr\}, \] and call the numbers $p_D:=1/(D(D+1))$ with $3\le D\le D_k$, and the numbers $2^{-J-1}$ with $1\le J\le40$, the \emph{points of division}. For a point of division $b$ let $J(b)$ be the largest integer $J$ with $0\le J\le\min\{k-2,40\}$ and $2^{J+1}b\le1$, and let $D(b)$ be the largest integer $D$ with $3\le D\le D_k$ and $b\le p_D$, if there is one. At the levels $t\le b$ we use chains in the sense of Lemma~\ref{lem:Achain}(iii) in which the intervals $(1,R_{J'}(t)]$ have $J'\le J(b)$ and the tents $\mathcal{T}_D$ have $D\le D(b)$; their types are admissible for every $t\in(0,b]$ in the sense of Lemma~\ref{lem:Achain}(iv). The program uses the following chains. First, the interval $(1,R_{J(b)}(t)]$ alone. Secondly, the interval $(1,R_{J'}(t)]$ followed by tents $\mathcal{T}_{D_1},\dots,\mathcal{T}_{D_2}$ with $D_2\le D(b)$, for each $D_1$ with $J'=\min\{J(b),J_c(D_1)\}$ and with $J'=\min\{J(b),J_c(D_1)+1\}$, where $J_c(D):=\lfloor\frac12(D^2-5)\rfloor$ is the largest $J$ for which the number $a_1=2(J+2)/(D^2-1)$ of the condition $l_D\le R_J(t)$ is at most $1$. Thirdly, for the words $w\in\mathcal{W}$ that are admissible for $k$ and their indices $\nu$, the interval $\mathcal{P}_{w,\nu}$, preceded by $(1,R_{J(b)}(t)]$ if $c_w>0$, and followed by no tents or by tents $\mathcal{T}_{D_1},\dots,\mathcal{T}_{D_2}$ with $D_1\le8$ and $D_2\le D(b)$. In the chains with tents, each pair $\mathcal{T}_{D-1},\mathcal{T}_D$ of consecutive tents may be bridged by $\mathcal{M}_D$, that is, replaced by $\mathcal{T}_{D-1},\mathcal{M}_D,\mathcal{T}_D$, and the chain may end with $\mathcal{M}_{D_2+1}$ after $\mathcal{T}_{D_2}$, if $D_2+1\le k-1$, with $\mathcal{Q}_{D_2,1}$ or $\mathcal{Q}_{D_2,2}$ after $\mathcal{T}_{D_2}$, if $D_2\le k-2$, or with $\mathcal{N}_{D_2+1,1}$ or $\mathcal{N}_{D_2+1,2}$ after $\mathcal{T}_{D_2}$, if $D_2+1\le k-2$. Finally, the chains $(1,R_{J(b)}(t)],\mathcal{M}_D$ with $3\le D\le\min\{8,k-1\}$, and $(1,R_{J(b)}(t)],\mathcal{N}_{D,\iota}$ with $3\le D\le\min\{8,k-2\}$ and $\iota\in\{1,2\}$. For $02c$. By Lemma~\ref{lem:Achain}(v), applied to each of the chains, we have \[ \frac{v}{1-\theta_k(2v)/k}\ge\frac{c}{1-\hat\theta_b(2c)/k}\qquad(c\le v\le\tfrac12b). \] If the right hand side exceeds $\frac12b$, the range of $v$ is continued beyond $\frac12b$ by means of the next point of division $b'$, whose chains are used with their values at $b$: in the same way, we have \[ \frac{v}{1-\theta_k(2v)/k}\ge\frac{\frac12b}{1-\hat\theta_{b'}(b)/k}\qquad(\tfrac12b\le v\le\tfrac12b'); \] and so on, if necessary. The number $c_j$ is a floating point number below the least of the bounds obtained in this way, so that (R2) holds for $j$. The second bound matters because $\theta_k$ may jump downwards at the points $p_D$ (the function $\theta^\star_\circ$ of \eqref{eq:Atsp} jumps there by $\frac{D-3}{2(3D+1)}$ when $D\ge8$; the limit function $\theta^\star$ is continuous there for $D\ge8$, but the chains on the two sides of $p_D$ are different): a step that begins shortly before $\frac12p_D$ would otherwise end beyond the end points of steps that begin after it. At the points $2^{-J-1}$ the right end point of $\mathcal{I}_0\cup\dots\cup\mathcal{I}_J$ does not jump, since $R_J(2^{-J-1})=R_{J-1}(2^{-J-1})$; these points are needed because the chains that are used on a range must be admissible throughout it. The sequence is continued as long as $c_j<\frac12\zeta^\circ$, that is, as long as $c_j<\frac{13}{120}$ in the first case and $c_j<\frac1{10}$ in the second. Among the indices $n\ge1$ for which (R3) holds the program takes the one for which its upper bound for $k\,\Psi^\circ(c_n)+2n$ is least. We denote this upper bound by \[ \mathcal{Y}^\flat(k)\quad(6\le k\le5000)\qquad\text{and}\qquad\mathcal{Y}^{\mathrm{VW}}(k)\quad(7\le k\le20) \] in the first and in the second case, respectively, and put \begin{gather*} G^\flat(k):=\lfloor\mathcal{Y}^\flat(k)\rfloor+1,\qquad\ell^\flat(k):=\lfloor\tfrac12\mathcal{Y}^\flat(k)\rfloor+1,\\ G^{\mathrm{VW}}(k):=\lfloor\mathcal{Y}^{\mathrm{VW}}(k)\rfloor+1,\qquad \ell^{\mathrm{VW}}(k):=\lfloor\tfrac12\mathcal{Y}^{\mathrm{VW}}(k)\rfloor+1 . \end{gather*} In the second case the numbers $\Psi_k^{\mathrm{VW}}(c_j)$ are computed exactly, as fractions, the points $c_j$ being floating point numbers. In the first case the logarithms in (R3) and in $\Psi(c_n)$ are evaluated with directed rounding, and both are certified a second time in decimal arithmetic with $40$ digits; see \S\ref{ss:Averif}. \begin{proposition}\label{prop:Arec} \textup{(i)} Let $6\le k\le5000$. Then $G(k)\le G^\flat(k)$. If $k$ is not a power of $2$, then $G^+(k)\le\ell^\flat(k)$. The conclusions of Theorem~\textup{\ref{thm:mvexplicit}} hold for every real number $s_1>\mathcal{Y}^\flat(k)$. \textup{(ii)} Let $6\le k\le5000$. Then $G^\flat(k)\mathcal{Y}^\flat(k)$. (ii), (iii) We have computed $\mathcal{Y}^\flat(k)$ for each $k$. The assertions are inequalities between rational numbers and rigorous bounds for $C_0^\star$, and they were checked, in exact arithmetic, for each $k$ in the ranges stated; the three inequalities with $-\sqrt k$ and $-\frac12\sqrt k$ fail for $k=638$, $470$ and $872$, respectively, in the order in which they are stated. The largest values of $(G^\flat(k)-C_0^\star k)/\sqrt k$, of $(\mathcal{Y}^\flat(k)-C_0^\star k)/\sqrt k$ and of $(\ell^\flat(k)-\frac12C_0^\star k)/\sqrt k$ are $-0.4660\ldots$, $-0.5942\ldots$ and $-0.1668\ldots$, all attained at $k=57$, where $G^\flat(57)=351$ and $\ell^\flat(57)=176$; the largest value of $G^\flat(k)/k$ is $\frac{30921}{4985}=6.2028\ldots$, attained at $k=4985$, where $G^\flat(k)=30921$. \end{proof} \begin{table}[ht] \caption{The numbers $\mathcal{Y}^\flat(k)$, $G^\flat(k)$ and $\ell^\flat(k)$ of Proposition~\ref{prop:Arec}, with the number $n$ of steps of the sequence that is used: one has $G(k)\le G^\flat(k)$, and $G^+(k)\le\ell^\flat(k)$ when $k$ is not a power of $2$. The last column contains the bound for $G(k)$ known before: that of \eqref{eq:BW} for $k\le36$, and that of Table~\ref{tab:values} for $k\ge37$.}\label{tab:Arec} \begin{tabular}{@{}rrcrrr@{\hspace{2em}}rrcrrr@{}} \toprule $k$ & $n$ & $\mathcal{Y}^\flat(k)$ & $G^\flat$ & $\ell^\flat$ & before & $k$ & $n$ & $\mathcal{Y}^\flat(k)$ & $G^\flat$ & $\ell^\flat$ & before\\ \midrule 21 & 17 & 121.6761 & 122 & 61 & 153 & 41 & 40 & 248.8133 & 249 & 125 & 297\\ 22 & 18 & 128.0010 & 129 & 65 & 161 & 50 & 50 & 306.0160 & 307 & 154 & 353\\ 23 & 19 & 134.3320 & 135 & 68 & 169 & 57 & 57 & 350.0322 & 351 & 176 & 405\\ 24 & 21 & 140.6089 & 141 & 71 & 178 & 64 & 65 & 393.1624 & 394 & 197 & 456\\ 25 & 22 & 146.9290 & 147 & 74 & 186 & 100 & 101 & 614.7822 & 615 & 308 & 680\\ 26 & 23 & 153.2301 & 154 & 77 & 194 & 128 & 130 & 787.0870 & 788 & 394 & 854\\ 27 & 24 & 159.5223 & 160 & 80 & 203 & 200 & 204 & 1231.2630 & 1232 & 616 & 1306\\ 28 & 25 & 165.7901 & 166 & 83 & 211 & 256 & 262 & 1577.3910 & 1578 & 789 & 1662\\ 29 & 26 & 172.1266 & 173 & 87 & 220 & 470 & 485 & 2901.5824 & 2902 & 1451 & 3024\\ 30 & 27 & 178.4739 & 179 & 90 & 229 & 471 & 486 & 2907.6987 & 2908 & 1454 & 3030\\ 31 & 28 & 184.8712 & 185 & 93 & 237 & 500 & 516 & 3087.3875 & 3088 & 1544 & 3215\\ 32 & 29 & 191.2973 & 192 & 96 & 246 & 638 & 659 & 3942.0152 & 3943 & 1972 & 4091\\ 33 & 31 & 197.6174 & 198 & 99 & 254 & 639 & 660 & 3948.1574 & 3949 & 1975 & 4098\\ 34 & 32 & 204.0533 & 205 & 103 & 263 & 872 & 902 & 5392.0269 & 5393 & 2697 & 5577\\ 35 & 33 & 210.5121 & 211 & 106 & 272 & 873 & 903 & 5398.2360 & 5399 & 2700 & 5583\\ 36 & 34 & 216.9282 & 217 & 109 & 281 & 1000 & 1036 & 6185.5549 & 6186 & 3093 & 6389\\ 37 & 35 & 223.3367 & 224 & 112 & 273 & 2000 & 2078 & 12388.2484 & 12389 & 6195 & 12725\\ 38 & 36 & 229.7112 & 230 & 115 & 279 & 3000 & 3122 & 18594.7947 & 18595 & 9298 & 19056\\ 39 & 37 & 236.1359 & 237 & 119 & 285 & 4985 & 5197 & 30920.0283 & 30921 & 15461 & 31614\\ 40 & 39 & 242.4291 & 243 & 122 & 291 & 5000 & 5213 & 31013.1898 & 31014 & 15507 & 31709\\ \bottomrule \end{tabular} \end{table} For example, one has $G(21)\le122$, $G(37)\le224$, $G(50)\le307$, $G(100)\le615$, $G(1000)\le6186$ and $G(5000)\le31014$ (Table~\ref{tab:Arec}), and $\ell^\flat(k)=112$, $154$, $308$ and $3093$ for $k=37$, $50$, $100$ and $1000$. For $21\le k\le36$ the numbers $G^\flat(k)$ are smaller than the bounds of \eqref{eq:BW} by $31$ to $64$, and the largest value of $G^\flat(k)/k$ in this range is $\frac{205}{34}=6.0294\ldots$, for $k=34$. For $k=6$ one has $\mathcal{Y}^\flat(6)=31.2470\ldots$, so that $G^\flat(6)=32$ and $\ell^\flat(6)=16$ (see Remark~\ref{rem:Asmallk}). For $37\le k\le5000$ the number $n$ of steps lies between $0.94\,k$ and $1.05\,k$, and the end points $c_n$ lie between $0.1036$ and $\frac{13}{120}$; for $6\le k\le36$ they lie between $0.0730$ and $0.1083$. There is no subdivision on which the result depends, and the effect of the rounding on $\mathcal{Y}^\flat(k)$ is of the order of $10^{-8}$ at most; so the integers $G^\flat(k)$ are those that the chains give. In a few cases $\mathcal{Y}^\flat(k)$ lies just below an integer, or just above one: for $37\le k\le5000$ its fractional part exceeds $0.999$ for three values of $k$, the largest being $0.99989\ldots$ for $k=917$, and it is smaller than $0.001$ for five values of $k$, the smallest being $0.00024\ldots$ for $k=3227$; for $6\le k\le36$ the numbers $\mathcal{Y}^\flat(k)$ lie below the next integer by at least $0.048$. We have not carried the recursion beyond $k=5000$; for larger $k$ the bounds of this appendix rest on Theorem~\ref{thm:Aexplicit} and Proposition~\ref{prop:Alarge}. \begin{proposition}\label{prop:Arecsmall} For $7\le k\le20$ one has $G(k)\le G^{\mathrm{VW}}(k)$, where the numbers $G^{\mathrm{VW}}(k)$ are those of Table~\textup{\ref{tab:Arecsmall}}; that is, \begin{gather*} G(7)\le33,\quad G(8)\le39,\quad G(9)\le45,\quad G(10)\le51,\quad G(11)\le57,\\ G(12)\le63,\quad G(13)\le70,\quad G(14)\le76,\quad G(15)\le82,\quad G(16)\le88,\\ G(17)\le95,\quad G(18)\le101,\quad G(19)\le107,\quad G(20)\le113 . \end{gather*} Moreover, the conclusions of Theorem~\textup{\ref{thm:almostexplicit}} hold for every integer $\ell\ge\ell^{\mathrm{VW}}(k)$, and those of Theorem~\textup{\ref{thm:mvexplicit}} for every real number $s_1>\mathcal{Y}^{\mathrm{VW}}(k)$. In particular $G^+(k)\le\ell^{\mathrm{VW}}(k)$ when $k\ne8,16$; the numbers $\ell^{\mathrm{VW}}(k)$ are shown in Table~\textup{\ref{tab:Arecsmall}}. \end{proposition} \begin{proof} This is Theorem~\ref{thm:Arec} in the second case. The program verifies (V1)--(V3) and (R3) exactly; it confirms (R1); the points $c_j$ are constructed in such a way that (R2) holds; and the numbers $\mathcal{Y}^{\mathrm{VW}}(k)$ exceed $4.19\,k$. Finally $2\ell^{\mathrm{VW}}(k)>\mathcal{Y}^{\mathrm{VW}}(k)$. \end{proof} \begin{table}[ht] \caption{The bounds $G(k)\le G^{\mathrm{VW}}(k)$ and $G^+(k)\le\ell^{\mathrm{VW}}(k)$ of Proposition~\ref{prop:Arecsmall}, with the number $T_k$ of \S\ref{ss:Apot}, the number $n$ of steps and the end point $c_n$ of the sequence that is used; for $k=8$ and $k=16$ the numbers $\ell^{\mathrm{VW}}(k)$ are admissible in Theorem~\ref{thm:almostexplicit}(ii). The columns headed `before' contain the bounds known before: for $G(k)$ those of \cite[Theorem~1.1]{Woo2016} for $k\le13$ and of \cite[Theorem~1.3]{BW2023} for $k\ge14$, and for $G^+(k)$ those of \cite[Theorem~9.1]{BW2023}, with the number of \cite[Theorem~9.2]{BW2023} for $k=16$; for $k=8$, where $G^+(8)=32$, there is no entry. The bounds of \cite{Dav2026} are compared after Theorem~\ref{thm:Aall} and Theorem~\ref{thm:Aalmost}.}\label{tab:Arecsmall} \begin{tabular}{@{}rcrccrrrr@{}} \toprule $k$ & $T_k$ & $n$ & $c_n$ & $\mathcal{Y}^{\mathrm{VW}}(k)$ & $G^{\mathrm{VW}}(k)$ & before & $\ell^{\mathrm{VW}}(k)$ & before\\ \midrule 7 & 48.47 & 2 & 0.0695 & 32.1041 & 33 & 31 & 17 & 22\\ 8 & 58.01 & 3 & 0.0796 & 38.1574 & 39 & 39 & 20 & --\\ 9 & 67.51 & 4 & 0.0844 & 44.3605 & 45 & 47 & 23 & 29\\ 10 & 76.95 & 5 & 0.0886 & 50.5027 & 51 & 55 & 26 & 33\\ 11 & 86.40 & 6 & 0.0906 & 56.6732 & 57 & 63 & 29 & 37\\ 12 & 95.66 & 7 & 0.0922 & 62.9089 & 63 & 72 & 32 & 41\\ 13 & 104.95 & 8 & 0.0930 & 69.1032 & 70 & 81 & 35 & 44\\ 14 & 114.19 & 9 & 0.0941 & 75.2936 & 76 & 89 & 38 & 45\\ 15 & 123.40 & 10 & 0.0944 & 81.5382 & 82 & 97 & 41 & 49\\ 16 & 132.60 & 11 & 0.0946 & 87.8039 & 88 & 105 & 44 & 53\\ 17 & 141.78 & 12 & 0.0949 & 94.0387 & 95 & 113 & 48 & 57\\ 18 & 150.95 & 13 & 0.0950 & 100.2900 & 101 & 121 & 51 & 61\\ 19 & 160.07 & 14 & 0.0949 & 106.6127 & 107 & 129 & 54 & 65\\ 20 & 169.18 & 15 & 0.0948 & 112.8939 & 113 & 137 & 57 & 69\\ \bottomrule \end{tabular} \end{table} The tables of \cite{VW2000} enter in two places: through the function $\Psi_k^{\mathrm{VW}}$, which is smaller than $\Psi$ in the range that matters, and through the exponent $\tau_k^{\mathrm{VW}}$, which is larger than $\tau_k$; the first of the two is the more important one. The numbers $\mathcal{Y}^{\mathrm{VW}}(k)$ lie below the next integer by at least $0.09$. For $k=17$ the number $\mathcal{Y}^{\mathrm{VW}}(17)=94.0387\ldots$ exceeds $94$ only slightly, so that the bound $G(17)\le94$ is missed narrowly. Without the tables, that is, in the first case, the recursion gives $G^\flat(k)=37$, $42$, $48$, $54$, $60$, $67$, $73$, $79$, $85$, $91$, $97$, $104$, $110$ and $116$ for $7\le k\le20$, which is larger by $2$ to $4$, and the numbers $\ell^\flat(k)$ are larger than $\ell^{\mathrm{VW}}(k)$ by $1$ or $2$. \subsection{Fractional parts}\label{ss:Afrac} Theorem~\ref{thm:Afrac} rests on Theorem~\ref{thm:Aexplicit}(iii), and not on the recursion of \S\ref{ss:Arec}. The reason is that the proof of Theorem~\ref{thm:fracexplicit} uses the potential through Corollary~\ref{cor:moment}, with numbers $r=2s_0$ that are smaller than $k\,\mathcal{G}(\tau_k)$: it requires an upper bound for $k\,z\,\mathcal{G}(z)-r\,z$ for all $z\in(0,1]$, and thus bounds for the potential at all points, whereas Theorem~\ref{thm:Arec} controls it along a single sequence of steps. For the potential of Theorem~\ref{thm:Aexplicit} these bounds are supplied by Lemma~\ref{lem:pot}(iv). The recursive potential could be bounded at all points by means of several sequences; one would expect to gain a few units in $2s_0$, as for $G(k)$, and we have not carried this out. \emph{The numbers $B^\natural(k)$ and $\Theta^\natural(k)$.} Let $k\ge37$. We bound $\mathcal{Y}_k(\Theta)$ from above, for a suitable $\Theta$, by means of the chains that are described at the beginning of \S\ref{ss:Anum}; for $k\ge37$ one has $D_k=\lceil1.45\sqrt k\rceil+7$. Recall that each of these chains, used with a point of division $b$, has $\hat\theta\le\theta_k$ on $(0,b]$, and that $\hat\theta$ is concave there. Let $01$. The linear function $c-c't$ that agrees with $\hat\theta$ at $t'$ and $t''$ is a positive minorant of $\hat\theta$, and hence of $\theta_k$, on $[t',t'']$, and \[ \int_{t'}^{t''}\frac{\mathrm{d}t}{t\,\theta_k(t)}\le\int_{t'}^{t''}\frac{\mathrm{d}t}{t\,(c-c't)}=\frac1c\, \log\frac{t''\,\hat\theta(t')}{t'\,\hat\theta(t'')} . \] The program of \S\ref{ss:numerics} divides $[2\tau_k,2z_k]$ into subintervals $[t',t'']$, and on each of them it uses one chain in this way, chosen so as to make the right hand side small. The subdivision contains the points of division of \S\ref{ss:Anum} that lie between $2\tau_k$ and $2z_k$; the range $(\frac1{12},2z_k]$ is divided further into about $64$ parts, each range between two consecutive numbers $p_D$ into about $32$ parts, and the remaining range, from $2\tau_k$ to the smallest of these numbers, into about $256$ parts, in geometric progression in each case (the points $2^{-J-1}$ cut some of these ranges into two, and the parts are distributed in proportion to the logarithmic lengths). Finally the following numbers are added to the subdivision: the number $\check t_3$ of Lemma~\ref{lem:Alarge} and the number $(7k+408)/(110k+1936)$, which are defined by these formulas for all $k$ (at the latter the chain of the word $AABABABAA$ and the chain $(1,R_2(t)],\mathcal{T}_3$ give the same value when $k$ is large); the numbers $\frac{17}{190}$, $\frac3{34}$, $\frac3{55}$ and the inner end points of the pieces of $\theta^\star$ on $(p_{D+1},p_D]$ with $4\le D\mathcal{Y}^\natural(k)-2\chi_0\,k/\Theta'$, namely the least integer that exceeds one half of the upper bound that the program computes for the right hand side; in all cases this integer exceeds $\frac52k$. Note that $9.027901\,\Theta'\,b^\natural(k)/2$ equals $2$. So by \eqref{eq:Anat} and Theorem~\ref{thm:Aexplicit}(iii), applied with $\Theta=\Theta^\natural(k)$ and $b=b^\natural(k)$, the bound \eqref{eq:fracE} holds for every real number $\rho<1/E^\natural(k)$. \begin{proposition}\label{prop:Afrac} \textup{(i)} Let $37\le k\le5000$. Then one has $E^\natural(k)<10.7336\,k-1.51\sqrt k$, $E^\natural(k)<10.8\,k$ and $E^\natural(k)\mathcal{Y}_k(\Theta)-2\chi_0\,k/\Theta'$. Then \[ 2s_0+(1+b)\cdot4.5139505\,k<10.7336\,k-2.37\sqrt k+\tfrac73\log k+8.2 . \] \end{proposition} \begin{proof} (i) We have evaluated an upper bound for $E^\natural(k)$ for each of these $k$ from the numbers $B^\natural(k)$ and $\Theta^\natural(k)$, and the inequalities were checked for these bounds. In all cases $s_0^\natural(k)>\frac52k$, as stated above. The largest value of $(E^\natural(k)-10.7336\,k)/\sqrt k$ is $-1.5105\ldots$, attained at $k=85$; one has $E^\natural(k)<10.7336\,k-1.97\sqrt k$ for $699\le k\le5000$, whereas the computed value of $E^\natural(698)$ exceeds $10.7336\cdot698-1.97\sqrt{698}$. The largest value of $E^\natural(k)/k$ is $10.7032\ldots$, at $k=4982$, and $k(\log k+8.02113)-E^\natural(k)>44.9$ for all $k$. (ii) Write $n:=D_\star$. Then $\Theta=n/(1+n/k)$, so that $k/\Theta=k/n+1$ and $k/\Theta'=k/n+\frac12$. In the proof of Proposition~\ref{prop:Alarge} we saw that $n\ge67$, that $k/nk/(\sqrt k-3)>\sqrt k+3$. As $b\cdot4.5139505\,k=2k/\Theta'$, the number on the left of the assertion is $2s_0+4.5139505\,k+2k/\Theta'$. If $2s_0\le5k+1$, it is at most $9.52\,k+2\sqrt k+15$, which is smaller than the right hand side of the assertion, as $1.2\,k>4.37\sqrt k+7$. Otherwise \[ 2s_0\le\mathcal{Y}_k(\Theta)+2-2\chi_0\,\frac k{\Theta'} . \] By Proposition~\ref{prop:Alarge}, and as $C_0^\star+4.5139505<10.7336$ and $\chi_0-1=\log2$, it follows that \[ 2s_0+4.5139505\,k+\frac{2k}{\Theta'}<10.7336\,k-c_\star\sqrt k+\tfrac73\log k+13-2\log2\cdot\frac k{\Theta'} . \] Finally one has $2\log2\cdot k/\Theta'>1.3862(\sqrt k+3.5)>1.3862\sqrt k+4.85$, while $c_\star+1.3862>2.37$ and $13-4.85<8.2$. This proves (ii). \end{proof} \begin{table}[ht] \caption{The number $E^\natural(k)$ of \S\ref{ss:Afrac}: one has $\min_{n\le N}\|\alpha n^k\|5000$ the numbers are defined and computed in the same way as for $k\le5000$, with directed rounding, and \eqref{eq:fracE} holds for $\rho<1/E^\natural(k)$ in these cases as well.}\label{tab:Afrac} \begin{tabular}{@{}rrcrrr@{}} \toprule $k$ & $\Theta^\natural(k)$ & $b^\natural(k)$ & $2s_0^\natural(k)$ & $E^\natural(k)$ & $E^\sharp(k)$\\ \midrule 37 & 6.479 & 0.0624 & 208 & 385.44 & 419.02\\ 46 & 6.777 & 0.0606 & 262 & 482.22 & 513.64\\ 50 & 6.875 & 0.0600 & 286 & 525.24 & 555.70\\ 100 & 10.560 & 0.0397 & 588 & 1057.33 & 1103.40\\ 200 & 15.614 & 0.0273 & 1194 & 2121.41 & 2180.79\\ 500 & 26.006 & 0.0166 & 3028 & 5322.43 & 5435.31\\ 1000 & 37.615 & 0.0116 & 6102 & 10668.12 & 10850.81\\ 2000 & 54.460 & 0.0080 & 12272 & 21372.35 & 21681.83\\ 5000 & 87.573 & 0.0050 & 30826 & 53508.94 & 54167.39\\ $10^4$ & 125.397 & 0.0035 & 61810 & 107108.00 & 108306.22\\ $10^5$ & 401.897 & 0.0011 & 620710 & 1072601.69 & 1082770.24\\ $10^6$ & 1276.717 & 0.0003 & 6215630 & 10731146.02 & 10827267.17\\ \bottomrule \end{tabular} \end{table} The exponent of \cite{BW2025} is $1/(k(\log k+8.02113))$. By Proposition~\ref{prop:Afrac}(i) it is smaller than $1/E^\natural(k)$ for $37\le k\le5000$, and for $k>5000$ it is smaller than $1/(10.7336\,k)$. The remarks on the limit $k\to\infty$ at the end of \S\ref{ss:weyl} apply with $C_0^\star$ in place of $C_0$. Indeed, let $\Theta$ be as in Lemma~\ref{lem:Alarge} and $b_0=1/\log k$. The proof of Proposition~\ref{prop:Alarge} shows that, in the limit $\delta_0,\varepsilon_2\to0$, one has $\mathcal{G}(u_\Theta)\le C_0^\star+O(k^{-1}\log k)$, while $a_*(b_0)=O(k^{-1/2}\log k)$; so Lemma~\ref{lem:BWthm} applies with $u=2s_0=(C_0^\star+o(1))k$ and $\Delta_u=b_0$. For instance, the number $\xi_1$ now tends to $1/(1+2C_0^\star/9.027901)=0.4205\ldots$. The conclusions of \S\ref{ss:decide} remain valid as well. The second condition in \eqref{eq:tcond} becomes $t/(kb)>2C_0^\star\xi/(1-\xi)$, and this is stronger than the first one exactly when $\xi>0.4205\ldots$; so the large sieve estimate does not reduce the number of variables. In the proof of Proposition~\ref{prop:exponents}(i) the inequality $2/\theta^*(2u)<1/(1-u)$ for $u<\frac1{10}$ is replaced by $2/\theta^\star(2u)<1/(1-u)$ for $u<\frac{41}{382}$ (see the remarks after Lemma~\ref{lem:Alimit}), and $v_c$ by $v_c^\star=1+\log\frac{341}{41}-\frac{41}{341}=2.9980\ldots$. In part~(ii) the bound $v^{-2}\le(v_c^\star)^{-2}$ alone no longer suffices, but the exponents for $v_c^\star\le v\le v_c$ are at least $0.109$ (\S\ref{ss:Bmeaning}(h)), so that the largest value of $(1-2d)/v^2$ is again $1/9.026725\ldots$, and the leading constant is not affected by the exponent $\tau_k$. The numerical values quoted in \S\ref{ss:decide} refer to $C_0$ and change accordingly. The exponents that belong to $C_0^\star$ are tabulated in Appendix~\ref{s:appB}. \subsection{Proofs of the theorems}\label{ss:Aproofs} \begin{proof}[Proof of Theorems~\ref{thm:Amain} and~\ref{thm:Aall}] For $6\le k\le5000$ we have $G(k)\le G^\flat(k)$, by Proposition~\ref{prop:Arec}(i). Part~(ii) of that proposition shows that $G^\flat(k)$ is smaller than $C_0^\star k-0.46\sqrt k$, and smaller than $C_0^\star k-\sqrt k$ when $k\ge639$. Let $k\ge5000$. By Proposition~\ref{prop:Alarge}, we have \[ G(k)\le C_0^\star k-0.9856\sqrt k+\tfrac73\log k+12 . \] Now $0.5256\sqrt k>\frac73\log k+12$, since this holds for $k=5000$ and $0.5256\sqrt k-\frac73\log k$ increases with $k$. Hence $G(k)\frac76\log k+7$ for $k\ge5000$. (ii) For $7\le k\le20$ this is Proposition~\ref{prop:Arecsmall}, and for $21\le k\le36$ it is Proposition~\ref{prop:Arec}(i). \end{proof} The numbers $197$, $394$, \dots, $12700$ that were mentioned after Theorem~\ref{thm:Aalmost} are the values of the numbers $\ell^\flat(k)$ of \S\ref{ss:Anum} for $k=64$, $128$, \dots, $4096$, and the numbers $20$, $44$ and $96$ there are $\ell^{\mathrm{VW}}(8)$, $\ell^{\mathrm{VW}}(16)$ and $\ell^\flat(32)$; by Theorem~\ref{thm:Arec}(ii) and Proposition~\ref{prop:Arecsmall} they are admissible in Theorem~\ref{thm:almostexplicit}(ii). For $k=37$, $50$, $100$ and $1000$ one finds $\ell^\flat(k)=112$, $154$, $308$ and $3093$, so that $G^+(37)\le112$, $G^+(50)\le154$, $G^+(100)\le308$ and $G^+(1000)\le3093$; the bounds recorded after Theorem~\ref{thm:almost} are $137$, $177$, $340$ and $3195$. \begin{proof}[Proof of Theorem~\ref{thm:Amv}] Let $6\le k\le5000$. By Proposition~\ref{prop:Arec}(i), the conclusions of Theorem~\ref{thm:mvexplicit} hold for every real number $s_1>\mathcal{Y}^\flat(k)$, and by part~(ii) of that proposition $\mathcal{Y}^\flat(k)$ is smaller than $C_0^\star k-0.59\sqrt k$, and smaller than $C_0^\star k-\sqrt k$ when $k\ge471$. Let $k\ge5000$. By Theorem~\ref{thm:Aexplicit}(ii), the conclusions of Theorem~\ref{thm:mvexplicit} hold for every real number $s_1>\mathcal{Y}_k(\Theta)$ with $\frac94\le\Theta\le\Theta_k$. We take $\Theta$ as in Lemma~\ref{lem:Alarge}; then $\mathcal{Y}_k(\Theta)\frac73\log k+11$, which holds for $k=5000$, and hence for $k\ge5000$. Theorem~\ref{thm:mv} is deduced from Theorem~\ref{thm:mvexplicit} at the end of \S\ref{ss:large}, and that deduction applies without change. \end{proof} In the same way one obtains the analogue of Corollary~\ref{cor:mvranges}: the conclusions of Theorem~\ref{thm:mvexplicit} hold with $s_1=C_0^\star k-0.54\sqrt k$ for $k\ge6$, with $s_1=C_0^\star k-\sqrt k$ for $471\le k\le5000$, with every $s_1>\mathcal{Y}^{\mathrm{VW}}(k)$ for $7\le k\le20$, and with $s_1=C_0^\star k-0.9856\sqrt k+\frac73\log k+11$ for $k\ge5000$. \begin{proof}[Proof of Theorem~\ref{thm:Afrac}] By Theorem~\ref{thm:Aexplicit}(iii) it suffices to exhibit numbers $\Theta$, $b$ and $s_0$ as in that theorem for which $2s_0+(1+b)\cdot4.5139505\,k$ is smaller than the reciprocal of the exponent in question. For $37\le k\le5000$ this is Proposition~\ref{prop:Afrac}(i). For $k\ge5000$ we use Proposition~\ref{prop:Afrac}(ii), in which $9.027901\,\Theta'\,b/2=2$, and note that $0.40\sqrt k>\frac73\log k+8.2$ for $k\ge5000$, since this holds for $k=5000$ and $0.40\sqrt k-\frac73\log k$ increases; so \[ 10.7336\,k-2.37\sqrt k+\tfrac73\log k+8.2<10.7336\,k-1.97\sqrt k<10.8\,k . \] \end{proof} \subsection{Remarks}\label{ss:Aremarks} \begin{remark}[the term of order $\sqrt k$]\label{rem:Asecond} In Proposition~\ref{prop:Alarge} the largest step $\Theta$ is slightly smaller than $\sqrt k$. Larger steps are useful, and the chains of \S\ref{ss:Anum} reach them: for the numbers $\Theta^\natural(k)$ and $B^\natural(k)$ of \S\ref{ss:Afrac} the ratio $\Theta^\natural(k)/\sqrt k$ lies between $0.94$ and $1.25$ for $37\le k\le5000$, and it is $1.06$, $1.19$ and $1.24$ for $k=100$, $1000$ and $5000$. Accordingly the number $(k\,B^\natural(k)-C_0^\star k)/\sqrt k$ increases from $-0.70$ at $k=37$ to $-0.25$ at $k=57$, and then decreases, up to small rises of less than $0.0015$, to $-1.05$ at $k=4999$. For $k<5000$ the seed is $\frac1{10}$, which costs about $(6.220804-C_0^\star)k=0.00118\,k$ (compare the remarks after Lemma~\ref{lem:Alimit}); at $k=5000$, where the seed is $\frac{41}{382}$, the number is $-1.13$, and for $k=10^4$, $10^5$ and $10^6$ the same computation gives $-1.19$, $-1.30$ and $-1.35$. By Theorem~\ref{thm:Aexplicit}(i) and \eqref{eq:Anat}, which holds for these $k$ as well, the numbers $\lfloor k\,B^\natural(k)\rfloor$ are upper bounds for $G(k)$; thus $G(10^4)\le62077$, $G(10^5)\le621551$ and $G(10^6)\le6218281$. These three bounds are illustrations, which are not used in our theorems; they show that the coefficient $0.9856$ in Theorem~\ref{thm:Amain} is not the limit of the method. In Proposition~\ref{prop:Alarge} the loss is caused mainly by the choice of $\Theta$, and only a little by the estimates of Lemma~\ref{lem:Alarge}: at $88$ per cent of the points $t>1/(D_\star(D_\star+1))$ at which we have compared the two, the lower bound of that lemma agrees with $\theta_k(t)$, and for $k=5000$ the first bound of Proposition~\ref{prop:Alarge} is $31055.33\ldots$, which exceeds the value of $\mathcal{Y}_{5000}(\Theta)$ for the same $\Theta$, computed by quadrature, by $1.48$, whereas $\mathcal{Y}_{5000}(\Theta_{5000})\le\mathcal{Y}^\natural(5000)=31017.15\ldots$. For $\theta>\sqrt k$ the efficient degree in Corollary~\ref{cor:Amv} is no longer the integer next to $U$, the term $E_1$ takes over, and a heuristic computation suggests that $\sigma_k(\theta)$ is about $(2-\theta^2/k)\,\theta^{-2}$ for $\sqrt k<\theta<\sqrt{2k}$. If this is so, then $\Theta_k\sim1.28\sqrt k$, and the bound of Theorem~\ref{thm:Aexplicit} is $C_0^\star k-(c_\infty+o(1))\sqrt k$ with \[ c_\infty=4-\sqrt2\int_{2/9.027901}^{1}\frac{\sqrt{1+x}}{x}\,\mathrm{d}x=1.3819\ldots . \] We have not tried to prove this. \end{remark} \begin{remark}[the sources of the improvement]\label{rem:Asources} Several things have changed in comparison with Theorem~\ref{thm:explicit}: the estimates of Corollary~\ref{cor:Amv}, of Lemma~\ref{lem:Agreedy}, of Proposition~\ref{prop:Apairs}, of Corollary~\ref{cor:Amult}, of Corollary~\ref{cor:Acancel} and of Corollary~\ref{cor:Amultc} have been added to the saving function, the rounding losses are treated differently, the range of the steps is no longer restricted by Definition~\ref{def:round}, the potential takes the exact length of the steps into account, and, for $k\le5000$, the recursion of \S\ref{ss:Arec} with its different pruning is used. Corollary~\ref{cor:Amv}, Proposition~\ref{prop:Apairs} and Corollaries~\ref{cor:Amult}, \ref{cor:Acancel} and~\ref{cor:Amultc}, with the change of regime at $\frac{41}{382}$, account for the constant. The other changes would improve the bounds of \S\ref{s:eval} even without them. Suppose that Definition~\ref{def:Asaving} is formed with the estimates of \S\ref{s:exp} alone, that is, with the numbers $\varrho_j(U)-\frac12\vartheta$ of Lemma~\ref{lem:vdc}(ii) in place of (b), and with Lemma~\ref{lem:mv} in place of (c); Theorem~\ref{thm:Aexplicit} applies to this variant as well. For $k=37$, $100$ and $1000$ the largest steps are then about $4.03$, $8.09$ and $28.00$, and Riemann sums, evaluated with directed rounding and with the function $\theta_k$ computed by bisection as in Remark~\ref{rem:Acompare}, give the bounds $246$, $643$ and $6358$, which are the best that Theorem~\ref{thm:Aexplicit}(i) provides in this case; Table~\ref{tab:values} has $273$, $680$ and $6389$, Theorem~\ref{thm:Aexplicit}(i) with the present saving function gives $225$, $617$ and $6190$ (Remark~\ref{rem:Acompare}), and the recursion gives $224$, $615$ and $6186$. Without the numbers in (d) the recursion gives $224$, $618$ and $6208$; without those in (g) it gives $224$, $615$ and $6187$, the bounds of the previous version of this appendix; without those in (f) and (g) it gives $224$, $615$ and $6196$; without those in (e), (f) and (g), and with the condition $c_n<\frac1{10}$ in place of $c_n<\frac{13}{120}$, it gives $224$, $616$ and $6219$; and if only (b) is replaced by the numbers $\varrho_j(U)-\frac12\vartheta$, it gives $228$, $615$ and $6186$ (all computed in double precision, with $\theta_k$ obtained by bisection). So Proposition~\ref{prop:Apairs} accounts for $0$, $3$ and $22$ of the improvement for these $k$, Corollary~\ref{cor:Amult} with the change of regime for $0$, $1$ and $23$, Corollary~\ref{cor:Acancel} for $0$, $0$ and $9$, Corollary~\ref{cor:Amultc} for $0$, $0$ and $1$, and Lemma~\ref{lem:Agreedy} for $4$, $0$ and $0$: for larger $k$ the exponent pairs make the latter redundant. For $k=37$, for example, the largest step in Proposition~\ref{prop:moderate} is $\Theta^\sharp=\frac{37}{16}$, on account of the condition $\Theta\le\varpi(\Theta)k$, and the term $W_k(\Theta^\sharp)=1.997$ makes up more than a quarter of the bound; now $\Theta^\natural(37)=6.48$, and no such term occurs. Thus for small $k$ the improvement that is due to the saving function is of about the same size as the others taken together, while for large $k$ the saving function is decisive. \end{remark} \begin{remark}[the two potentials compared]\label{rem:Acompare} For $37\le k\le5000$ the numbers $\mathcal{Y}^\natural(k)$ of \S\ref{ss:Afrac} can be used in Theorem~\ref{thm:Aexplicit}(i) and~(ii) as well. With $G^\natural(k):=\lfloor k\,B^\natural(k)\rfloor$ and $\ell^\natural(k):=\lfloor\frac12\mathcal{Y}^\natural(k)\rfloor+1$ they give $G(k)\le G^\natural(k)$, and $G^+(k)\le\ell^\natural(k)$ when $k$ is not a power of $2$; for example $G^\natural(k)=225$, $308$, $617$, $6190$ and $31018$ for $k=37$, $50$, $100$, $1000$ and $5000$. The recursion does better for every $k$ in this range: one has $1.49<\mathcal{Y}^\natural(k)-\mathcal{Y}^\flat(k)<9.93$, the difference being smallest for $k=45$ and largest for $k=4974$; the integer $G^\natural(k)-G^\flat(k)$ lies between $1$ and $10$, and $\ell^\natural(k)-\ell^\flat(k)$ between $0$ and $5$. For $k<5000$ a part of the difference comes from the change of regime, which the potential of Theorem~\ref{thm:Aexplicit} makes at $\frac1{10}$ and the recursion at a point below $\frac{13}{120}$. The difference is not an effect of the numerical evaluation of $\mathcal{Y}_k$. Indeed, by Lemma~\ref{lem:Achain}(i), the number $\theta_k(t)$ is the largest $\theta\le\frac12k$ for which the intervals of that lemma, formed with $\vartheta=\theta/k$, cover $(1,\theta]$; so $\theta_k$ can be computed directly from Definition~\ref{def:Asaving}, by bisection and without the use of chains. In this way one finds that $\Theta^\natural(k)=\Theta_k$, up to rounding errors, for $k=37$, $100$, $1000$, $3109$, $5000$, $10^4$, $10^5$ and $10^6$. Since $\theta_k$ is nonincreasing, the bisection also gives lower bounds for $\mathcal{Y}_k(\Theta_k)$, by lower Riemann sums: on a subinterval $[t',t'']$ one has $\theta_k(t)\le\theta_k(t')<\theta$ for every $\theta$ for which the intervals of Lemma~\ref{lem:Achain} do not cover $(1,\theta]$ at the level $t'$. Evaluated with directed rounding, such sums show that $\mathcal{Y}_k(\Theta_k)+1$ exceeds $225.84$, $617.79$, $6190.80$ and $31017.89$ for $k=37$, $100$, $1000$ and $5000$, respectively. Hence $G^\natural(k)=\lfloor\mathcal{Y}_k(\Theta_k)\rfloor+1$ for $k=37$, $100$ and $1000$, so that $G^\natural(k)$ is the best bound that Theorem~\ref{thm:Aexplicit}(i) can give for them; for $k=5000$ the lower sum lies below $k\,B^\natural(k)=31018.15\ldots$ by $0.25$, so that $G^\natural(5000)$ exceeds that best bound by at most one. None of the statements of this remark is used in the proofs. \end{remark} \begin{remark}[further refinements]\label{rem:Afurther} A more recent estimate of the present type in the classical setting is due to Heath-Brown, in an appendix to the work of Demeter, Guth and Wang on small cap decouplings \cite{DGW2020}; it improves on the fourth derivative estimate of \cite{HB2017} for sums of length $N$ when the fourth derivative has a size between $N^{-2}$ and $N^{-1}$. The proof exploits that the cubic Taylor coefficients of all the short sums lie in one short interval. In Lemma~\ref{lem:Amv} with $D=3$ the corresponding coefficients $\alpha_3(n)$ are the fractions $b_1n^{u}/q_3$, which are spread over all of $\mathbb{T}$ however $n$ is restricted to an interval, at least when $q_3$ is large (as it is when $\vartheta$ is small), and we have not found a substitute for this step. In another direction, the words of Proposition~\ref{prop:Apairs} have length at most $10$. Longer words lower the limit constant further, but slowly: with the words of length at most $7$, $10$, $11$ and $12$ (with the same restrictions) the computation that leads to $C_0^\star$, including the choice of the point $z_0$ of the change of regime, gives $6.22058\ldots$, $6.21962\ldots$, $6.21957\ldots$ and $6.21954\ldots$, respectively, and $61$ and $86$ words occur in the limit function for the last two lengths. The proof of Proposition~\ref{prop:Apairs} applies to such words with a larger order $N_i$ and a larger bound $p_1$. We have not pursued this, nor the question whether the loss $\frac12\vartheta_\flat$ can be reduced further. The estimate of Lemma~\ref{lem:Acancel} can be strengthened as well. In its proof the sum along the line of frequencies is estimated by Lemma~\ref{lem:Aseries}, that is, by one or two differencing steps followed by completion; these are the exponent pairs $(\frac16,\frac23)$ and $(\frac1{14},\frac{11}{14})$. Lemma~\ref{lem:Adt}, on which Lemma~\ref{lem:Amultc} rests, uses one or two differencing steps in the same way (the cases $\iota=1$ and $\iota=2$). With one step alone, in both places, the constant would be $6.2234\ldots$ in place of $C_0^\star$. In \cite[\S7]{Dav2026b} the sums $\mathcal{S}$ are restricted to a residue class modulo the prime factors of $m$, and the sum along the line may then be estimated by any bound for sums of this restricted kind that is already available, in particular by the $p$-adic exponent pairs and by the outcome of the argument itself; the losses are stated in the form $m^{O_D(1)}$. If all the exponent pairs of Proposition~\ref{prop:Apairs} could be used along the line in Lemma~\ref{lem:Acancel}, the constant obtained without Corollary~\ref{cor:Amultc} would be about $6.2215$ in place of $6.2224\ldots$, according to a computation in double precision. The value $6.219680\ldots$ that is announced in \cite{Dav2026b}, which is a little larger than $C_0^\star$, rests in addition on transforms of the estimates of Corollaries~\ref{cor:Amv} and~\ref{cor:Amult} by differencing steps and by Poisson summation \cite[\S\S5, 6]{Dav2026b}, on longer words, and on an iteration of the count of pairs. We have not carried out these steps. In our setting they would require exponent pairs for the sums over the line in which the losses are as explicit as those of Proposition~\ref{prop:Apairs}, and a version of Lemma~\ref{lem:Acancel} for a single residue class in which the diagonal term $1/X$ is not multiplied by a power of $m$; in Lemma~\ref{lem:Acancel} this is avoided by counting the pairs within the classes of Lemma~\ref{lem:Aclasses}, the two members of a pair being allowed to lie in different residue classes. \end{remark} \begin{remark}[fifth and sixth powers]\label{rem:Asmallk} For $k=5$ and $k=6$ the method gives nothing new. The first case of Theorem~\ref{thm:Arec} requires $k\ge6$, because \cite[Theorem~2.2]{BW2025} is stated for $k\ge6$. For $k=6$ it gives $\mathcal{Y}^\flat(6)=31.2470\ldots$, hence $G(6)\le32$, which is weaker than $G(6)\le24$ \cite{VW1994}, and $G^+(6)\le16$; the formula of \cite[Theorem~9.1]{BW2023} gives $18$ for $k=6$, but the estimate $S_{12}(P,R)\ll P^{18+\varepsilon}$ for sixth powers \cite[(1.1)]{VW1994}, that is, the exponent $\Delta_{12}=0$, is available here, and we have not compared $16$ with what it gives directly. In the second case one would use the tables of \cite[Appendix]{VW1995} for $k=5$ and $k=6$ (the numbers $\lambda_s$ for $3\le s\le8$ and $3\le s\le12$, respectively, with $T_5=30.16$ and $T_6=39.21$ formed as in \S\ref{ss:Apot}). For $k=6$ the last entry gives $\Delta_{12}=0$, so that (V1) fails; for $k=5$ one has in addition $\Delta_9=0$, by the estimate $S_9(P,R)\ll P^{13+\varepsilon}$ of \cite{VW1995}. With the tabulated numbers the recursion of \S\ref{ss:Anum} finds no index $n$ for which (R3) holds: the largest decrease of $k\,\Psi_k^{\mathrm{VW}}$ along a step is $1.17$ for $k=5$ and $1.73$ for $k=6$, while (R3) requires $2$. The program verifies these tables in the same way as those of \cite{VW2000}. \end{remark} \subsection{Numerical verification}\label{ss:Averif} The program of \S\ref{ss:numerics} contains a part that is devoted to this appendix (Part~14, which takes about eight hours). Table~\ref{tab:Averif} lists the computations on which the proofs depend; everything else in that part is a safeguard or reproduces a number that is quoted in a remark. \begin{table}[ht] \caption{The computations on which the proofs in this appendix depend.}\label{tab:Averif} \begin{tabular}{@{}p{0.33\textwidth}p{0.25\textwidth}p{0.34\textwidth}@{}} \toprule computation & used in & arithmetic\\ \midrule \raggedright the data of the words of $\mathcal{W}$, and the comparison in the proof of Lemma~\ref{lem:Alimit}(ii) & \raggedright Lemma~\ref{lem:Alimit}, Propositions~\ref{prop:Arec}, \ref{prop:Afrac} & \raggedright exact rational arithmetic\tabularnewline \raggedright the pieces of $\theta^\star$ in Table~\ref{tab:Abands}, and the inequalities between rational functions of $D$ for \eqref{eq:Atsplarge}, in Lemma~\ref{lem:Alarge} and in Proposition~\ref{prop:Alarge}; the conditions of Lemma~\ref{lem:Alarge} at the end points of the pieces with $D'\le15$ & \raggedright \eqref{eq:Astar}, Lemma~\ref{lem:Alarge}, Proposition~\ref{prop:Alarge} & \raggedright exact rational arithmetic\tabularnewline \raggedright bounds for $\Lambda^\star$ and $C_0^\star$ & \raggedright Propositions~\ref{prop:Arec}, \ref{prop:Afrac} & \raggedright directed rounding; confirmed with $30$ decimal digits\tabularnewline \raggedright the sequences of Theorem~\ref{thm:Arec} in the first case, for $6\le k\le5000$ & \raggedright Proposition~\ref{prop:Arec} & \raggedright directed rounding; the logarithms confirmed with $40$ decimal digits\tabularnewline \raggedright the same in the second case, for $7\le k\le20$, and \textup{(V1)--(V3)} & \raggedright Proposition~\ref{prop:Arecsmall} & \raggedright directed rounding for the chains, exact rational arithmetic otherwise\tabularnewline \raggedright the inequalities of Proposition~\ref{prop:Arec}(ii), (iii) & \raggedright Theorems~\ref{thm:Amain}--\ref{thm:Amv} & \raggedright exact rational arithmetic\tabularnewline \raggedright $B^\natural(k)$ and $\Theta^\natural(k)$, $37\le k\le5000$ & \raggedright Proposition~\ref{prop:Afrac}(i) & \raggedright directed rounding, with an allowance for the library logarithm\tabularnewline \raggedright the inequalities of Proposition~\ref{prop:Afrac}(i) & \raggedright Theorem~\ref{thm:Afrac} & \raggedright exact rational arithmetic\tabularnewline \bottomrule \end{tabular} \end{table} \emph{Directed rounding.} The computations with chains are carried out in double precision arithmetic. Every operation whose result enters a bound is followed by a step to the adjacent floating point number in the safe direction, and the constants in the conditions on the chains are rounded from exact fractions. Under the IEEE~754 standard, with rounding to nearest, the results of the four basic operations are then rigorous bounds. The value of a chain is a lower bound for $\theta_k$ only if the choice of $J'$, and of the tents if there are any, is admissible at the level in question, that is, if $J'\le k-2$ and $2^{J'+1}t\le1$, if the tents are defined at $t$ and $D_2\le k-1$, if $D_2\le k-2$ when the chain ends with an interval $\mathcal{Q}_{D_2,\iota}$, if $D_2+1\le k-2$ when it ends with an interval $\mathcal{N}_{D_2+1,\iota}$, and if the word of a chain of the third kind in Lemma~\ref{lem:Achain}(iii) is admissible for $k$; these conditions are tested inside the functions that evaluate the chains, and the program stops when one of them, or another hypothesis of this kind, fails. The conditions $\vartheta\le\vartheta_w$ and $1+c_w\vartheta\le R_J(t)$ are among the conditions $\vartheta\le a_1-a_2t$ of Lemma~\ref{lem:Achain}(iv), and the numbers $\kappa_w$, $\lambda_w$, $c_w$ and $\vartheta_w$ enter them as exact fractions, rounded in the safe direction. The values of the chains are capped at $\frac12k$. The points $p_D$ are replaced by floating point numbers on the safe side; the points $2^{-J-1}$ are floating point numbers. \emph{The constants.} For $\Lambda^\star$ the series in \eqref{eq:Astar} is summed up to $D=10^6$, and the remainder is bounded by means of the inequalities $2/D^2-13/(3D^3)\le\Lambda_D^\dagger\le2/D^2$; these hold because $D\le\theta^\star(t)0$, with $\eta'$ as in \S\ref{ss:arcs}. Thus $d$ measures, in units of $k$, the amount by which the moment may exceed $P^{vk-k}$, which is the contribution of the major arc around $0$. \emph{The classical exponent.} For every $k$ and every $v\ge0$ the number $\mathfrak{d}(vk)$ of \S\ref{s:apriori} is a normalised exponent for $v$, by \eqref{eq:admexp}. It is the solution $d\in(0,1]$ of $d+\log d=1-v$, so that it does not depend on $k$. As $d=\mathrm{e}^{1-v-d}$, one has $\mathrm{e}^{1-v}(1-\mathrm{e}^{1-v})<\mathfrak{d}(vk)<\mathrm{e}^{1-v}$ for $v>1$; thus $\mathfrak{d}(vk)$ decays exponentially, but it is positive for every $v$. \emph{The exponents of Corollary~\textup{\ref{cor:moment}}.} Let $k$, $\Theta$, $\delta_0$ and $\varepsilon_2$ be fixed, and let $\mathcal{G}$ be the potential of \S\ref{s:pot}. For $v>0$ the hypothesis \eqref{eq:rDelta} of Corollary~\ref{cor:moment} holds with $r=vk$ and $\Delta=k\sup_{0v_c$, and $d_\infty^\star(v)0$ for $v0$ for $v0$ by~(iv). As in the proof of Proposition~\ref{prop:exponents}(i), the function $h^\star$ is concave, with right derivative $\mathcal{G}_\infty^\star(z)-2/\theta^\star(2z+)-v$ for $z<\frac{41}{382}$. As $\theta^\star$ is continuous at $\frac{41}{191}$, with $\theta^\star(\frac{41}{191})=\frac{341}{191}$, the function $h^\star$ is differentiable at $\frac{41}{382}$, with derivative $\Psi(\frac{41}{382})-\frac{382}{341}-v=v_c^\star-v<0$. So there is a number $z_1<\frac{41}{382}$ such that $h^\star$ is decreasing on $[z_1,1]$, and there $h^\star\le h^\star(z_1)0$ for small $z$, because $\mathcal{G}_\infty^\star(z)\to C_0^\star$ as $z\to0$. \end{proof} The next lemma justifies the description of the second column. \begin{lemma}\label{lem:Blimit} For $k\ge37$, an admissible number $\Theta$, and numbers $\delta_0$ and $\varepsilon_2$ as in \eqref{eq:params}, let $\mathcal{G}$ be the potential of \S\textup{\ref{ss:potdef}}, and put $d(v):=\sup_{00$, then $k(d+\varepsilon)$ is an admissible exponent for the moment of order $vk$ for all sufficiently large $k$. They are also a floor: for no $k$ does Corollary~\ref{cor:moment}, with the potential of \S\ref{s:pot}, give a normalised exponent smaller than $d_\infty(v)$ (Lemma~\ref{lem:Blimit}(i)). The convergence is slow where the entries are small, that is, near the point at which they vanish: there the effects of finite $k$, the largest step $\Theta$ and the rounding of moduli, are of order $k^{-1/2}$ (\S\ref{ss:origin}), and they decide the terms of order $\sqrt k$ in the theorems (item~(f)). The third column is the analogue of the second for Appendix~\ref{s:appendix} that is described in \S\ref{ss:Bdef}. Roughly speaking, an entry $d$ says that the moment of order $vk$ exceeds $P^{vk-k}$ by a factor $P^{dk}$ at most, up to a factor $P^{o(k)}$ in the last two columns. (b) \emph{The lower bound.} No normalised exponent is smaller than $\max\{0,1-\frac v2\}$, at least when $vk\ge2$. Indeed, one has $\#\mathcal{A}(P,R)\gg P$, so that H\"older's inequality gives \[ \int_{\mathbb{T}}|f|^s\,\mathrm{d}\alpha\ge\Bigl(\int_{\mathbb{T}}|f|^2\,\mathrm{d}\alpha\Bigr)^{s/2}\gg P^{s/2} \qquad(s\ge2), \] and the major arc around $0$ gives $\int_{\mathbb{T}}|f|^s\,\mathrm{d}\alpha\gg P^{s-k}$, as in the proof of Theorem~\ref{thm:mvexplicit}(i). One expects $\max\{0,1-\frac v2\}$ to be a normalised exponent for every $v$. All entries of the tables are at least this number, with equality only for $v=0$ and for the entries $0$; for $v\ge2$ the entries measure the distance from this expectation. (c) \emph{The orders $vk$ with $v\le v_c$.} Here the first two columns agree, and the third agrees with them for $v\le v_c^\star=2.9980\ldots$ (Lemma~\ref{lem:Bprop}(ii)); in Table~\ref{tab:B2} the three entries for $v=3$ agree (the unrounded values differ by $4.5\cdot10^{-8}$), and the third column is smaller from $v=3.05$ on. The reason is seen from the way in which Corollary~\ref{cor:moment} is proved. By Proposition~\ref{prop:main}, the set on which $|F_a|\ge X^{1-z}$ has measure at most $X^{kz\mathcal{G}(z)-k+o(1)}$. Its contribution to the moment of order $vk$ is therefore at most $X^{vk-k+kz(\mathcal{G}(z)-v)+o(1)}$, and the normalised exponent is the largest of the numbers $z(\mathcal{G}(z)-v)$; the point $z_v$ at which it is attained shows which values of $|f|$ dominate the moment. For $v\le v_c$ one has $z_v=\mathfrak{d}(vk)/(1+\mathfrak{d}(vk))\ge\frac1{10}$, and for $z\ge\frac1{10}$ the potential is the a priori bound $\Psi$ of Lemma~\ref{lem:apriori}, which comes from \eqref{eq:admexp} by Chebyshev's inequality. The fibre steps of \S\ref{s:iter} save nothing at these levels, because $2/\theta^*(2z)\ge1/(1-z)$ for $z\ge\frac1{10}$ (\S\ref{ss:origin}). For $\theta^\star$ this inequality holds only for $z\ge\frac{41}{382}$ (see the remarks after Lemma~\ref{lem:Alimit}), and $\mathcal{G}_\infty^\star$ uses the a priori bound only there; the potentials of Appendix~\ref{s:appendix} make the change of regime at the seed $z_k$ of \S\ref{ss:Achains}, which is $\frac{41}{382}$ for $k\ge5000$. So the method of this paper does not improve the moments of order up to $v_ck=3.0861\ldots k$, and the refinement of Appendix~\ref{s:appendix} does not improve those of order up to $v_c^\star k=2.9980\ldots k$. In particular, neither improves the moments of order about $2k$ on which the exponent $\tau_k$ rests (item~(h) below). (d) \emph{The orders $vk$ with $v_c^\starv_c$; the fibre steps act, and the columns decrease from left to right (Lemma~\ref{lem:Bprop}(iii)). The function $z\,\mathcal{G}_\infty^\star(z)$ is continuously differentiable at $\frac{41}{382}$, because $\theta^\star(\frac{41}{191})=2(1-\frac{41}{382})$, so that $z_v$ moves continuously below $\frac{41}{382}$ as $v$ increases beyond $v_c^\star$. The ratio $d_\infty^\star(v)/\mathfrak{d}(vk)$ is $0.87$, $0.41$, $0.0072$ and $0.000006$ for $v=4$, $5$, $6$ and $6.2$, respectively, and the dominant level moves towards the largest values: for $\mathcal{G}_\infty^\star$ the point $z_v$ is about $0.053$, $0.018$, $0.00065$ and $0.000005$, respectively, and for $\mathcal{G}_\infty$ it is about $0.053$, $0.018$, $0.0013$ and $0.00017$. Near the point at which they vanish the entries are very small. Indeed, one has $I(s)=(2+o(1))\sqrt s$ as $s\to0$, by Lemma~\ref{lem:I}(i), so that $\mathcal{G}_\infty(z)=C_0-(4\sqrt2+o(1))\sqrt z$, and maximising $z(\mathcal{G}_\infty(z)-v)$ gives \[ d_\infty(v)=(1+o(1))\,\frac{(C_0-v)^3}{216},\qquad z_v=(1+o(1))\,\frac{(C_0-v)^2}{72}\qquad(v\to C_0^-) ; \] the same holds for $d_\infty^\star$ with $C_0^\star$ in place of $C_0$. This is why the entries of Table~\ref{tab:B2} are so small for $6\le v\varsigma$ on $(\frac{11}{10},\infty)$, one has $\theta^\star>\theta^*$ on $(0,\frac9{20})$, so that the steps differ at every level $z<\frac1{10}$, and for $\frac1{10}\le z<\frac{41}{382}$ the steps with $\theta^\star$ do better than the a priori bound. For instance $d_\infty(6)$ and $d_\infty^\star(6)$ are about $1.4\cdot10^{-4}$ and $4.8\cdot10^{-5}$. (e) \emph{The orders $vk$ with $v\ge C_0^\star$.} Here the third column vanishes, and the second vanishes for $v\ge C_0$. For finite $k$ more precise statements are available. By Theorem~\ref{thm:Amv}, the moment of order $s$ has the order of magnitude $P^{s-k}$ for every $s\ge C_0^\star k-0.54\sqrt k$ when $k\ge6$, and for every $s\ge C_0^\star k-\sqrt k$ when $471\le k\le5000$. So for these $k$ all entries $0$ of the last two columns are attained, and the moments vanish in this sense even for some $vb/\tau_k=9.027901\,kb$ further variables (Proposition~\ref{prop:prune}). With $b=kd$ for a fixed $d>0$ this costs about $9.03\,d\,k^2$ variables. So for fixed $vb/\tau_k$. So the tabulated limits do contain a term of order $\sqrt k$. For finite $k$ the largest step $\Theta$ and the rounding of moduli change it (\S\ref{ss:origin}); the terms $1.572\sqrt k$ of Theorem~\ref{thm:main} and $-0.9856\sqrt k$ of Theorem~\ref{thm:Amain} are of this kind. (g) \emph{What matters for the fractional parts.} In the same way, let $\sigma$ be the exponent of Lemma~\ref{lem:BWthm} that is formed with a moment of order $u=vk$, where $v\ge4$, and a weight-uniform admissible exponent $\Delta_u=kd$. Then \[ \frac{1}{\sigma k}=v+4.5139505\,(1+kd) . \] With the classical exponents the least value of $v+4.5139505(1+k\mathrm{e}^{1-v})$ is attained at $v=1+\log(4.5139505\,k)$, and it is $\log k+2+\log4.5139505+4.5139505=\log k+8.02112\ldots$; this is the exponent of \cite{BW2025} that is displayed in \S\ref{ss:results}. With the exponents of Corollary~\ref{cor:moment} one may take $v$ near $C_0$ with $kd\to0$, which gives $1/\sigma=(C_0+4.51395\ldots+o(1))k$ and Theorem~\ref{thm:frac}; with those of Appendix~\ref{s:appendix} one obtains $C_0^\star$ in place of $C_0$, and Theorem~\ref{thm:Afrac}. At the second order the Legendre transform enters again: \begin{align*} \min_{v\ge4}\bigl(v+4.5139505\,(1+kd_\infty(v))\bigr)k&=k\bigl(\mathcal{G}_\infty(2\tau_k)+4.5139505\bigr)\\ &=(C_0+4.5139505)k-(2.66+o(1))\sqrt k ; \end{align*} numerically, the minimum minus $(C_0+4.5139505)k$ is $-27.56$, $-85.09$ and $-267.14$ for $k=10^2$, $10^3$ and $10^4$. In Theorem~\ref{thm:fracexplicit} the choice $b=4/(9.027901\,\Theta)$ means that the moment of order $2s_0$ is used through the supporting line of $kz\,\mathcal{G}(z)$ at the same point $z=2\tau_k$, in the limit $\delta_0,\varepsilon_2\to0$ (Corollary~\ref{cor:moment} and \eqref{eq:astar}). (h) \emph{The exponent of Weyl type.} The exponent $\tau_k$, on which the pruning rests, uses the table near $v=2$: the term of the number $\tau(k)$ of \textup{(B1)} that belongs to $w$ is $(1-2d)/(kv^2)$ with $v=2w/k$ and $d$ a normalised exponent for $v$ (\S\ref{ss:decide}). Its largest value over real $v$, namely $1/(9.026725\ldots k)$, is attained at $v=1.98464\ldots$, where the three columns agree; for $v\ge v_c$ it is at most $1/(v_c^2k)<1/(9.52\,k)$ whatever $d\ge0$ is (Proposition~\ref{prop:exponents}(ii)); and for $v_c^\star\le v\le v_c$, where the third column may differ from the others, all entries are at least $0.109$, so that the term is less than $1/(11.4\,k)$. So none of the improvements in the tables improves $\tau_k$. In short, the entries for $v\le v_c$ show that the method of this paper gives nothing new for moments of order up to $3.0861\ldots k$, and those for $v\le v_c^\star$ show the same for the refinement of Appendix~\ref{s:appendix} up to $2.9980\ldots k$; those for larger $v0$, because $\sigma_k$ is left-continuous. So the paragraph of \S\ref{ss:Apot} on the parameters applies with this $\Theta$: the parameters $\delta_0$, $\varepsilon_2$, $\gamma$, $\varepsilon$ and $\eta$, the functions $M(\cdot)$ and $\theta(\cdot)$, and the number $u_\Theta$ are as there. \subsection{Potentials with a free switch point}\label{ss:Cpot} As in the proof of Theorem~\ref{thm:Arec}, we put, for $0z_0$, so that $\underline{S}(z)>z_0$ for all $z0),\qquad\Phi(x,0):=0 . \] Suppose that the assertion of Proposition~\textup{\ref{prop:main}} holds with this function $\Phi$, and that for $\gamma\le x\le1$ the function $\lambda\mapsto\Phi(x,\lambda)-2k\lambda$ is nondecreasing on $[0,\frac15x]$. Let $s>2k$ and $00$, and put $w:=\max\{1,VY^{z_*-1}\}$. Then, for large $P$, one has \[ \int_{\mathbb{T}}|F_a(\alpha)|^s\,\mathbf{1}\bigl[|F_a(\alpha)|\le V\bigr]\,\mathrm{d}\alpha \le\Bigl(sL+1+\frac{s\,w^{s-2k}}{s-2k}\Bigr)Y^{s-k+E}P^{4k\gamma+2\varepsilon}. \] \end{lemma} The number $E$ is finite, because $\mathcal{G}$ is nonincreasing and $\lambda(k\,\mathcal{G}(\lambda)-s)=k-s\lambda$ for $\lambda\ge\frac12$; and $E\ge k-\frac12s$, as one sees by taking $\lambda=\frac12$. When $s>k\,\mathcal{G}(z_*)$, every term in \eqref{eq:Cexcess} is at most $z_*(k\,\mathcal{G}(z_*)-s)$, so that $E=-\xi z_*$ with $\xi:=s-k\,\mathcal{G}(z_*)$, and the bound is that of Lemma~\ref{lem:Atrunc}, with $sL+1$ in place of $s\,w^{s-2k}/\xi$. The hypotheses on $\mathcal{G}$ hold for every function that satisfies the hypotheses of Lemma~\ref{lem:Apot} with $u=c_0$: such a function is nonincreasing and agrees with $\Psi^\circ$ on $[z_0,\infty)$, one has $\Psi^\circ(z)=1/z$ for $z\ge\frac12$, and parts~(i) and~(iii) of Lemma~\ref{lem:Apot} supply the other two hypotheses. \begin{proof} Let $I$ be the integral, and write $Y=P^y$, so that $\gamma\le y\le1$. As in the proof of Lemma~\ref{lem:Atrunc}, with $\lambda_V$ defined by $V=YP^{-\lambda_V}$ and with $\lambda^0:=\max\{\lambda_V,0\}$, we have \[ I\le sL\,Y^{s-k}P^{4k\gamma+2\varepsilon}\int_{\lambda^0}^\infty P^{\Phi(y,\lambda)-s\lambda}\,\mathrm{d}\lambda . \] Let $\lambda_1:=z_*y$, so that $\lambda_1\le\frac15y$. If $\lambda\ge\frac12y$, then $\lambda\ge\frac12\gamma\ge \gamma u$ and $\lambda/y\ge\frac12$, so that $\Phi(y,\lambda)=ky$; hence, as $E\ge k-\frac12s$, we have \[ \int_{y/2}^\infty P^{\Phi(y,\lambda)-s\lambda}\,\mathrm{d}\lambda\le\frac{P^{y(k-s/2)}}{sL}\le\frac{P^{yE}}{sL} . \] If $\lambda_1\le\lambda\le\frac12y$, then we have $\Phi(y,\lambda)\le k\lambda\,\mathcal{G}(\lambda/y)$, because $\mathcal{G}$ is nonincreasing and $\max\{\lambda,\gamma u\}\ge\lambda$. With $\lambda':=\lambda/y\ge z_*$ this gives $\Phi(y,\lambda)-s\lambda\le y\lambda'(k\,\mathcal{G}(\lambda')-s)\le yE$, so that the integral over this range is at most $\frac12yP^{yE}\le P^{yE}$. If $\lambda^0\le\lambda\le\lambda_1$, the monotonicity hypothesis gives $\Phi(y,\lambda)\le\Phi(y,\lambda_1)-2k(\lambda_1-\lambda)$, and the previous range, at $\lambda=\lambda_1$, gives $\Phi(y,\lambda)-s\lambda\le yE+(s-2k)(\lambda_1-\lambda)$. Hence the integral over $[\lambda^0,\lambda_1]$ is at most $P^{yE}P^{(s-2k)(\lambda_1-\lambda^0)}/((s-2k)L)$. Finally $P^{\lambda_1-\lambda^0}\le w$. Indeed, if $\lambda^0=\lambda_V$, then $P^{\lambda_1-\lambda_V}=Y^{z_*}V/Y=VY^{z_*-1}$, and if $\lambda^0=0\ge\lambda_V$, then $P^{\lambda_1}\le P^{\lambda_1-\lambda_V}$. Adding the three ranges, we find that the integral over $[\lambda^0,\infty)$ is at most $P^{yE}(1+1/(sL)+w^{s-2k}/((s-2k)L))$, and $P^{yE}=Y^E$. The lemma follows. \end{proof} \subsection{The minor arcs for the smooth Weyl sum}\label{ss:Csmooth} On the arcs of height at least $P^{1/2}$ the moment of order $s$ of $f$ exceeds $P^{s-k}$ by at most $P^{E^++2\kappa}$, whatever the real number $s>2k$ is. The proof is that of Proposition~\ref{prop:Aprune}, with Lemma~\ref{lem:Ctrunc} in place of Lemma~\ref{lem:Atrunc}. We use \textup{(C1)}--\textup{(C4)} of \S\ref{ss:Arec}, with the admissible exponents chosen as in Lemma~\ref{lem:Ainputs}(iii), so that $\tau(k)\ge\tau^\circ$. \begin{proposition}\label{prop:Csmooth} Let $\mathcal{G}$ satisfy the hypotheses of Lemma~\textup{\ref{lem:Apot}}, for some $z_0$, with $u=c_0$, and let $\Phi$ be as in that lemma. Let $s>2k$ and $c_00$, suppose that $(4k+s)\gamma+2\varepsilon\le\frac14\kappa$, and let $\eta$ be sufficiently small. Put $Q_1:=\frac12P^{k/2}R^{-k}$. Then \begin{equation}\label{eq:Csmooth} \int_{\mathbb{T}\setminus\mathfrak{M}(Q_1;P)}|f(\alpha)|^s\,\mathrm{d}\alpha\ll P^{s-k+E^++\kappa}\quad\text{and}\quad \int_{\mathfrak{N}(Q';P)}|f(\alpha)|^s\,\mathrm{d}\alpha\ll P^{s-k+E^++\kappa} \end{equation} for $P^{1/2}\le Q'\le Q_1$, and consequently \[ \int_{\mathfrak{m}(Q)}|f(\alpha)|^s\,\mathrm{d}\alpha\ll P^{s-k+E^++2\kappa}\qquad(P^{1/2}\le Q\le P^{k/2}). \] \end{proposition} When $s>k\,\mathcal{G}(z_*)$, and so $E<0$, the stronger bound of Proposition~\ref{prop:Aprune} is available; Proposition~\ref{prop:Csmooth} is needed only below the threshold. \begin{proof} Put $\varepsilon_3:=\min\{\frac14\kappa,(\tau^\circ-z_*)/(2(k+2))\}$, and let $\eta$ be so small that $\eta s\le\frac14\kappa$ and $k\eta<\tau^\circ-z_*$, and that \textup{(C1)}--\textup{(C4)} hold with this $\varepsilon_3$. Put $\kappa_1:=\varepsilon_3+\eta s+(4k+s)\gamma+2\varepsilon$, so that $\kappa_1\le\frac34\kappa$. Note that $E\le k$: by Lemma~\ref{lem:Apot}(i), applied with $x=1$, the function $\lambda\mapsto k\lambda\,\mathcal{G}(\lambda)$ is nondecreasing for $\lambda\ge\gamma c_0$, and it equals $k$ for $\lambda\ge\frac12$; as $z_*>c_0$, every term in \eqref{eq:Cexcess} is at most $k$. \emph{Extreme arcs.} Let $\alpha\in\mathbb{T}\setminus\mathfrak{M}(Q_1;P)$. As in the proof of Proposition~\ref{prop:Aprune}, \textup{(C4)} gives \[ f(\alpha)\ll P^{1-\tau^\circ+(k/2+1)\varepsilon_3+k\eta/2}+P^{1/2+\varepsilon_3}. \] Here $(\frac12k+1)\varepsilon_3+\frac12k\eta<\frac34(\tau^\circ-z_*)$ and $z_*+\varepsilon_3<\frac12$. So $|f(\alpha)|\le P^{1-z_*}$ when $P$ is large, and Lemma~\ref{lem:Ctrunc}, applied with $Y=P$, $V=P^{1-z_*}$ and the indicator function of $\mathcal{A}(P,R)$ (so that $w=1$), gives \begin{align*} \int_{\mathbb{T}\setminus\mathfrak{M}(Q_1;P)}|f(\alpha)|^s\,\mathrm{d}\alpha&\le\int_{\mathbb{T}}|f(\alpha)|^s\, \mathbf{1}\bigl[|f(\alpha)|\le P^{1-z_*}\bigr]\,\mathrm{d}\alpha\\ &\ll L\,P^{s-k+E+4k\gamma+2\varepsilon}\ll P^{s-k+E^++\kappa}. \end{align*} \emph{Arcs of intermediate height.} Let $P^{1/2}\le Q'\le Q_1$ and $M:=P(2Q')^{-2/k}R^{-1}$, and let $\pi$, $m$, $z$, $Y:=P/(mz)$, $V:=C_4P^{\varepsilon_3}(P/m)^{1-\tau(k)}z^{-1/2}$ and the function $h$ be as in the proof of Proposition~\ref{prop:Aprune}, so that $V_s(\pi,m,z)\le\int_{\mathbb{T}}h(\beta)\,\mathrm{d}\beta$. Suppose first that $Y\ge P^\gamma$. As shown there, we have $VY^{z_*-1}\le z^{1/2}$ for large $P$, because $\varepsilon_3<(\tau^\circ-z_*)/k$; and Lemma~\ref{lem:Ctrunc}, with $w\le z^{1/2}$, gives $\int_{\mathbb{T}}h\ll L\,z^{(s-2k)/2}Y^{s-k+E}P^{4k\gamma+ 2\varepsilon}$. If $1\le Yk\ge2$; there are at most $R=P^\eta$ primes $\pi\le R$; and $\mathcal{B}'(M,\pi,R)\subseteq(M,MR]$. Hence \begin{align*} \sum_{q\le Q'}I_q(M;\mathfrak{N})&\ll L\,P^{\varepsilon_3+\eta+(4k+s)\gamma+2\varepsilon}P^{s-k+E^+}\sum_{m>M} m^{-s-E^+}\\ &\ll L\,P^{\varepsilon_3+\eta+(4k+s)\gamma+2\varepsilon}P^{s-k+E^+}M^{1-s-E^+}. \end{align*} Now we sum \textup{(C1)} over $q\le Q'$. As $\mathfrak{N}(Q';P)\subseteq\bigcup_{q\le Q'}\mathfrak{N}_q(Q';P)$ and $R^{s-1}=P^{\eta(s-1)}$, we have \[ \int_{\mathfrak{N}(Q';P)}|f(\alpha)|^s\,\mathrm{d}\alpha\ll L\,P^{\kappa_1}P^{s-k+E^+}M^{-E^+} +Q'^{\,2}M^sP^{\varepsilon_3-k}\ll P^{s-k+E^++\kappa}, \] because $M\ge1$, and because $M\le P(2Q')^{-2/k}$ gives $Q'^{\,2}M^s\le P^sQ'^{\,2-2s/k}\le P^s$, as $s>k$. \emph{Conclusion.} Let $P^{1/2}\le Q\le P^{k/2}$. If $Q\ge Q_1$, then $\mathfrak{m}(Q)\subseteq\mathbb{T}\setminus \mathfrak{M}(Q_1;P)$. If $QQ\ge P^{1/2}$ for these $j$. As $J_0\ll L$, the bound \eqref{eq:Csmooth} gives $\int_{\mathfrak{m}(Q)}|f|^s\,\mathrm{d}\alpha\ll L\,P^{s-k+E^++\kappa}\ll P^{s-k+E^++2\kappa}$. \end{proof} \subsection{The classical Weyl sum}\label{ss:Cclassical} Let \[ \mathscr{F}(\alpha):=\sum_{1\le x\le P}e(\alpha x^k). \] Its moment of order $k(k+1)$ saves a factor $P^{1-\varepsilon}$ on $\mathfrak{m}(P)$, by \cite[Lemma~3.1]{Woo2016}, and a factor $Q^{k-1}$ on $\mathfrak{N}(Q;P)$ when $P^{1/2}\le Q\le P$, by the classical approximation on the major arcs. \begin{lemma}\label{lem:Cminor} Let $\mathfrak{m}^*$ be the set of $\alpha\in[0,1)$ with the following property: whenever $a\in\mathbb{Z}$ and $q\in\mathbb{N}$ are coprime and $|q\alpha-a|\le(2k)^{-1}P^{1-k}$, one has $q>P$. Then, for every $\varepsilon'>0$, one has \[ \int_{\mathfrak{m}^*}|\mathscr{F}(\alpha)|^{k(k+1)}\,\mathrm{d}\alpha\ll P^{k(k+1)-k-1+\varepsilon'} . \] Moreover $\mathfrak{m}(P)\subseteq\mathfrak{m}^*$, so that the same bound holds for the integral over $\mathfrak{m}(P)$. \end{lemma} \begin{proof} The bound is \cite[Lemma~3.1]{Woo2016}. It follows from \cite[Theorem~2.1]{Woo2012}, by which the integral of $|\mathscr{F}|^{2u}$ over $\mathfrak{m}^*$ is $\ll P^{k(k-1)/2-1}(\log P)^{2u+1}J_{u,k}(P)$, where $J_{u,k}(P)$ denotes the number of solutions of Vinogradov's system of degree $k$ in $2u$ variables from $[1,P]$, together with the bound $J_{u,k}(P)\ll P^{2u-k(k+1)/2+\varepsilon'}$ for $2u\ge k(k+1)$, which is \cite[Theorem~1.1]{BDG2016}. If $\alpha\notin\mathfrak{m}^*$, there are coprime $a$ and $q$ with $q\le P$ and $|q\alpha-a|\le(2k)^{-1}P^{1-k}\le P\cdot P^{-k}$, so that $\alpha\in\mathfrak{M}_q(P;P)\subseteq\mathfrak{M}(P;P)$. Thus $\mathfrak{m}(P)\subseteq \mathfrak{m}^*$. \end{proof} \begin{lemma}\label{lem:Cmajor} Let $P^{1/2}\le Q\le P$. Then $\mathscr{F}(\alpha)\ll PQ^{-1/k}$ for $\alpha\in\mathfrak{N}(Q;P)$, and \[ \int_{\mathfrak{N}(Q;P)}|\mathscr{F}(\alpha)|^{k(k+1)}\,\mathrm{d}\alpha\ll P^{k(k+1)-k}Q^{1-k} . \] \end{lemma} \begin{proof} Let $\alpha\in\mathfrak{N}(Q;P)$, let $a$ and $q$ be coprime with $q\le Q$ and $|q\alpha-a|\le QP^{-k}$, and put $\beta:=\alpha-a/q$. By \textup{(A3)} of \S\ref{ss:arcs}, we have \[ \tfrac12Q2k$. Suppose that for some $\delta_0$ and $\varepsilon_2$ as in \eqref{eq:Aparams} there are $z_0\in[c_0,\frac1{10})$ with \eqref{eq:Cswitch} and $z_*\in(c_0,\tau^\circ)$ such that, with $\mathcal{G}=\mathcal{G}_{z_0}$, \begin{equation}\label{eq:Ccond} (1-\omega)E<\omega,\qquad E:=\sup_{\lambda\ge z_*}\lambda\bigl(k\,\mathcal{G}(\lambda)-v\bigr). \end{equation} Put $\delta:=\omega-(1-\omega)\max\{E,0\}$. If $\gamma$ and $\varepsilon$ satisfy \eqref{eq:Aparams} and $(4k+v)\gamma+2\varepsilon\le\frac1{32}\delta$, and if $\eta$ is sufficiently small, then \[ \int_{\mathfrak{m}(P^{1/2})}|\mathscr{F}(\alpha)|^t|f(\alpha)|^s\,\mathrm{d}\alpha\ll P^{t+s-k-\delta/2}. \] \end{proposition} \begin{proof} By Lemma~\ref{lem:Cpot}, Lemma~\ref{lem:Apot} applies to $\mathcal{G}$ with $u=c_0$. Put $E^+:=\max\{E,0\}$; then $\delta>0$, by \eqref{eq:Ccond} and as $\omega>0$. Put $\kappa:=\frac18\delta$, so that $(4k+v)\gamma+2\varepsilon\le\frac14\kappa$, and let $\eta$ be so small that Lemma~\ref{lem:Apot}(iii) and Proposition~\ref{prop:Csmooth}, with $v$ in place of $s$ and with this $\kappa$, hold. \emph{Arcs of height greater than $P$.} By H\"older's inequality with the exponents $1/\omega$ and $1/(1-\omega)$, we have \[ \int_{\mathfrak{m}(P)}|\mathscr{F}^tf^s|\,\mathrm{d}\alpha\le\Bigl(\int_{\mathfrak{m}(P)}|\mathscr{F}|^{k(k+1)}\, \mathrm{d}\alpha\Bigr)^{\omega}\Bigl(\int_{\mathfrak{m}(P)}|f|^v\,\mathrm{d}\alpha\Bigr)^{1-\omega}. \] Lemma~\ref{lem:Cminor}, with $\varepsilon'=\kappa$, bounds the first factor by $P^{\omega(k(k+1)-k-1)+\kappa}$, and Proposition~\ref{prop:Csmooth}, with $Q=P$, bounds the second factor by $P^{(1-\omega)(v-k+E^++2\kappa)}$. Since $\omega k(k+1)=t$ and $(1-\omega)v=s$, one has \[ \omega\bigl(k(k+1)-k-1\bigr)+(1-\omega)(v-k)=t+s-k-\omega, \] and so the integral is $\ll P^{t+s-k-\omega+(1-\omega)E^++3\kappa}=P^{t+s-k-\delta+3\kappa}$. \emph{Arcs of height between $P^{1/2}$ and $P$.} Let $J$ be the least integer with $2^{-J-1}P\le P^{1/2}$. Then $\mathfrak{M}(P;P)\setminus\mathfrak{M}(P^{1/2};P)$ is contained in the union of the sets $\mathfrak{N}(2^{-j}P;P)$ with $0\le j\le J$, and $P^{1/2}<2^{-j}P\le P$ for these $j$. Let $Q=2^{-j}P$ be one of these heights. For large $P$ one has $Q\le P\le Q_1$, and H\"older's inequality, Lemma~\ref{lem:Cmajor} and Proposition~\ref{prop:Csmooth} give \[ \int_{\mathfrak{N}(Q;P)}|\mathscr{F}^tf^s|\,\mathrm{d}\alpha\ll\bigl(P^{k(k+1)-k}Q^{1-k}\bigr)^{\omega} \bigl(P^{v-k+E^++\kappa}\bigr)^{1-\omega}=P^{t+s-k+(1-\omega)(E^++\kappa)}Q^{-(k-1)\omega}. \] As $Q>P^{1/2}$ and $\frac12(k-1)\ge1$, this is at most $P^{t+s-k-\delta+\kappa}$. Since $J\ll L$, the integral over $\mathfrak{M}(P;P)\setminus\mathfrak{M}(P^{1/2};P)$ is $\ll P^{t+s-k-\delta+2\kappa}$. As $\mathfrak{m}(P^{1/2})$ is the union of $\mathfrak{m}(P)$ and $\mathfrak{M}(P;P)\setminus\mathfrak{M}(P^{1/2};P)$, and $3\kappa<\frac12\delta$, the proposition follows. \end{proof} \begin{theorem}\label{thm:Cmixed} Let $t$ and $s$ be integers with $1\le t2\lfloor k/2\rfloor+4$ such that $t+s\ge4k+1$, and suppose that the hypotheses of Proposition~\textup{\ref{prop:Cmixed}} on $z_0$ and $z_*$ hold. For a large natural number $N$ let $P:=N^{1/k}$, and let $r(N)$ be the number of solutions of $N=x_1^k+\dots+x_t^k+y_1^k+\dots+y_s^k$ in integers $x_i\in[1,P]$ and $y_j\in\mathcal{A}(P,R)$. Then, if $\eta$ is sufficiently small, one has \[ r(N)=c(\eta)^s\,\mathfrak{S}_{t+s}(N)\,\frac{\Gamma(1+\frac1k)^{t+s}}{\Gamma(\frac{t+s}k)}\,N^{(t+s)/k-1} +o\bigl(N^{(t+s)/k-1}\bigr), \] and $\mathfrak{S}_{t+s}(N)\gg1$. In particular $G(k)\le t+s$. \end{theorem} For $t=0$ the corresponding statement is Corollary~\ref{cor:Cthreshold}. The proofs use $\mathcal{G}_{z_0}$ only through Lemma~\ref{lem:Apot}, so that any function that satisfies the hypotheses of that lemma with $u=c_0$ may take its place. \begin{proof} By orthogonality, we have $r(N)=\int_{\mathbb{T}}\mathscr{F}(\alpha)^tf(\alpha)^se(-N\alpha)\,\mathrm{d}\alpha$. Fix $\delta_0$, $\varepsilon_2$, $z_0$ and $z_*$ as in the hypotheses, let $\delta$ be as in Proposition~\ref{prop:Cmixed}, choose $\gamma$ and $\varepsilon$ as there, and put $\varrho:=\min\{1,(s-2\lfloor k/2\rfloor-4)/(4k)\}$. Let $\eta$ be so small that Proposition~\ref{prop:Cmixed}, \textup{(B3)} with $u=s$ and this $\varrho$, and \textup{(V)} hold. By Proposition~\ref{prop:Cmixed} the integral of $|\mathscr{F}^tf^s|$ over $\mathfrak{m}(P^{1/2})$ is $\ll P^{t+s-k-\delta/2}$. \emph{Heights between $Q_0$ and $P^{1/2}$.} One has $\mathfrak{m}(Q_0)\setminus\mathfrak{m}(P^{1/2})= \mathfrak{M}(P^{1/2};P)\setminus\mathfrak{M}(Q_0;P)$. By the trivial bound $|\mathscr{F}|\le P$ and \textup{(B3)}, which applies because $s>2\lfloor k/2\rfloor+4$, the integral of $|\mathscr{F}^tf^s|$ over this set is $\ll P^{t+s-k}Q_0^{-\varrho}$. \emph{The arcs $\mathfrak{K}$.} Let $\alpha\in\mathfrak{K}(q,a)$ and $\beta:=\alpha-a/q$, so that $q\le Q_0$ and $|\beta|\le Q_0P^{-k}$. By \cite[Theorem~4.1]{Vau1997} and by \textup{(V)}, we have \[ \mathscr{F}(\alpha)=q^{-1}S(q,a)v(\beta)+O\bigl(Q_0^{1+\varepsilon}\bigr),\qquad f(\alpha)=c(\eta)\,q^{-1}S(q,a)v(\beta)+O\bigl(PL_*^{-1/4}\bigr). \] The sums $\mathscr{F}$ and $f$ and these main terms are $O(P)$, and $Q_0^{1+\varepsilon}\le PL_*^{-1/4}$; hence \[ \mathscr{F}(\alpha)^tf(\alpha)^s=c(\eta)^s\bigl(q^{-1}S(q,a)v(\beta)\bigr)^{t+s}+O\bigl(P^{t+s}L_*^{-1/4}\bigr) \qquad(\alpha\in\mathfrak{K}(q,a)). \] The sets $\mathfrak{K}(q,a)$ are pairwise disjoint for large $P$, and $\operatorname{meas}\mathfrak{K}\le4Q_0^3P^{-k}$. Integrating, and using $Q_0^3L_*^{-1/4}=L_*^{-1/20}$, we obtain, in the notation of \S\ref{ss:major}, \[ \int_{\mathfrak{K}}\mathscr{F}(\alpha)^tf(\alpha)^se(-N\alpha)\,\mathrm{d}\alpha=c(\eta)^s\,\mathfrak{S}_{t+s}(N;Q_0)\, \mathfrak{J}_{t+s}(N;Q_0)+O\bigl(P^{t+s-k}L_*^{-1/20}\bigr). \] As $t+s>4k$, the estimates of \S\ref{ss:major} apply with $t+s$ in place of $s$, and give \begin{align*} \mathfrak{S}_{t+s}(N;Q_0)&=\mathfrak{S}_{t+s}(N)+O\bigl(Q_0^{2-(t+s)/k}\bigr),\\ \mathfrak{J}_{t+s}(N;Q_0)&=\frac{\Gamma(1+\frac1k)^{t+s}}{\Gamma(\frac{t+s}k)}N^{(t+s)/k-1} +O\bigl(N^{(t+s)/k-1}(Q_0^{1-(t+s)/k}+N^{-1/k})\bigr); \end{align*} moreover $1\ll\mathfrak{S}_{t+s}(N)\ll1$, by \cite[Theorem~4.6]{Vau1997}, because $t+s\ge4k$. \emph{Conclusion.} One has $\mathbb{T}\setminus\mathfrak{K}\subseteq\mathfrak{m}(Q_0)$, and $\mathfrak{m}(Q_0)$ is the union of $\mathfrak{m}(Q_0)\setminus\mathfrak{m}(P^{1/2})$ and $\mathfrak{m}(P^{1/2})$. By the estimates above, the integral over $\mathbb{T}\setminus\mathfrak{K}$ is $\ll P^{t+s-k}(P^{-\delta/2}+Q_0^{-\varrho})$. Together with the contribution of $\mathfrak{K}$ this gives the asymptotic formula, as $P^{t+s-k}=N^{(t+s)/k-1}$ and $Q_0$ and $L_*$ tend to infinity with $N$. Each solution counted by $r(N)$ represents $N$ as a sum of $t+s$ positive $k$-th powers, and so $G(k)\le t+s$. \end{proof} \begin{theorem}\label{thm:Calmost} Let $t'$ and $s'$ be natural numbers with $s'>2\lfloor k/2\rfloor+4$ and $\ell:=t'+s'>2k$, and suppose that the hypotheses of Proposition~\textup{\ref{prop:Cmixed}} hold for $t:=2t'$ and $s:=2s'$. Then there is a number $\delta'>0$ with the following properties. \textup{(i)} Suppose that $k$ is not a power of $2$. Then all natural numbers $n\le N$, with at most $O(N^{1-\delta'})$ exceptions, are sums of $\ell$ $k$-th powers of natural numbers. In particular $G^+(k)\le\ell$. \textup{(ii)} Suppose that $k$ is a power of $2$, and let $j$ be an integer with $1\le j\le\min\{\ell,4k\}$. Then all natural numbers $n\le N$ with $n\equiv j\pmod{4k}$, with at most $O(N^{1-\delta'})$ exceptions, are sums of $\ell$ $k$-th powers of natural numbers. \end{theorem} \begin{proof} We follow \S\ref{ss:almost}, with $r_\ell(n)$ replaced by the number $r(n)$ of solutions of \[ n=x_1^k+\dots+x_{t'}^k+y_1^k+\dots+y_{s'}^k\qquad\bigl(x_i\in[1,P],\ y_j\in\mathcal{A}(P,R)\bigr), \] that is, by the integral of $\mathscr{F}(\alpha)^{t'}f(\alpha)^{s'}e(-n\alpha)$ over $\mathbb{T}$. Let $\delta$ be as in Proposition~\ref{prop:Cmixed} for $t=2t'$ and $s=2s'$, choose $\gamma$ and $\varepsilon$ as there, fix $\varrho'$ with $0<\varrho'<(s'-2\lfloor k/2\rfloor-4)/(2k)$, and let $\eta$ be so small that Proposition~\ref{prop:Cmixed}, \textup{(B3)} with $u=s'$ and $\varrho=\varrho'$, and \textup{(V)} hold. For $\frac12N2k$ is used. The trivial bound $|\mathscr{F}|\le P$ and \textup{(B3)} give $|I_2(n)|\ll P^{\ell-k}Q_0^{-\varrho'}$, uniformly in $n$. By Bessel's inequality and Proposition~\ref{prop:Cmixed}, we have \[ \sum_{n\in\mathbb{Z}}|I_3(n)|^2\le\int_{\mathfrak{m}(P^{1/2})}|\mathscr{F}(\alpha)|^{2t'}|f(\alpha)|^{2s'}\, \mathrm{d}\alpha\ll P^{2\ell-k-\delta/2}, \] so that $|I_3(n)|\le P^{\ell-k-\delta/8}$ for all integers $n$ with at most $O(P^{k-\delta/4})$ exceptions. Finally \eqref{eq:sslower} holds for $\mathfrak{S}_\ell(n)$, by the argument in the proof of Theorem~\ref{thm:almostexplicit}, which uses only the inequality $\ell\ge2k+1$ when $k$ is a power of $2$, and $\ell\ge\frac32k$ otherwise. The rest of the argument is that of the proof of Theorem~\ref{thm:almostexplicit}, with $\delta':=\delta/(4k)$. \end{proof} \begin{corollary}\label{cor:Cvw} Let $(\Psi^\circ,\tau^\circ)$ be formed with the tables of \cite{VW2000}. Then the hypotheses of Theorem~\textup{\ref{thm:Cmixed}} hold for $(k,t,s)=(7,8,23)$, $(8,6,31)$, $(9,8,36)$ and $(10,6,44)$, and those of Theorem~\textup{\ref{thm:Calmost}} hold for $(k,t',s')=(7,4,12)$, $(8,3,16)$, $(9,4,18)$ and $(10,3,22)$. Consequently $G(7)\le31$, $G(8)\le37$, $G(9)\le44$ and $G(10)\le50$; $G^+(7)\le16$, $G^+(9)\le22$ and $G^+(10)\le25$; and for $k=8$ the conclusion of Theorem~\textup{\ref{thm:Calmost}(ii)} holds with $\ell=19$. \end{corollary} \begin{proof} In the four cases of Theorem~\ref{thm:Cmixed} one has $s>2\lfloor k/2\rfloor+4$ and $t+s\ge4k+1$. In the four cases of Theorem~\ref{thm:Calmost} one has $s'>2\lfloor k/2\rfloor+4$ and $\ell=t'+s'>2k$, as $\ell=16$, $19$, $22$ and $25$; here $(t,s)=(2t',2s')$ is $(8,24)$, $(6,32)$, $(8,36)$ and $(6,44)$. In all cases $v>2k$; for instance $v=31/(1-\frac1{12})=33.81\ldots$ for $(k,t,s)=(8,6,31)$. Conditions \eqref{eq:Cswitch} and \eqref{eq:Ccond} are verified in \S\ref{ss:Cnum}, with the numbers $z_0$ of Table~\ref{tab:Cverif}, for all $\delta_0$ and $\varepsilon_2$ that satisfy \eqref{eq:Aparams} and \eqref{eq:Csmallpar}. \end{proof} \subsection{Numerical values}\label{ss:Cnum} Conditions \eqref{eq:Cswitch} and \eqref{eq:Ccond} involve the potential only through the function $\underline{S}$, and the recursion \eqref{eq:Cpot} is monotone in $\underline{S}$: if $\underline{S}$ is replaced by a smaller function, the function $\mathcal{G}$ can only increase. It therefore suffices to bound $\underline{S}$ from below, uniformly in small $\delta_0$ and $\varepsilon_2$, and then to evaluate \eqref{eq:Cpot} and $E$ with all roundings in the safe direction. \emph{The computation.} Let $\sigma:=10^{-6}$ and $H:=4\cdot10^{-6}$. Let $c_0$ be the number $(1-10^{-7})\tau^\circ$, rounded downwards to a floating point number, and let $z_*\in(c_0,\tau^\circ)$. Let $\zeta_0:=c_0$, and let $\zeta_1<\zeta_2<\dots$ be floating point numbers with $\zeta_{i+1}/\zeta_i\approx1+H$, up to the first point $\zeta_{\mathrm{end}}$ beyond $\frac15$; there are between $5.6\cdot10^5$ and $6.9\cdot10^5$ such points for $7\le k\le10$. For $0\frac14$. By Lemma~\ref{lem:Achain}(iv) one has $\check\theta(t)\le\theta_k(t)$ for $0v,\qquad \zeta_i\bigl(k\hat{\mathcal{G}}_i-v\bigr)\quad\text{if }k\hat{\mathcal{G}}_i\le v \] for the cells with $\zeta_{i+1}\le\zeta_{\mathrm{end}}$, rounded upwards, and of the values of the concave function $\lambda\mapsto\min_{0\le s''\le S}((2s''-v)\lambda+\Delta_{s''})$, which equals $\lambda(k\Psi^\circ(\lambda)-v)$, at $\lambda=\zeta_{\mathrm{end}}$ and at its break points $\frac12(\Delta_{s''}-\Delta_{s''+1})\ge\zeta_{\mathrm{end}}$. \begin{lemma}\label{lem:Ccells} Suppose that \begin{equation}\label{eq:Csmallpar} 0<\delta_0\le\frac\sigma{1+\sigma},\qquad0<\varepsilon_2\le\sigma . \end{equation} Then $\underline{S}(z)\ge\underline{\hat S}_i$ for $z\in[\zeta_i,\zeta_{i+1})$ with $z\le\frac15$, and $\mathcal{G}_{z_0}(z)\le\hat{\mathcal{G}}_i$ for $z\in[\zeta_i,\zeta_{i+1})$. Consequently $E\le\hat E$, and \eqref{eq:Cswitch} holds if $\Psi^\circ(z_0)-\Psi^\circ(\underline{\hat S}_{i_0})\ge\frac2k$. \end{lemma} \begin{proof} Let $v\in[\zeta_j,\zeta_{j+1})$ with $v\le\frac15$, and put $t_j:=2\zeta_{j+1}(1+\sigma)$. Then $2v/(1-\delta_0)\le t_j$ and $2c_0\le t_j$, and $t_j<\frac12$. So, by \eqref{eq:Athetaz} and since $\theta_k$ is nonincreasing, we have $\theta(v)\ge\theta_k(t_j)\ge\check\theta(t_j)$. As $1/(1+\varepsilon_2)\ge1-\sigma$, it follows that $S(v)\ge\hat S_j$. Taking the infimum over $v\in[z,\frac15]$, where $z\ge\zeta_i$, we obtain $\underline{S}(z)\ge\underline{\hat S}_i$. In particular $\underline{S}(x)\ge \underline{\hat S}_{\iota(x)}$ for $c_0\le x\le\frac15$, and so, by induction and as $\underline{S}$ is nondecreasing, the points $\hat x_j$ do not exceed the points $x_j$ of Lemma~\ref{lem:Cchain} that belong to $z=\zeta_i$. The expression of that lemma does not decrease when the points $x_j$ are replaced by smaller ones: the number $m$ can only increase; if it does not change, the value does not decrease, as $\Psi^\circ$ is decreasing; and if it increases, the new value is at least $2m/k+\Psi^\circ(z_0)$, which is at least the old one, as $\Psi^\circ(x_m)\le\Psi^\circ(z_0)$. Hence $\mathcal{G}_{z_0}(\zeta_i)\le\hat{\mathcal{G}}_i$ for $ic_0=\zeta_0$, because $\lambda(k\,\mathcal{G}_{z_0}(\lambda)-v)$ is bounded on each cell by the number that is used for $\hat E$, and because $\mathcal{G}_{z_0}=\Psi^\circ$ on $[\zeta_{\mathrm{end}},\infty)$. The last assertion holds because $\Psi^\circ$ is decreasing and $\underline{S}(z_0)\ge\underline{\hat S}_{i_0}$. \end{proof} The computation is carried out in double precision arithmetic, with directed rounding as in \S\ref{ss:Averif}; the condition in Lemma~\ref{lem:Ccells} that implies \eqref{eq:Cswitch} is decided in exact rational arithmetic, with $\Psi^\circ$ evaluated exactly at the floating point numbers $z_0$ and $\underline{\hat S}_{i_0}$, and so are the inequality $(1-\omega)\hat E<\omega$ and the contribution of $[\zeta_{\mathrm{end}},\infty)$ to $\hat E$. Table~\ref{tab:Cverif} lists the results for the cases of Corollary~\ref{cor:Cvw}; the rows for $k=9$ and $k=10$ serve both theorems. The number $k\hat{\mathcal{G}}_0$ bounds the threshold $k\,\mathcal{G}_{z_0}(c_0)$ of Corollary~\ref{cor:Cthreshold} for the chosen $z_0$, and the margin is $\omega-(1-\omega)\hat E$. The switch points were found by a search over a geometric grid of relative step $0.004$ in $[0.05,\frac1{10})$. The bounds are attained for whole ranges of $t$: with the tables of \cite{VW2000}, the bound $31$ is attained for $3\le t\le11$ when $k=7$, the bound $37$ for $4\le t\le9$ when $k=8$, the bound $44$ for $2\le t\le11$ when $k=9$, and the bound $50$ for $3\le t\le9$ when $k=10$ (among $t\le14$). \begin{table}[ht] \caption{The verification of \eqref{eq:Cswitch} and \eqref{eq:Ccond} for Corollary~\ref{cor:Cvw}, with the tables of \cite{VW2000}. The pairs $(t,s)$ are those of Theorem~\ref{thm:Cmixed} and the pairs $(2t',2s')$ of Theorem~\ref{thm:Calmost}. The column headed `margin' gives $\omega-(1-\omega)\hat E$, and the last column gives $\Psi^\circ(z_0)-\Psi^\circ(\underline{\hat S}_{i_0})-\frac2k$; the numbers are rounded downwards, except those in the columns $k\hat{\mathcal{G}}_0$ and $\hat E$, which are rounded upwards.}\label{tab:Cverif} \begin{tabular}{@{}rrrcccccc@{}} \toprule $k$ & $t$ & $s$ & $z_0$ & $k\hat{\mathcal{G}}_0$ & $\hat E$ & $\omega$ & margin & \eqref{eq:Cswitch}\\ \midrule 7 & 8 & 23 & 0.07104 & 32.0165 & 0.133624 & 0.142857 & 0.028322 & 0.00905\\ 7 & 8 & 24 & 0.07104 & 32.0165 & 0.092595 & 0.142857 & 0.063490 & 0.00905\\ 8 & 6 & 31 & 0.07819 & 38.1574 & 0.081238 & 0.083333 & 0.008865 & 0.00528\\ 8 & 6 & 32 & 0.07819 & 38.1574 & 0.057051 & 0.083333 & 0.031036 & 0.00528\\ 9 & 8 & 36 & 0.08507 & 44.2944 & 0.077981 & 0.088888 & 0.017840 & 0.00871\\ 10 & 6 & 44 & 0.08248 & 50.5028 & 0.052455 & 0.054545 & 0.004952 & 0.01261\\ \bottomrule \end{tabular} \end{table} \subsection{Tables of permissible exponents}\label{ss:Ctables} \begin{lemma}\label{lem:Ctables} Let $S\ge k$ be an integer, and let $\lambda_0,\dots,\lambda_S$ be permissible exponents in the sense of \cite[\S2]{VW2000}, with $\lambda_0=0$, $\lambda_1=1$ and $\lambda_2=2$, that satisfy \textup{(V1)--(V3)} with $S$ in place of $S_k$. Let $T_k$ be a rounded-up value of $4u^2/(k-2\Delta_u)$, where $u=k-1$, suppose that $T_k>40$, and form $\Psi^\circ$ and $\tau^\circ$ from these numbers as in \S\ref{ss:Apot}. Then Lemma~\textup{\ref{lem:Ainputs}} holds for this pair, and $\tau^\circ<\frac1{40}$. Consequently Theorem~\textup{\ref{thm:Arec}} in its second case, Corollary~\textup{\ref{cor:Cthreshold}} and Theorems~\textup{\ref{thm:Cmixed}} and~\textup{\ref{thm:Calmost}} hold for this pair. \end{lemma} \begin{proof} The proof of Lemma~\ref{lem:Ainputs} uses the tables of \cite{VW2000} only through the permissibility of the numbers $\lambda_s$, in part~(ii) and in part~(iii) with $u=k-1$, and through (V1)--(V3); and (V2) requires $S\ge k$. Apart from Lemma~\ref{lem:Ainputs}, the proofs of Theorem~\ref{thm:Arec}, of Corollary~\ref{cor:Cthreshold} and of Theorems~\ref{thm:Cmixed} and~\ref{thm:Calmost} use the tables only through the inequality $\tau^\circ<\frac1{40}$, which is noted before \textup{(C1)} in \S\ref{ss:Arec} and is used in the proof of Proposition~\ref{prop:Aprune}. \end{proof} \emph{The table for $k=13$.} Table~\ref{tab:C13} lists exponents $\lambda_s$ for $3\le s\le29$ that improve on those of \cite{VW2000}; for $30\le s\le36$ we keep the numbers of \cite{VW2000}. They were obtained from a fixed point over real moment orders $u\in[0,58]$, with step $\frac14$, of the iterative schemes of \cite{VW2000}, in which each scheme consists of four kinds of steps: \begin{enumerate} \item[(a)] the first differencing step is that of \cite[Lemmas~2.3 and~3.3]{Woo1995b}, with a real order of the moment and a real parameter $t\le1$; for $t=1$ it is \cite[Lemma~2.1]{VW2000}; \item[(b)] at the second level, H\"older's inequality reduces to a mean value of the shape $\int|F_1|^2|f_1|^{b_1}$ with $b_1$ even, to which the fundamental lemma \cite[Lemma~2.2]{Woo1992} is applied; for $t=1$ this is \cite[Lemma~2.2]{VW2000}; \item[(c)] the further levels use \cite[Lemma~2.2]{VW2000}; \item[(d)] the final step is \cite[(2.11)]{VW2000}, with H\"older's inequality between $I_m$ and $I_{m+1}$, and with $(\tau,\chi)$ from one of the cases of \cite[Theorem~3.4]{VW2000}, subject to the linear conditions on the parameters $\phi_i$ that belong to that case. \end{enumerate} The values for $u>58$ are those of \cite{VW2000}, and the lower convex hull is taken after every step of the iteration, by H\"older's inequality. Each of the $152$ vertices of the final hull in $(4,58]$ was certified in exact rational arithmetic: the parameters $\phi_i$ of its scheme were converted to rationals, the conditions $0\le\phi_{i+1}\le\phi_i\le1/k$ and the conditions of the relevant case of \cite[Theorem~3.4]{VW2000} were checked exactly, and the bound was evaluated exactly, with the exponents that enter it taken from the computed values, raised by $6\cdot10^{-7}$, rounded up to multiples of $10^{-7}$, and interpolated linearly between the points of the grid (by H\"older's inequality). Each certified bound is smaller than the rounded value at its vertex, by at least $8\cdot10^{-8}$. Through step~(d) the bound at a vertex may involve the rounded values at larger orders, so that this is a fixed point property rather than an induction on the order; it suffices nevertheless. Indeed, each bound is a nondecreasing function of the values that enter it, and their coefficients add up to at most~$1$. Let $d$ be the largest amount by which, at an order that is not certified, the rounded value lies below the lowest chord between certified orders; one has $d\le7.5\cdot10^{-8}$. If $M>0$ were the largest amount by which the least permissible exponent exceeds the rounded value at a certified order, then, by the convexity of the least permissible exponent, the excess at every order would be at most $M+d$, and at a certified order at which $M$ is attained the margin would give $M\le M+d-8\cdot10^{-8}\mathcal{Y}$, Theorem~\ref{thm:Arec}(ii) applies with $\ell=16$. \end{proof} The bound $G(7)\le32$ is weaker than the bound $G(7)\le31$ of \cite{Woo2016} and of Corollary~\ref{cor:Cvw}, and the bound $G^+(7)\le16$ that Proposition~\ref{prop:C7} gives is that of Corollary~\ref{cor:Cvw}, which rests on the tables of \cite{VW2000}. With the numbers of Table~\ref{tab:C7}, the least threshold of Corollary~\ref{cor:Cthreshold} on the grid is $31.92\ldots$, and Theorem~\ref{thm:Cmixed} again gives $31$, now for $3\le t\le12$; for the total $30$ the largest margin that we found is about $-0.007$, for $(t,s)=(7,23)$. For $k=8$, \dots, $12$, $14$ and $15$ tables were computed in the same way as for $k=13$, but they were not certified; they lower the numbers $\mathcal{Y}^{\mathrm{VW}}(k)$ of Table~\ref{tab:Arecsmall} by $0.11$ to $0.15$, and they change no integer, in Theorem~\ref{thm:Arec} or in Theorem~\ref{thm:Cmixed}. \subsection{Remarks}\label{ss:Cremarks} \begin{remark}\label{rem:Cverif} Part~15 of the program of \S\ref{ss:numerics} carries out the computations of \S\ref{ss:Cnum} and the recursions of Propositions~\ref{prop:C13} and~\ref{prop:C7}; it takes about two minutes. The program contains Tables~\ref{tab:C13} and~\ref{tab:C7}, compares the column `$\lambda_s$ of \cite{VW2000}' with the tables of \cite{VW2000} that it contains, and evaluates the triples of Table~\ref{tab:Cverif}, the thresholds of Remark~\ref{rem:Cthreshold} at the switch points stated there, and the numbers of Propositions~\ref{prop:C13} and~\ref{prop:C7}. The searches by which the switch points and the ranges of $t$ in \S\ref{ss:Cnum} and in Remark~\ref{rem:Csmall} were found are not part of it; their results are numerical observations, which the proofs do not use. \end{remark} \begin{remark}\label{rem:Csmall} For $k=6$ the method fails, for the table of \cite[Appendix]{VW1995}, truncated at $S=11$ because $\Delta_{12}=0$: at the switch points of a grid of relative step $5\cdot10^{-4}$ in $[c_0,\frac1{10})$ the largest value of $k(\Psi^\circ(z_0)-\Psi^\circ(\underline{\hat S}_{i_0}))$ is $1.854$, whereas \eqref{eq:Cswitch} requires $2$. This is the obstruction of Remark~\ref{rem:Asmallk}, where the largest decrease of $k\Psi^\circ$ along a step of the sequence of \S\ref{ss:Anum} is $1.73$. For $k=7$ and the tables of \cite{VW2000}, Theorem~\ref{thm:Cmixed} gives $31$ for $3\le t\le11$, which is the bound of \cite{Woo2016}; the largest margin among the pairs $(t,31-t)$ is $0.0283$, for $(t,s)=(8,23)$, while for $(t,s)=(8,22)$, with the total $30$, the largest margin on the grid is $-0.0146$. For $k\ge11$ the classical variables do not help. Heuristically, as long as the supremum in \eqref{eq:Ccond} is attained at $\lambda=z_*\approx\tau^\circ$, one has $E=z_*(k\,\mathcal{G}(z_*)-v)$, and \eqref{eq:Ccond} asks for $v>k\,\mathcal{G}(z_*)-\omega T_k/(1-\omega)$; thus each classical variable changes the number of variables by about $1-(k\,\mathcal{G}(z_*)+T_k)/(k(k+1))$. With $k\,\mathcal{G}(z_*)\approx\mathcal{Y}^{\mathrm{VW}}(k)$ this is $-0.44$, $-0.34$, $-0.24$ and $-0.16$ for $7\le k\le10$, only $-0.08$ and $-0.02$ for $k=11$ and $12$, and positive for $13\le k\le15$. For larger $t$ the supremum moves to larger $\lambda$, and the saving becomes smaller. A search over $t\le3k$ for $k=11$ and $12$, and over $t\le k$ for $13\le k\le15$, with switch points on a grid of relative step $0.01$ in $[0.07,\frac1{10})$, found no pair $(t,s)$ with $t+s=G^{\mathrm{VW}}(k)-1$. The case $k=11$ comes closest: the largest margin is $-0.0029$, for $(t,s)=(5,51)$, and it stays negative on a finer grid, of relative step $0.0005$ in $[0.085,\frac1{10})$. With the numbers of Table~\ref{tab:C13}, the least threshold of Corollary~\ref{cor:Cthreshold} on the grid of Remark~\ref{rem:Cthreshold} is $68.92\ldots$, and a search over $t\le20$, with switch points in $[0.08,\frac1{10})$, found no pair $(t,s)$ with $t+s=68$. \end{remark} \clearpage \section{The limit constant and further estimates}\label{s:appD} This appendix collects some observations on the constant $C_0^\star=6.219627\ldots$ of Appendix~\ref{s:appendix}: how it is made up, and how much further estimates for the sums $\mathcal{S}$ of \S\ref{s:exp}, in particular further van der Corput processes, could lower it. For large $k$ such estimates matter only through $C_0^\star$. In Proposition~\ref{prop:Alarge} the coefficient $c_\star=4-2\log\frac{9.027901}2$ of $\sqrt k$ does not involve $\theta^\star$, and the remaining terms are of order $\log k$. Nothing in this appendix is used elsewhere. The statements of \S\S\ref{ss:Dparts}--\ref{ss:Dvdc} are checked by Part~16 of the program (\S\ref{ss:Dprog}); the values in \S\ref{ss:Dhypo} rest on estimates that are not proved, and on a computation in double precision that is not part of the program. \subsection{The parts of the constant}\label{ss:Dparts} By the remarks after Lemma~\ref{lem:Alimit}, we have \[ C_0^\star=2+\log\frac{341}{41}+2\int_0^{41/191}\frac{\mathrm{d}t}{t\,\theta^\star(t)}, \] and the integral is $\Lambda^\star$. Table~\ref{tab:Dparts} splits $C_0^\star$ according to the range of $t$. For $D\ge4$ the ranges are unions of the bands $(p_{D+1},p_D]$, where $p_D=1/(D(D+1))$, and $D\le\theta^\star(t)\frac1{20}$, that is, from the moduli $q=X^U$ with $U<\theta^\star(\frac1{20})=\frac{65}{16}$, and $0.785898$ from the range of the words alone. \subsection{The bands of large \texorpdfstring{$D$}{D}}\label{ss:Dbands} For $D\ge4$ the contribution of the band $(p_{D+1},p_D]$ to $\Lambda^\star$ is $\Lambda_D^\dagger$. As stated in the remarks after Lemma~\ref{lem:Alimit}, it would be $\Lambda_D$ for the tent alone, then $\Lambda_D^\star$ with the prime multipliers (the numbers~(e) of Definition~\ref{def:Asaving}), and $\Lambda_D^\sharp$ with the cancellation in the count of the pairs in addition (the numbers~(f)). The expansions of the closed forms in powers of $1/D$ give \begin{equation}\label{eq:Dexp} \begin{aligned} \Lambda_D&=\frac2{D^2}-\frac2{D^3}+O\Bigl(\frac1{D^4}\Bigr),& \Lambda_D^\star&=\frac2{D^2}-\frac5{2D^3}+O\Bigl(\frac1{D^4}\Bigr),\\ \Lambda_D^\sharp&=\frac2{D^2}-\frac{193}{72D^3}+O\Bigl(\frac1{D^4}\Bigr),& \Lambda_D^\dagger&=\frac2{D^2}-\frac{17}{6D^3}+O\Bigl(\frac1{D^4}\Bigr), \end{aligned} \end{equation} as $D\to\infty$; with $\theta^\star(t)=D$ on the whole band the contribution would be $\frac1D\log(1+\frac2D)$, which has the same expansion as $\Lambda_D$ up to $O(D^{-4})$. The leading term $2/D^2$ comes from $\theta^\star(t)\sim D$, and none of the refinements changes it. The prime multipliers, the cancellation in the count of the pairs, and the combination of the two lower only the coefficient of $D^{-3}$, by $\frac12$, $\frac{13}{72}$ and $\frac{11}{72}$, respectively. Table~\ref{tab:Dbands} gives the sums. \begin{table}[ht] \caption{The bands $D\ge4$ and $D\ge15$: twice the sums of the contributions, and the changes due to the numbers (e), (f) and (g) of Definition~\ref{def:Asaving}.}\label{tab:Dbands} \small \begin{tabular}{@{}lrr@{}} \toprule & $D\ge4$ & $D\ge15$\\ \midrule $2\sum\Lambda_D$ (the tent alone) & $0.98774$ & $0.26641$\\ $-2\sum(\Lambda_D-\Lambda_D^\star)$ (prime multipliers, (e)) & $-0.01720$ & $-0.00190$\\ $-2\sum(\Lambda_D^\star-\Lambda_D^\sharp)$ (cancellation, (f)) & $-0.00751$ & $-0.00073$\\ $-2\sum(\Lambda_D^\sharp-\Lambda_D^\dagger)$ (the two combined, (g)) & $-0.00215$ & $-0.00044$\\ \midrule $2\sum\Lambda_D^\dagger$ (present) & $0.96088$ & $0.26334$\\ \bottomrule \end{tabular} \end{table} By \S\ref{s:remarks} and the introduction to Appendix~\ref{s:appendix}, the prime multipliers, together with the change of regime at $\frac{41}{382}$, lowered the constant from $6.2584\ldots$ to $6.2336\ldots$, the cancellation lowered it to $6.2224\ldots$, and the combination of the two to $6.219627\ldots$. Of these gains of $0.0248$, $0.0112$ and $0.0028$, the bands with $D\ge4$ account for $0.0172$, $0.0075$ and $0.0022$, and those with $D\ge15$ for $0.0019$, $0.0007$ and $0.0004$. Any improvement on the bands of large $D$ is limited in the same way. Suppose that an estimate raised $\theta^\star$ by $\delta>0$ throughout the bands with $D\ge D_0$, where $D_0\ge4$. As $\theta^\star\ge D$ on the band of $D$, and as $z_0$ does not change, the constant $C_0^\star$ would decrease by at most \begin{equation}\label{eq:Ddelta} 2\sum_{D\ge D_0}\int_{p_{D+1}}^{p_D}\frac{\delta\,\mathrm{d}t}{t\,\theta^\star(t)(\theta^\star(t)+\delta)} \le2\delta\sum_{D\ge D_0}\frac1{D^2}\log\Bigl(1+\frac2D\Bigr), \end{equation} which is less than $0.1365\,\delta$ for $D_0=4$ and less than $0.0091\,\delta$ for $D_0=15$. \subsection{Further van der Corput processes}\label{ss:Dvdc} (a) In Lemma~\ref{lem:Aseries} the sums along the line of frequencies are estimated by $\iota=1$ or $\iota=2$ differencing steps followed by completion, that is, by the exponent pair $A^\iota(\frac12,\frac12)=(\varkappa_\iota,1-(\iota+1)\varkappa_\iota)$ with $\varkappa_\iota=1/(2^{\iota+2}-2)$, and this is how $\varkappa_\iota$ and $\iota$ enter \eqref{eq:Aeta}. With $j\ge3$ differencing steps the formula \eqref{eq:Aeta} would become \[ \eta_{D,j}(U)=\varkappa_j\Bigl(\frac{2(j+1)U}{D+1}-j-2\Bigr),\qquad\varkappa_j=\frac1{2^{j+2}-2}. \] This is a linear function of $U/(D+1)$ that is smaller than $\eta_D(U)=\max\{\eta_{D,1}(U),\eta_{D,2}(U)\}$ when $U/(D+1)$ is $\frac34$ or $1$, and so on the whole range $D\le U\le D+\frac12$ (where $D\ge3$) on which $\eta_D(U)$ is used. So further differencing steps would give nothing in Corollary~\ref{cor:Acancel}; for Corollary~\ref{cor:Amultc} we have not examined them. (b) By Remark~\ref{rem:Afurther}, the second step is worth $0.0038$: with $\iota=1$ alone, in both places, the constant would be $6.2234\ldots$. Words of length $11$ and $12$ (Remark~\ref{rem:Afurther}) would lower $C_0^\star$ by $0.00005$ and $0.00008$. All the exponent pairs of Proposition~\ref{prop:Apairs} along the line would lower the constant without Corollary~\ref{cor:Amultc} by about $0.0009$, from $6.2224$ to $6.2215$. The value $6.219680\ldots$ of \cite{Dav2026b}, which also rests on further transforms by differencing steps and Poisson summation, is of the same size as $C_0^\star$. So further combinations of the processes $A$ and $B$ change $C_0^\star$ by about $10^{-3}$ at most. \subsection{Estimates beyond the processes \texorpdfstring{$A$ and $B$}{A and B}}\label{ss:Dhypo} Table~\ref{tab:Dhypo} lists the values that a model of the limit function gives when estimates that are not available here are assumed. The model computes the integral of \S\ref{ss:Dparts} in double precision, in the setting without the numbers~(g) of Definition~\ref{def:Asaving}, that is, of the previous version. It reproduces the constant $6.2224077\ldots$ of that setting, and the value $6.2250995\ldots$ with $\iota=1$ alone. The values are not part of the program; the model is supplied with it, as the files whose names begin with \texttt{table20}, together with the earlier version of the program that it uses. The gain of Corollary~\ref{cor:Amultc}, namely $0.0028$, should not simply be added to them, since it concerns the same count of pairs. As far as we know, none of the estimates in the table that go beyond the processes $A$ and $B$ is available in a $p$-adic form: the $p$-adic exponent pairs of \cite{Mil2016} come from these two processes. \begin{table}[ht] \caption{Hypothetical values of the constant, in the setting without the numbers (g) of Definition~\ref{def:Asaving}, in which the constant is $6.2224$ (double precision; not proved).}\label{tab:Dhypo} \small \begin{tabular}{@{}p{0.74\textwidth}l@{}} \toprule assumption & constant\\ \midrule \emph{Along the line of frequencies in Lemma~\ref{lem:Acancel}:} & \\ \raggedright three differencing steps, that is, the pair $A^3(\frac12,\frac12)=(\frac1{30},\frac{13}{15})$ in addition & $6.2224$\\ \raggedright a fourth derivative test with the exponent $\frac1{13}$ of \cite{RS2002}, that is, the pair $(\frac1{13},\frac{10}{13})$ in place of $(\frac1{14},\frac{11}{14})$ & $6.2216$\\ the same with the exponent $\frac1{12}$, the limit of \cite{Rob2016} & $6.2204$\\ \raggedright derivative tests of the type of \cite{HB2017}, the $m$th with the exponent $1/(m(m-1))$ for $3\le m\le8$ & $6.2202$\\ the $133$ pairs of the words of Proposition~\ref{prop:Apairs} & $6.2215$\\ \raggedright\emph{For $U<3$, as further seeds of the processes $A$ and $B$ (in brackets: also along the line):} & \\ all words (the closure under $A$ and $B$ to depth $14$) & $6.2223$\\ the pair $(\frac1{13},\frac{10}{13})$ & $6.2184$ ($6.2173$)\\ the pair $(\frac{32}{205},\frac{269}{410})$ of Huxley \cite{Hux2005} & $6.1984$ ($6.1968$)\\ the pair $(\frac{13}{84},\frac{55}{84})$ of Bourgain \cite{Bou2017b} & $6.1918$ ($6.1900$)\\ \raggedright\emph{The pairs of translates whose $j$ leading coefficients are close, counted as the pigeonhole principle allows:} & \\ \raggedright $j=2$, as in Lemma~\ref{lem:Amv} (this is also what the exponent pair conjecture $(0,\frac12)$ along the line gives) & $6.1956$\\ $j=3$ & $6.1745$\\ $j=4$ & $6.1687$\\ $j=6$ & $6.1653$\\ all $D$ coefficients & $6.1637$\\ \bottomrule \end{tabular} \end{table} \subsection{Summary for large \texorpdfstring{$k$}{k}}\label{ss:Dsummary} (i) For large $k$ the estimates for the sums $\mathcal{S}$ enter the bounds only through $C_0^\star$. The term $-c_\star\sqrt k$ of Proposition~\ref{prop:Alarge} is the same in every version. The terms of order $\log k$ grew from $\frac{16}9\log k$ to $\frac73\log k$ with Corollary~\ref{cor:Amultc}, because of the larger factors $\gamma^\star$ of the new pieces in Lemma~\ref{lem:Alarge}; at $k=5000$ the gain of that corollary is $0.035$ per cent, against $0.045$ per cent in the limit (see the introduction to Appendix~\ref{s:appendix}). (ii) The bands of large $D$ cannot contribute much. Whatever the estimate, the bands with $D\ge15$ change $C_0^\star$ by less than $0.0091$ for each unit by which $\theta^\star$ is raised there \eqref{eq:Ddelta}, and the present refinements gain $0.0031$ there in all (Table~\ref{tab:Dbands}). (iii) Further van der Corput processes give about $10^{-3}$ at most (\S\ref{ss:Dvdc}). Estimates beyond the processes $A$ and $B$, if they were available in a $p$-adic form, could give up to about $0.03$, and counts of the pairs of translates as small as the pigeonhole principle allows would give between $6.164$ and $6.196$ (Table~\ref{tab:Dhypo}). (iv) The largest parts of $C_0^\star$ are $2+\log\frac{341}{41}=4.118\ldots$, which rests on the exponents for smooth Weyl sums, and the part $1.140$ that comes from $t>\frac1{20}$, that is, from the moduli $X^U$ with $U<\frac{65}{16}$ (Table~\ref{tab:Dparts}). Improvements in these places would count most. \subsection{The program}\label{ss:Dprog} Part~16 of the program (\texttt{python3 verify\_explicit\_waring.py --appendix-d}, a few seconds) computes the entries of Table~\ref{tab:Dparts} in decimal arithmetic, from the linear pieces of $\theta^\star$ and the interval for $\Lambda^\star$ of Part~14. It obtains the expansions \eqref{eq:Dexp} by exact arithmetic with power series in $1/D$, and the entries of Table~\ref{tab:Dbands} with the remainders bounded as in Part~14. It also evaluates the bound \eqref{eq:Ddelta} and makes the comparison of \S\ref{ss:Dvdc}(a). \clearpage \subsection*{Statement on the use of artificial intelligence} With the exception of \S\ref{ss:motivation}, which was written by the author, the results, proofs, computations and text of this paper were produced by Claude, an AI system developed by Anthropic, in the course of a conversation with the author, who posed the problem, proposed the test of intermediate coefficients reported in \S\ref{ss:inter}, proposed that the multiplicative structure of the variables be used to obtain estimates of the type of \cite[Theorem~5.2]{BW2023} with the Weyl exponent of \cite[Lemma~7.1]{BW2023}, asked for the pruning to be improved so as to reach the constant $2+\log9+2\Lambda$, proposed that the new mean value estimates, which are stronger than those previously known for smooth Weyl sums, be used to derive stronger estimates on the minor arcs (the investigation of this question led to \S\ref{s:ls} and to the present form of Lemma~\ref{lem:pot}(iv), Corollary~\ref{cor:moment} and Theorem~\ref{thm:explicit}), proposed that the whole argument be written for the integers $mp_1 \cdots p_J$ with primes from a single dyadic interval $(R,2R]$ and $m\le R$, pointed out that a union over dyadic ranges whose number is proportional to $\log P$, as in \cite{BW2001}, recovers the logarithmic loss in the density of this set (in the first version of this manuscript), asked whether that set could be replaced by the smooth numbers $\mathcal{A}(P,P^\eta)$ at the cost of a factor $P^{\varepsilon}$, and pointed out that the major arc estimates of \cite{BW2024} remove the limitations that this replacement had appeared to entail (this led to the present version), pointed out that \cite[Theorem~2.2]{BW2025} provides the mean values of smooth Weyl sums for all real orders, which led to the present form of \eqref{eq:admexp} and Lemma~\ref{lem:apriori} and to the term $+1$ in Theorem~\ref{thm:explicit}, asked that the history of the problem be recalled from \cite{BW2023}, proposed that the standard deduction of a bound for $G^+(k)$, for which \cite[\S9]{BW2023} is the model, be written up together with its consequence for powers of $2$ (Theorems~\ref{thm:almost} and~\ref{thm:almostexplicit}), observed that the argument of \S\ref{s:fibre} resembles the method of Hal\'asz and Montgomery, proposed the application to the fractional parts of $\alpha n^k$ by means of \cite{Woo1993} (Theorems~\ref{thm:frac} and~\ref{thm:fracexplicit}), asked that the mean value estimate be made explicit and recorded as a tool for other applications (Theorems~\ref{thm:mv} and~\ref{thm:mvexplicit}, Corollary~\ref{cor:mvranges}), suggested that recent enhancements of van der Corput's method should improve Lemma~\ref{lem:vdc} when $j$ and $k$ are small, and asked that the literature be surveyed with a view to reducing $C_0$ (this led to Lemma~\ref{lem:Amv}, and Appendix~\ref{s:appendix} was written at the author's request), requested a refereed and self-contained exposition, asked for the tables and the graph of admissible exponents in Appendix~\ref{s:appB}, and asked that \S\ref{s:ls} be checked against the papers of Br\"udern and Wooley, so that results proved there are quoted rather than proved again (this led to the present form of \S\ref{s:ls}), asked that the preprint \cite{Dav2026} of Davidson be interpreted in terms of this paper and that its improvements be used in the appendices for $k\ge5$, and supplied the tables of permissible exponents of \cite{VW1994,VW1995,VW2000} (this led to Lemma~\ref{lem:Agreedy}, to Proposition~\ref{prop:Apairs} and the constant $C_0^\star$, to the extension of Theorem~\ref{thm:Arec} to $k\ge6$ and to Remark~\ref{rem:Asmallk}), asked that words of length up to $10$ be used in Proposition~\ref{prop:Apairs}, asked that the report \cite{Dav2026b} of Davidson be examined for further improvements (this led to Lemmas~\ref{lem:Aresidues} and~\ref{lem:Amult}, to the functions $\omega_D$ in the saving function, and to the change of regime at $\frac{41}{382}$), supplied a draft of Appendix~\ref{s:appC}, with the tables of permissible exponents for $k=7$ and $k=13$ in it and their certification, to be incorporated (in the present Appendix~\ref{s:appC} the draft is adapted to this version, Theorem~\ref{thm:Calmost} is added, and the computations of \S\ref{ss:Cnum} and of Propositions~\ref{prop:C13} and~\ref{prop:C7} are part of the program), supplied a revised version of the paper in which the initial terms $n_0$ in the proof of Lemma~\ref{lem:mv} run over an interval of length about $2X$ (this led to the present forms of Definitions~\ref{def:saving} and~\ref{def:round} and of \S\ref{s:exp}, and to the present value of $C_0$), and asked that it be determined how the constant $6.2197$ that is announced in \cite{Dav2026b} arises, and that use be made of this in Appendix~\ref{s:appendix} (this led to Lemmas~\ref{lem:Aseries} and~\ref{lem:Acancel} and to the numbers \textup{(f)} of Definition~\ref{def:Asaving}), and asked whether further refinements of the van der Corput processes could be applied here, and that the most promising of them be proved and incorporated (this led to Lemmas~\ref{lem:Aairy}--\ref{lem:Amultc}, to Corollary~\ref{cor:Amultc}, to the numbers \textup{(g)} of Definition~\ref{def:Asaving}, and to the present value of $C_0^\star$), and asked whether the situation for very large $k$ improves with more complicated variants of the van der Corput processes, and that the observations be summarised in an appendix (this led to Appendix~\ref{s:appD}), and asked that the analogue of \cite[Theorem~5.2]{BW2023} be recorded as well (this led to Proposition~\ref{prop:dyadic}), and asked that the paper be refereed, and then revised in the light of the report (this led to the present form of the abstract, to the proof of Lemma~\ref{lem:BWthm}(ii) in full, to the account of the computations at the end of \S\ref{ss:numerics}, and to corrections and clarifications elsewhere), and supplied the scripts of the certification of the table for $k=13$ (this led to the certificates and the checker of \S\ref{ss:Ctables}, and to the correction of six entries of Table~\ref{tab:C13} by $10^{-7}$). The author has checked the mathematical arguments of this manuscript and lightly edited the text. Its production would not have been possible without the gracious assistance of Claude Fable~5.2 and Claude Opus~5.5. \providecommand{\bysame}{\leavevmode\hbox to3em{\hrulefill}\thinspace} \begin{thebibliography}{44} \bibitem{Bak1986} R. C. Baker, \emph{Diophantine inequalities}, London Math. Soc. Monographs (N.S.) 1, Oxford University Press, Oxford, 1986. \bibitem{Bak2016} R. C. Baker, \emph{Small fractional parts of polynomials}, Funct. Approx. Comment. Math. \textbf{55} (2016), 131--137. \bibitem{Bou2017} J. Bourgain, \emph{On the Vinogradov mean value}, Proc. Steklov Inst. Math. \textbf{296} (2017), 30--40. \bibitem{Bou2017b} J. Bourgain, \emph{Decoupling, exponential sums and the Riemann zeta function}, J. Amer. Math. Soc. \textbf{30} (2017), 205--224. \bibitem{BDG2016} J. Bourgain, C. Demeter and L. Guth, \emph{Proof of the main conjecture in Vinogradov's mean value theorem for degrees higher than three}, Ann. of Math. (2) \textbf{184} (2016), 633--682. \bibitem{BW2001} J. Br\"udern and T. D. Wooley, \emph{On Waring's problem for cubes and smooth Weyl sums}, Proc. London Math. Soc. (3) \textbf{82} (2001), 89--109. \bibitem{BW2023} J. Br\"udern and T. D. Wooley, \emph{On Waring's problem for larger powers}, J. reine angew. Math. \textbf{805} (2023), 115--142; \href{https://arxiv.org/abs/2211.10380v1}{arXiv:2211.10380v1}. \bibitem{BW2024} J. Br\"udern and T. D. Wooley, \emph{Estimates for smooth Weyl sums on major arcs}, Int. Math. Res. Not. IMRN \textbf{2024}, 14662--14688; \href{https://arxiv.org/abs/2405.18608v1}{arXiv:2405.18608v1}. \bibitem{BW2024b} J. Br\"udern and T. D. Wooley, \emph{Partitio Numerorum: sums of squares and higher powers}, Funct. Approx. Comment. Math. \textbf{71} (2024), 21--67. \bibitem{BW2024c} J. Br\"udern and T. D. Wooley, \emph{On Waring's problem: beyond Fre\u{\i}man's theorem}, J. London Math. Soc. (2) \textbf{109} (2024), no.~1, Paper No.~e12820; \href{https://arxiv.org/abs/2302.12920v1}{arXiv:2302.12920v1}. \bibitem{BW2025} J. Br\"udern and T. D. Wooley, \emph{Estimates for smooth Weyl sums on minor arcs}, Bull. Lond. Math. Soc. \textbf{57} (2025), 657--668; \href{https://arxiv.org/abs/2408.06441v1}{arXiv:2408.06441v1}. \bibitem{CD2026} S. Chow and R. Dietmann, \emph{A linear bound in Waring's problem}, preprint; \href{https://arxiv.org/abs/2611.29821v1}{arXiv:2611.29821v1}. \bibitem{Dav2026} M. Davidson, \emph{Linear bounds and restricted moments in Waring's problem}, preprint, 27 November 2026, revised 29 November 2026. \bibitem{Dav2026b} M. Davidson, \emph{An improved asymptotic coefficient for Waring's problem}, AI research report, Hexagon 2612.00087v1, 2026. \bibitem{DGW2020} C. Demeter, L. Guth and H. Wang, \emph{Small cap decouplings}, with an appendix by D. R. Heath-Brown, Geom. Funct. Anal. \textbf{30} (2020), 989--1062. \bibitem{Gal1972} P. X. Gallagher, \emph{Primes in progressions to prime-power modulus}, Invent. Math. \textbf{16} (1972), 191--201. \bibitem{GR1990} S. W. Graham and C. J. Ringrose, \emph{Lower bounds for least quadratic non-residues}, in: Analytic number theory (Allerton Park, IL, 1989), Progr. Math. \textbf{85}, Birkh\"auser, Boston, 1990, pp. 269--309. \bibitem{Hal1968} G. Hal\'asz, \emph{\"Uber die Mittelwerte multiplikativer zahlentheoretischer Funktionen}, Acta Math. Acad. Sci. Hungar. \textbf{19} (1968), 365--403. \bibitem{HL1920} G. H. Hardy and J. E. Littlewood, \emph{A new solution of Waring's problem}, Quart. J. Math. Oxford \textbf{48} (1920), 272--293. \bibitem{HL1922} G. H. Hardy and J. E. Littlewood, \emph{Some problems of ``Partitio Numerorum'': IV. The singular series in Waring's Problem and the value of the number $G(k)$}, Math. Z. \textbf{12} (1922), 161--188. \bibitem{HL1925} G. H. Hardy and J. E. Littlewood, \emph{Some problems of ``Partitio Numerorum'' (VI): Further researches in Waring's Problem}, Math. Z. \textbf{23} (1925), 1--37. \bibitem{HW2008} G. H. Hardy and E. M. Wright, \emph{An introduction to the theory of numbers}, 6th ed., Oxford University Press, Oxford, 2008. \bibitem{HB1978} D. R. Heath-Brown, \emph{Hybrid bounds for Dirichlet $L$-functions}, Invent. Math. \textbf{47} (1978), 149--170. \bibitem{HB1988} D. R. Heath-Brown, \emph{The fractional part of $\alpha n^k$}, Mathematika \textbf{35} (1988), 28--37. \bibitem{HB2017} D. R. Heath-Brown, \emph{A new $k$th derivative estimate for exponential sums via Vinogradov's mean value}, Tr. Mat. Inst. Steklova \textbf{296} (2017), 95--110; Proc. Steklov Inst. Math. \textbf{296} (2017), 88--103. \bibitem{Hux2005} M. N. Huxley, \emph{Exponential sums and the Riemann zeta function V}, Proc. London Math. Soc. (3) \textbf{90} (2005), 1--41. \bibitem{Kar1985} A. A. Karatsuba, \emph{The function $G(n)$ in Waring's problem}, Izv. Akad. Nauk SSSR Ser. Mat. \textbf{49} (1985), 935--947, 1119. \bibitem{Mil2016} D. Mili\'cevi\'c, \emph{Sub-Weyl subconvexity for Dirichlet $L$-functions to prime power moduli}, Compos. Math. \textbf{152} (2016), 825--875. \bibitem{Mon1969} H. L. Montgomery, \emph{Mean and large values of Dirichlet polynomials}, Invent. Math. \textbf{8} (1969), 334--345. \bibitem{Mon1971} H. L. Montgomery, \emph{Topics in multiplicative number theory}, Lecture Notes in Math. 227, Springer-Verlag, Berlin--New York, 1971. \bibitem{Rob2016} O. Robert, \emph{On the fourth derivative test for exponential sums}, Forum Math. \textbf{28} (2016), 403--404. \bibitem{RS2002} O. Robert and P. Sargos, \emph{A fourth derivative test for exponential sums}, Compositio Math. \textbf{130} (2002), 275--292. \bibitem{Vau1986} R. C. Vaughan, \emph{On Waring's problem for smaller exponents}, Proc. London Math. Soc. (3) \textbf{52} (1986), 445--463. \bibitem{Vau1989} R. C. Vaughan, \emph{A new iterative method in Waring's problem}, Acta Math. \textbf{162} (1989), 1--71. \bibitem{Vau1997} R. C. Vaughan, \emph{The Hardy--Littlewood method}, 2nd ed., Cambridge Tracts in Math. \textbf{125}, Cambridge University Press, Cambridge, 1997. \bibitem{VW1994} R. C. Vaughan and T. D. Wooley, \emph{Further improvements in Waring's problem, II: sixth powers}, Duke Math. J. \textbf{76} (1994), 683--710. \bibitem{VW1995} R. C. Vaughan and T. D. Wooley, \emph{Further improvements in Waring's problem}, Acta Math. \textbf{174} (1995), 147--240. \bibitem{VW2000} R. C. Vaughan and T. D. Wooley, \emph{Further improvements in Waring's problem, IV: higher powers}, Acta Arith. \textbf{94} (2000), 203--285. \bibitem{VW2002} R. C. Vaughan and T. D. Wooley, \emph{Waring's problem: a survey}, in: Number theory for the millennium, III (Urbana, IL, 2000), A K Peters, Natick, MA, 2002, pp. 301--340. \bibitem{Vin1959} I. M. Vinogradov, \emph{On an upper bound for $G(n)$}, Izv. Akad. Nauk SSSR Ser. Mat. \textbf{23} (1959), 637--642. \bibitem{Wei1948} A. Weil, \emph{On some exponential sums}, Proc. Nat. Acad. Sci. U.S.A. \textbf{34} (1948), 204--207. \bibitem{Woo1990} T. D. Wooley, \emph{On simultaneous additive equations and Waring's problem}, Ph.D. thesis, University of London, 1990. \bibitem{Woo1992} T. D. Wooley, \emph{Large improvements in Waring's problem}, Ann. of Math. (2) \textbf{135} (1992), 131--164. \bibitem{Woo1993} T. D. Wooley, \emph{The application of a new mean value theorem to the fractional parts of polynomials}, Acta Arith. \textbf{65} (1993), 163--179. \bibitem{Woo1995} T. D. Wooley, \emph{New estimates for smooth Weyl sums}, J. London Math. Soc. (2) \textbf{51} (1995), 1--13. \bibitem{Woo1995b} T. D. Wooley, \emph{Breaking classical convexity in Waring's problem: sums of cubes and quasi-diagonal behaviour}, Invent. Math. \textbf{122} (1995), 421--451. \bibitem{Woo2012} T. D. Wooley, \emph{The asymptotic formula in Waring's problem}, Int. Math. Res. Not. IMRN \textbf{2012}, no.~7, 1485--1504. \bibitem{Woo2016} T. D. Wooley, \emph{On Waring's problem for intermediate powers}, Acta Arith. \textbf{176} (2016), 241--247. \bibitem{Woo2016b} T. D. Wooley, \emph{The cubic case of the main conjecture in Vinogradov's mean value theorem}, Adv. Math. \textbf{294} (2016), 532--561. \bibitem{Woo2019} T. D. Wooley, \emph{Nested efficient congruencing and relatives of Vinogradov's mean value theorem}, Proc. London Math. Soc. (3) \textbf{118} (2019), 942--1016. \end{thebibliography} \end{document}