\documentclass[11pt,letterpaper]{article} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage[margin=1in]{geometry} \usepackage{amsmath,amssymb,amsthm} \usepackage{microtype} \linespread{1.08} \usepackage[skip=0.75\baselineskip,indent=0pt]{parskip} \usepackage{xcolor} \definecolor{linkblue}{RGB}{0,56,164} \usepackage[colorlinks=true,linkcolor=linkblue,citecolor=linkblue,urlcolor=linkblue,bookmarksnumbered=true]{hyperref} \hypersetup{pdftitle={The Sharp Exponent for Arithmetic Progression Discrepancy},pdfauthor={Samuel Korsky}} \urlstyle{same} \newtheorem{theorem}{Theorem}[section] \newtheorem{lemma}[theorem]{Lemma} \newcommand{\N}{\mathbb N} \newcommand{\R}{\mathbb R} \newcommand{\D}{\mathcal D} \newcommand{\TV}{\operatorname{TV}} \setlength{\parindent}{0pt} \setlength{\emergencystretch}{1.5em} \raggedbottom \title{The Sharp Exponent for Arithmetic Progression Discrepancy} \author{Samuel Korsky} \date{December 3, 2026} \begin{document} {\setlength{\parskip}{0pt}\maketitle} \smallskip \begin{abstract} \noindent For every $g\colon\N\to(0,\infty)$ with $\sum_{d\ge1}g(d)^{-2}<\infty$, we construct a coloring of the positive integers for which every finite arithmetic progression of common difference $d$ has discrepancy $O(g(d))$. Together with Roth's lower bound $c\sqrt d$ for infinitely many $d$, this shows that $1/2$ is the infimum of the exponents $p$ for which discrepancy $O(d^p)$ is attainable. \end{abstract} \section{Introduction} Color each positive integer red or blue. On a finite arithmetic progression, the discrepancy is the absolute difference between the numbers of red and blue terms. An alternating coloring keeps the discrepancy on every interval at most one, but its even terms all have the same color. Erd\H{o}s asked how well one coloring can balance progressions of every common difference. More precisely, for a coloring $f\colon\N\to\{-1,1\}$ put \[ \D_f(d)=\sup_{a,m\ge1}\left|\sum_{j=0}^{m-1} f(a+jd)\right|. \] How slowly can $h(d)$ grow if $\D_f(d)\le h(d)$ is to hold for all $d$? The starting point $a$ and the number of terms $m$ are unrestricted, even when $d$ is small. This is Erd\H{o}s problem 177 in Bloom's collection~\cite{bloom}. In 1966 Erd\H{o}s~\cite[p.~137]{erdos} reported that Cantor, Schreiber, Straus and he had independently constructed such colorings. The construction gives $h(d)\le C^d d!$ for an absolute $C$. He returned to the question in 1973~\cite[p.~121]{erdos73} and again with Graham~\cite{eg}. Beck~\cite{beck81} reduced the bound to $\exp(O((\log d)^2))$. In 2017 he obtained the polynomial bound $O_\varepsilon(d^{8+\varepsilon})$ for every $\varepsilon>0$ by applying a theorem on balancing infinite sequences of vectors~\cite{beck17}. \begin{theorem}\label{th:weights} There is an absolute constant $C$ with the following property. If $g\colon\N\to(0,\infty)$ satisfies $V^2=\sum_{d\ge1}g(d)^{-2}<\infty$, there is a coloring $f\colon\N\to\{-1,1\}$ such that \[ \D_f(d)\le C Vg(d)\qquad(d\ge1). \] \end{theorem} Taking $g(d)=d^p$ gives $\D_f(d)=O_p(d^p)$ for every $p>1/2$, since $\sum_{d\ge1}d^{-2p}$ converges. Roth~\cite{roth} proved that every coloring of $\{1,\ldots,N\}$ has a progression of discrepancy at least $cN^{1/4}$ with common difference $d\le\sqrt N$. If $\D_f(d)$ is finite for each $d$, these differences must be unbounded as $N$ grows. Since $N^{1/4}\ge\sqrt d$, this gives $\D_f(d)\ge c\sqrt d$ for infinitely many $d$. The same conclusion holds if some $\D_f(d)$ is infinite, since splitting a progression into $k$ progressions of difference $kd$ gives $\D_f(d)\le k\D_f(kd)$. Whether a single coloring can attain $\D_f(d)=O(\sqrt d)$ remains open. Matou\v{s}ek and Spencer~\cite{ms} matched Roth's $N^{1/4}$ bound on a finite interval. Beck and Spencer~\cite{bs} treated progressions of arbitrary length with common difference below a prescribed cutoff $D$. For each $D\ge2$ their coloring attains $O(\sqrt d\,(\log D)^{7/2})$ for every $d\le D$ (see also~\cite[Theorem~4.6]{dsw}). We express the coloring as a product of linear operators applied to real variables. Summing along a class cancels a difference in one of the factors. We then recover each running sum by successively bisecting a block and comparing the averages on its two halves. Blocks of the same size are disjoint, which gives both estimates needed to choose the signs. \section{Bounding the progression sums}\label{sec:ap} The following finite-dimensional lemma lets us impose the sign requirement and bounds on several linear forms at once. We prove it in Section~\ref{sec:sign}. We use the Euclidean norm $\|\cdot\|_2$ for vectors and for square-summable sequences. A strictly lower triangular matrix has zero entries on and above the diagonal. \begin{lemma}\label{lem:sign} There is an absolute $\delta>0$ with the following property. Let $P$ be a strictly lower triangular $N\times N$ matrix and $\mathcal B$ a finite list of vectors in $\R^N$. Assume that each column $j$ satisfies \begin{equation}\label{eq:budget} \sum_i P_{ij}^2+\sum_{b\in\mathcal B} b_j^2\|b\|_2^4\le\delta . \end{equation} There exists $x\in\R^N$ such that $(I-P)x\in\{-1,1\}^N$ and $|b\cdot x|\le1$ for every $b\in\mathcal B$. \end{lemma} \begin{proof}[Proof of Theorem~\ref{th:weights}] Write $w_d=g(d)^{-2}/V^2$, so $\sum_d w_d=1$. We seek a bound $C/\sqrt{w_d}$. Work first on the positions $0,\ldots,N-1$, and extend each input $x\in\R^N$ by zeros to the right. All sequences are taken to be zero at negative indices. Fix a small absolute number $0<\alpha<1/2$, to be chosen below, and put $a_d=\alpha w_d$ and $r_d=1-a_d$. \smallskip \noindent\emph{Making the running sums manageable.} Let $U$ shift a sequence one place to the right, so $(Uv)_n=v_{n-1}$. For $1\le d\le N$ set \[ T_d=(I-U^d)(I-r_d U^d)^{-1},\qquad T=\prod_{d=1}^N T_d,\qquad y=Tx. \] Here $(I-rU^d)^{-1}=\sum_{k\ge0}r^kU^{kd}$ for $00$ put \[ p(x)=Z^{-1}\exp\!\left(-\frac{\|x\|_2^2}{2R^2}\right)\prod_{a\in\mathcal A}h(a\cdot x), \] where $Z$ normalizes the integral to one. The function $h$ is even and log-concave, meaning that $\log h$ is concave on its interval of positivity. Writing $\varphi=-\log h$ on $(-1,1)$, integration by parts in coordinate $j$ gives, for $X$ distributed with density $p$, \begin{equation}\label{eq:energy} 4\int_{\R^N}|\partial_j\sqrt p|^2 = R^{-2}+\sum_{a\in\mathcal A}a_j^2\,\mathbb E[\varphi''(a\cdot X)] . \end{equation} Indeed, inside the support, $\partial_j^2p=p\big((\partial_j\log p)^2+\partial_j^2\log p\big)$. The integral of $\partial_j^2p$ is zero. The first derivatives agree across the joins $|a\cdot x|=1/2$ and vanish at the outer boundary, so integrating this identity introduces no boundary terms. To bound a summand, remove the factor $h(a\cdot x)$ and normalize the remaining density. Under this new law the linear form $a\cdot x$ has a density $q$ proportional to \[ e^{-u^2/(2R^2\|a\|_2^2)}\,k(u), \] where $k$ is even and nonincreasing on $[0,\infty)$. To see this, write $x=ua/\|a\|_2^2+v$ with $v\perp a$. After extracting the displayed Gaussian, the remaining integrand is log-concave in $(u,v)$ and invariant under $(u,v)\mapsto(-u,-v)$. Integration in $v$ preserves log-concavity by Pr\'ekopa's theorem~\cite[Theorem~3.3]{sw}. Its integral $k$ is therefore even and decreases away from zero. Consequently $q(u+1/2)\le e^{-1/(8R^2\|a\|_2^2)}q(u)$ for $0\le u\le1/2$. On $1/2<|u|<1$ we have $\varphi''(u)h(u)=2\pi^2$, and $\varphi''$ is zero on $|u|<1/2$. Comparing the two intervals and using evenness gives \[ \mathbb E[\varphi''(a\cdot X)] =\frac{2\pi^2\int_{1/2<|u|<1}q(u)\,du}{\int h(u)q(u)\,du} \le 2\pi^2 e^{-1/(8R^2\|a\|_2^2)} \le C_R\min\{1,\|a\|_2^4\}. \] Choose $R$ large, then choose $L$ large and $\delta$ small. Equations~\eqref{eq:rows} and~\eqref{eq:energy} give $\|\partial_j\sqrt p\|_2\le 1/36$ for every $j$. Fix $j$ and let $p_j(x)=p(x-6e_j)$ be the density obtained by shifting $p$ by six units in the $j$th coordinate. For the first inequality below, factor $p-p_j=(\sqrt p-\sqrt{p_j})(\sqrt p+\sqrt{p_j})$ and apply Cauchy--Schwarz, using $\|\sqrt p\|_2=\|\sqrt{p_j}\|_2=1$. For the second, integrate $\partial_j\sqrt p$ along the segment from $x-6e_j$ to $x$ and take the $L^2$ norm. The triangle inequality gives a factor of six because the segment has length six and translation preserves the $L^2$ norm. Thus \[ \TV(p,p_j)\le \|\sqrt p-\sqrt{p_j}\|_2\le 6\|\partial_j\sqrt p\|_2\le \frac{1}{6}. \] Finally round each coordinate of $X$ to the nearest multiple of $1/m$. The resulting law has finite support and mean zero by symmetry. Rounding commutes almost surely with translation by $6e_j$, and applying the same map to two laws cannot increase their total variation distance. Lemma~\ref{lem:split} now gives signs for which $x$ belongs to the convex hull of the rounded support. This hull lies within distance $\sqrt N/m$ of $K$ by convexity. There are only finitely many sign strings and each determines $x$ by the same recursion for every $m$. Choose a string occurring for infinitely many $m$. Its point $x$ belongs to $K$ because $K$ is closed. This completes the proof. \end{proof} \begin{thebibliography}{99}\small \setlength{\itemsep}{0.28\baselineskip} \setlength{\parskip}{0pt} \setlength{\parsep}{0pt} \bibitem{beck81} J.~Beck, \href{https://doi.org/10.1007/BF02579326}{Balancing families of integer sequences}, \emph{Combinatorica} \textbf{1} (1981), 209--216. \bibitem{beck17} J.~Beck, \href{https://doi.org/10.1007/978-3-319-55357-3_3}{A discrepancy problem: balancing infinite dimensional vectors}, in \emph{Number Theory---Diophantine Problems, Uniform Distribution and Applications}, Springer, 2017, 61--82. \bibitem{bs} J.~Beck and J.~Spencer, \href{https://doi.org/10.4064/aa-43-3-287-294}{Well-distributed $2$-colorings of integers relative to long arithmetic progressions}, \emph{Acta Arith.} \textbf{43} (1984), 287--294. \bibitem{bloom} T.~F.~Bloom, \href{https://www.erdosproblems.com/177}{Erd\H{o}s Problem \#177}, \emph{Erd\H{o}s Problems}. \bibitem{dsw} B.~Doerr, A.~Srivastav and P.~Wehr, \href{https://www.combinatorics.org/ojs/index.php/eljc/article/view/v11i1r5}{Discrepancy of Cartesian products of arithmetic progressions}, \emph{Electron. J. Combin.} \textbf{11} (2004), R5. \bibitem{erdos} P.~Erd\H{o}s, \href{https://www.renyi.hu/~p_erdos/1966-20.pdf}{Remarks on number theory. V. Extremal problems in number theory. II}, \emph{Mat. Lapok} \textbf{17} (1966), 135--155 (Hungarian). \bibitem{erdos73} P.~Erd\H{o}s, \href{https://www.renyi.hu/~p_erdos/1973-21.pdf}{Problems and results on combinatorial number theory}, in \emph{A Survey of Combinatorial Theory}, North-Holland, Amsterdam, 1973, 117--138. \bibitem{eg} P.~Erd\H{o}s and R.~L.~Graham, \href{https://www.renyi.hu/~p_erdos/1979-07.pdf}{Old and new problems and results in combinatorial number theory: van der Waerden's theorem and related topics}, \emph{Enseign. Math.} (2) \textbf{25} (1979), 325--344. \bibitem{kl} S.~R.~Karingula and S.~Lovett, \href{https://arxiv.org/abs/2609.20979}{An elementary proof of the Koml\'os conjecture}, arXiv:2609.20979, 2026. \bibitem{ms} J.~Matou\v{s}ek and J.~Spencer, \href{https://cs.nyu.edu/~spencer/papers/matousek.pdf}{Discrepancy in arithmetic progressions}, \emph{J. Amer. Math. Soc.} \textbf{9} (1996), 195--204. \bibitem{oai} OpenAI, \href{https://github.com/openai/math/tree/main/preprints/The-Euclidean-Steinitz-Bergstrom-theorem-September-24-2026}{The Euclidean Steinitz--Bergstr\"om theorem}, preprint, September 2026. \bibitem{roth} K.~F.~Roth, \href{https://doi.org/10.4064/aa-9-3-257-260}{Remark concerning integer sequences}, \emph{Acta Arith.} \textbf{9} (1964), 257--260. \bibitem{sw} A.~Saumard and J.~A.~Wellner, \href{https://doi.org/10.1214/14-SS107}{Log-concavity and strong log-concavity: a review}, \emph{Statist. Surv.} \textbf{8} (2014), 45--114. \end{thebibliography} \end{document}