\documentclass[11pt]{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{lmodern,microtype} \usepackage[letterpaper,margin=1in]{geometry} \usepackage{amsmath,amssymb,amsthm} \usepackage{xcolor} \definecolor{LinkBlue}{RGB}{0,45,105} \usepackage[colorlinks=true,allcolors=LinkBlue,pdfencoding=auto]{hyperref} \hypersetup{pdftitle={An Integral Criterion for Gaps in Sum-Free Sequences},pdfauthor={Samuel Korsky}} \setlength{\parindent}{0pt} \setlength{\parskip}{6pt plus 1pt minus 1pt} \linespread{1.035} \setlength{\emergencystretch}{2em} \clubpenalty=10000 \widowpenalty=10000 \raggedbottom \newtheorem{theorem}{Theorem}[section] \newtheorem{lemma}[theorem]{Lemma} \renewenvironment{abstract}{\par\small{\centering\bfseries\abstractname\par}\setlength{\leftskip}{2.5em}\setlength{\rightskip}{2.5em}\ignorespaces}{\par} \newcommand{\N}{\mathbb N} \newcommand{\Z}{\mathbb Z} \newcommand{\norm}[1]{\lVert #1\rVert} \title{An Integral Criterion for Gaps in Sum-Free Sequences} \author{Samuel Korsky} \date{September 22, 2026} \begin{document} \maketitle \begin{abstract} In a sum-free sequence, no term is a sum of two or more distinct earlier terms. Erd\H{o}s asked how small its gaps $\Delta_n=a_{n+1}-a_n$ can be. For nondecreasing slowly varying $F\ge1$, we prove that an infinite example with $\Delta_n=O(nF(n))$ exists exactly when $\int^\infty dx/(xF(x))$ converges. In that case one can arrange $\Delta_n\asymp nF(n)$. If bounded gaps recur, the least possible exponent in a uniform bound $\Delta_n=O(n^\gamma)$ is $\gamma=(1+\sqrt{13})/2$. At this exponent infinitely many gaps can equal one. \end{abstract} \section{Introduction} An increasing sequence $A=(a_n)_{n\ge1}$ of positive integers is \emph{sum-free} if none of its terms is a sum of two or more distinct earlier terms. The powers of two give a simple example. Each exceeds the sum of its predecessors, and its gap to the next power equals the power itself. Erd\H{o}s asked how small the gaps $\Delta_n=a_{n+1}-a_n$ can be. In particular, can $\Delta_n0$ \cite{DEM}. In particular, consecutive terms can have ratio tending to one. \L uczak and Schoen brought the density question close to the square-root scale \cite{LS}. Writing $A(x)=|A\cap[1,x]|$, they proved that every sum-free sequence has $A(x)\ll\sqrt{x\log x}$ for arbitrarily large $x$. For each $\eta>0$ they also constructed one with $A(x)\gg_\eta\sqrt{x}/(\log x)^{1/2+\eta}$ for all large $x$. Erd\H{o}s's question asks for a bound on each gap. A 2026 manuscript communicated by Price claims $\limsup_n\Delta_n/n=\infty$ \cite{Price}. Our first theorem places this linear case within an exact criterion. Let $F\ge1$ be nondecreasing on a half-line $[x_0,\infty)$, with $x_0\ge1$. We say that $F$ is \emph{slowly varying} if $F(cx)/F(x)\to1$ for every fixed $c>0$. Set $G(x)=xF(x)$. \begin{theorem}[Integral criterion]\label{thm:integral} If $\int_{x_0}^\infty dx/G(x)$ diverges, then every infinite sum-free sequence satisfies \[ \limsup_{n\to\infty}\frac{\Delta_n}{G(n)}=\infty. \] If the integral converges, there is an infinite sum-free sequence with $\Delta_n\asymp G(n)$. \end{theorem} For $F=1$ this answers Erd\H{o}s's specific question. Even $O(n\log n)$ gaps are impossible. Yet for every $\delta>0$ there is a sequence whose gaps lie between two fixed positive multiples of $n(\log n)^{1+\delta}$. The same test decides all the iterated-logarithm refinements at this boundary. What if we also require a bounded gap to occur infinitely often? This forces a larger exponent in any uniform upper bound. \begin{theorem}[Recurring bounded gaps]\label{thm:bounded} Let $\gamma=(1+\sqrt{13})/2$. If an infinite sum-free sequence has $\liminf_{n\to\infty}\Delta_n<\infty$, then $\limsup_{n\to\infty}\Delta_n/n^\gamma>0$. Conversely, there is a sum-free sequence with $\Delta_n=O(n^\gamma)$ and infinitely many gaps equal to one. More generally, for any prescribed nonempty finite set $P\subset\Z$, one can meet the same bound with infinitely many translates of $P$ occurring as consecutive terms. \end{theorem} \emph{Notation.} Write $\Sigma(B)$ for the sums of finite subsets of $B$, including the empty sum, and $\norm{t}$ for the distance from $t$ to the nearest integer. We use $\ll$ and $O(\cdot)$ for an upper bound up to a constant, and $\asymp$ for bounds in both directions. For each $\eta>0$ and all sufficiently large $y\ge x$, slow variation gives \begin{equation}\label{eq:slow} F(y)/F(x)\le 2^\eta (y/x)^\eta. \end{equation} Indeed, $F(2x)\le2^\eta F(x)$ eventually. Iteratating up to the first $2^jx\ge y$ then gives the result. Also $G(n+c)\sim G(n)$ for each fixed integer $c$, so renumbering a tail preserves the gap bounds. \section{The construction when the integral converges}\label{sec:choice} We use the rotation construction of Deshouillers, Erd\H{o}s and Melfi and of \L uczak and Schoen \cite{DEM,LS}. Suppose the fractional part $\{a_n\alpha\}$ lies in $(w_n,2w_n)$, where $w_n$ is nonincreasing and $2\sum_n w_n<1$. Any two earlier fractional parts add to more than $2w_n$, and even the sum of all the fractional parts is less than one. Taking fractional parts therefore rules out a representation of $a_n$ as the sum of previous terms. Take $\alpha=(\sqrt5-1)/2$. Its convergent denominators are Fibonacci numbers, with successive ratio at most two. Let $u_n$ be the largest such denominator at most $G(n)$. Then $G(n)/2\le u_n\le G(n)$. Since $1/G$ decreases, convergence of the integral gives $\sum_n1/G(n)<\infty$ and hence $\sum_n1/u_n<\infty$. To make the next choice, we use a spacing property of a convergent $p/u$. For $0\le k1/(2Q)$ per step. Pair the first error with the last, the second with the penultimate, and so on. The sum of the absolute values in each pair is at least the distance between them. This gives $\sum |e_i|\ge\lfloor L^2/4\rfloor/(2Q)\gg1/q$ for the block. We next locate a run of indices where this estimate applies. Take $K\ge1$. For each sufficiently large $Q$, choose the largest power of two $N$ for which $8KG(2N)\le Q$. The gaps on $[N,2N)$ are then at most $Q/8$. Maximality gives $Q<8KG(4N)\le32KNF(Q)$, since $4N\le Q$. Hence $N\gg_K Q/F(Q)$, which grows faster than $\sqrt Q$. There are therefore $\gg N/L$ disjoint blocks of length $L$, giving \[ \sum_{N\le i<2N}\norm{x_i\theta}\gg \frac{N}{Lq}\gg_K \frac{\sqrt{Q/q}}{F(Q)}. \] The integral between the same two denominators is controlled by this sum. Indeed, \eqref{eq:slow} with $\eta=1/2$ gives \[ \int_q^Q\frac{dt}{tF(t)}\ll \frac{1}{F(Q)}\int_q^Q\sqrt{Q/t}\cdot\frac{dt}{t}\le\frac{2\sqrt{Q/q}}{F(Q)}. \] Each index interval $[N,2N)$ is used only a bounded number of times. Its denominators $Q$ all lie between $8KG(2N)$ and $8KG(4N)$, whose ratio tends to two, and convergent denominators at least double every two steps. Summing over successive pairs $(q,Q)$ now proves the lemma. \end{proof} \subsection{Residues and subset sums} We now use a counting argument of Erd\H{o}s \cite{Er62}. Let $(w_i)$ be sum-free and write $s_j=w_1+\cdots+w_j$, with $s_0=0$. For $r1$ of $k$ with $e_X(d)\le d-2$. If $X=(x_j)$ is sum-free and $x_j\le j^{2+o(1)}$, there are only finitely many $d$ with $e_X(d)\le d$. \end{lemma} \begin{proof} Let $S$ be the image of $\Sigma(X)$ in $\Z/k\Z$. If $S$ misses a residue, divide out by its stabilizer, the subgroup of translations preserving $S$. In the resulting cyclic group of order $d>1$, the image of $S$ is still proper, and only the zero translation preserves it. Start with the empty sum and adjoin the terms of $X$ one at a time. Each term nonzero modulo $d$ enlarges the set of subset sums obtained so far. Otherwise translation by that term would preserve the current set and every later one, since each is a union of translates of the current set. The size starts at one and ends at most $d-1$. Thus $e_X(d)\le d-2$. For the finiteness assertion, suppose $e_X(d)\le d$. List the multiples of $d$ in $X$, divided by $d$, as $w_11$ with $e_W(d)\le d-2$, and hence \[ e_X(Dd)=e_X(D)+e_W(d)\le D+d-2\le Dd. \] This contradicts the maximality of $D$. To form $C$, start with every fourth term $Y=(w_{4j})$. By Lemma~\ref{lem:residue}, only finitely many $d>1$ have $e_Y(d)\le d$. For each, choose from $W$ a finite set whose subset sums represent all residues modulo $d$. Let $E$ be an initial segment of $W$ containing all these choices, and take $C=E\cup Y$. If $\Sigma(C)$ missed any residue, the lemma would give a missing residue modulo some $d>1$ with $e_Y(d)\le e_C(d)\le d-2$. The set $E$ already covers this $d$. The zero residue also has a nonempty representation modulo any $k$. Among the $k+1$ partial sums of any $k$ terms of $C$, including the initial zero, two agree modulo $k$. Each index class of $W$ modulo four has gaps $O(G(j))$, since its gaps eventually span eight original gaps divided by $D$. Lemma~\ref{lem:irr} applied to $Y\subset C$ gives the irrational-rotation condition. For $B_1,B_2,B_3$ take the other three index classes beyond $E$. In each, $b_j\ge j$ and $b_{j+1}-b_j=O(G(j))=o(j^2)$. Thus $b_{j+1}-b_j\le\sum_{\ell1$, then $a_r=o(r^{c+1})$. Take $r=\lfloor n^{1/(c+1)}\rfloor$. Eventually $4a_r\le n$, so \eqref{eq:packing} gives $a_n\gg rn\asymp n^{1+1/(c+1)}$. To dominate a gap of size $o(n^c)$ by the sum of earlier terms, it suffices to have $a_n\gg n^{c-1}$. The two exponents agree at the positive solution of \begin{equation}\label{eq:gamma} \gamma=2+\frac{1}{\gamma+1}. \end{equation} \begin{proof} Assume $\Delta_n=o(n^\gamma)$, so $a_n\gg n^{\gamma-1}$ by the estimate above. If bounded gaps recur, some fixed integer $d$ occurs infinitely often as $a_{n+1}-a_n$. We will use pairs $(x,x+d)$ to form a long arithmetic progression of subset sums. For a related use of repeated differences, see Fan \cite[Lemma~6.1]{Fan}. Keep infinitely many such pairs for which both the left index $n\bmod 3$ and the residue $x\bmod d$ are fixed. Denote the latter by $t$. The pairs are disjoint and leave an entire index class modulo three unused. From this unused class we want subset sums divisible by $d$. In each successive block of $d^2$ terms choose $d$ in the same residue class modulo $d$. Their sum is $d b_j$, where the integer $b_j$ lies between the first and last terms of the block. The blocks are disjoint. It follows that $b_j\gg j^{\gamma-1}$. Two adjacent blocks span only a fixed number of original gaps, so $b_{j+1}-b_j=o(j^\gamma)$. Since $\sum_{i2m$. The first $2m$ block terms already sum to $T$, above every term in the block. This proves sum-freeness. It remains to bound the gaps and the new total. The $m$ steps of size $h\asymp m^\gamma$ end at $O(m^{\gamma+1})$ and contribute a sum of order $m^{\gamma+2}$, so $T\asymp m^{\gamma+2}$. Filling the block up to $T$ adds order $T/q$ terms. The full block therefore has $L\asymp m^{\gamma+1}$ terms, each below $T$. By \eqref{eq:gamma}, the total at the end of the stage is \[ O(LT)=O\bigl(L^{2+1/(\gamma+1)}\bigr)=O(L^\gamma). \] This restores the required bound on the total, with a constant independent of the stage. The steps of size $h$ occur after at least $m$ block terms. All other new gaps are $O_P(m)=O_P(S)=O_P(N^\gamma)$. Hence $\Delta_n=O_P(n^\gamma)$ throughout. The inserted sets are consecutive translates of $P$. Taking $P=\{0,1\}$ gives gaps of one infinitely often. \end{proof} \begin{thebibliography}{9}\small\setlength{\itemsep}{2pt}\setlength{\parsep}{0pt} \bibitem{BS} V.~Bergelson and D.~Simmons, \emph{New examples of complete sets, with connections to a Diophantine theorem of Furstenberg}, Acta Arith. \textbf{177} (2017), 101--131. \href{https://doi.org/10.4064/aa8221-10-2016}{doi:10.4064/aa8221-10-2016}. \bibitem{Bloom} T.~F.~Bloom, \emph{Erd\H{o}s Problem \#876}, Erd\H{o}s Problems. \url{https://www.erdosproblems.com/876}. \bibitem{DEM} J.-M.~Deshouillers, P.~Erd\H{o}s and G.~Melfi, \emph{On a question about sum-free sequences}, Discrete Math. \textbf{200} (1999), 49--54. \href{https://doi.org/10.1016/S0012-365X(98)00322-7}{doi:10.1016/S0012-365X(98)00322-7}. \bibitem{Er62} P.~Erd\H{o}s, \emph{Sz\'amelm\'eleti megjegyz\'esek. III. N\'eh\'any addit\'iv sz\'amelm\'eleti probl\'em\'ar\'ol}, Mat. Lapok \textbf{13} (1962), 28--38. \href{https://users.renyi.hu/~p_erdos/1962-22.pdf}{Original article}. \bibitem{Er98} P.~Erd\H{o}s, \emph{Some of my new and almost new problems and results in combinatorial number theory}, in \emph{Number Theory: Diophantine, Computational and Algebraic Aspects} (Eger, 1996), K.~Gy\H{o}ry, A.~Peth\H{o} and V.~T.~S\'os (eds.), de Gruyter, 1998, 169--180. \href{https://doi.org/10.1515/9783110809794.169}{doi:10.1515/9783110809794.169}. \bibitem{Fan} S.~Fan, \emph{Strongly complete sets and a conjecture of Erd\H{o}s}, arXiv:2607.14071v5 (2026). \url{https://arxiv.org/abs/2607.14071v5}. \bibitem{Khinchin} A.~Ya.~Khinchin, \emph{Continued Fractions}, Dover, Mineola, NY, 1997. \bibitem{LS} T.~\L uczak and T.~Schoen, \emph{On the maximal density of sum-free sets}, Acta Arith. \textbf{95} (2000), 225--229. \href{https://doi.org/10.4064/aa-95-3-225-229}{doi:10.4064/aa-95-3-225-229}. \bibitem{Price} L.~Price (communicator), \emph{Linear gaps in sum-free sequences}, proof claim, 2026. Manuscript attributed on its title page to GPT 5.6 Sol Pro. \href{https://www.erdosproblems.com/forum/thread/876/proof-claims}{Erd\H{o}s Problems, Problem~876 proof claims}. \end{thebibliography} \end{document}