Erdős Problem #335
Status Open · erdosproblems.comLLM status Open unverified
Erdős problemsTop Open Problems openaigpt 6 astra ultragpt pro 5.2 40% cataloguedOpenOpenStatement
Let $A,B\subseteq\mathbb{N}$ have (asymptotic) densities \[ d(A)=\lim_{N\to\infty}\frac{|A\cap[1,N]|}{N}=\alpha>0, \qquad d(B)=\lim_{N\to\infty}\frac{|B\cap[1,N]|}{N}=\beta>0. \] Define the sumset $A+B:=\{a+b: a\in A,\ b\in B\}$. The problem asks to characterize all pairs $(A,B)$ such that \[ d(A+B)=d(A)+d(B)=\alpha+\beta. \]
Restatement from Math-767-A2 r1, with the source manuscript’s qualifications.
Original problem on erdosproblems.com
Statement licence: CC-BY-4.0 · Source file
Contributions 2
GPT 6 Astra Ultra attempt on Math-767
Erdős Problem 335: equality in the density of a sumset
Statement and scope
Characterize positive-density sets $A,B\subset\mathbb N$ with $d(A+B)=d(A)+d(B)$. We prove periodic, irrational-rotation, and random examples, including examples separated in density from every periodic set. A general characterization is unresolved here.The periodic reduction retains a valid part of the earlier GPT-5.2 attempt. Its proposed periodic-only direction is insufficient, as the rotation examples show. Source and current structural results: https://www.erdosproblems.com/335. No new classification is claimed.
Periodic sets
If $A$ and $B$ are unions of residue classes $R,S$ modulo $q$, then \[ d(A)=|R|/q,\quad d(B)=|S|/q,\quad d(A+B)=|R+S|/q. \] The last statement is eventual: each residue in $R+S$ has a representation by two fixed positive representatives, and adding sufficiently many multiples of $q$ to one summand represents every sufficiently large integer of that residue. There can be finitely many initial omissions.Thus the equality reduces exactly to $|R+S|=|R|+|S|$. For example $R=\{0,1\}$ and $S=\{0,2\}$ give equality for every $q\ge4$, since their sumset has four residues.
Irrational rotations
Fix irrational $\theta$ and positive $\alpha,\beta$ with $\alpha+\beta<1$. Put \[ A=\{n\ge1:\{n\theta\}\in(0,\alpha)\},\qquad B=\{n\ge1:\{n\theta\}\in(0,\beta)\}. \] Irrational rotation is uniformly distributed: for every nonzero integer $h$, the mean of $e^{2\pi i h n\theta}$ tends to zero by the geometric-series formula, and trigonometric approximation of interval indicators gives the interval frequency. Hence $d(A)=\alpha$, $d(B)=\beta$.Every sum belongs to $C=\{n:\{n\theta\}\in(0,\alpha+\beta)\}$, so the upper density of $A+B$ is at most $\alpha+\beta$. For the reverse inequality fix $0<\delta<(\alpha+\beta)/2$. If $t=\{n\theta\}\in[\delta,\alpha+\beta-\delta]$, the interval \[ J_t=(\max(0,t-\beta),\min(\alpha,t)) \] has length at least $\min(\alpha,\beta,\delta)>0$. A finite prefix of the dense orbit $\{\{j\theta\}:j\ge1\}$ meets every interval of this fixed minimum length: take a sufficiently fine finite net from the orbit. Therefore one fixed $K$ works for every such $t$. For $n>K$, choose $1\le j\le K$ with $\{j\theta\}\in J_t$. Then $j\in A$, $n-j\in B$, since $t-\{j\theta\}\in(0,\beta)$ with no wrap around the circle.
It follows that the lower density of $A+B$ is at least $\alpha+\beta-2\delta$. Let $\delta\downarrow0$ to obtain \[ d(A+B)=\alpha+\beta. \] These $A$ cannot even be approximated arbitrarily well in density by periodic sets. On every residue class modulo $q$, irrationality of $q\theta$ gives frequency $\alpha$. Thus for any union $P$ of residue classes with density $\gamma$, \[ d(A\mathbin{\triangle}P)=\alpha+\gamma-2\alpha\gamma \ge\min(\alpha,1-\alpha)>0. \tag{1} \]
A random example supported on the even integers
Choose each positive even integer independently with probability $1/2$, forming $A=B$. With probability one, $d(A)=1/4$. For completeness, if $S_n$ counts selected numbers among the first $n$ even integers, Chebyshev's inequality along $n=k^2$ gives \[ \Pr(|S_{k^2}-k^2/2|>\varepsilon k^2)\le(4\varepsilon^2 k^2)^{-1}. \] The sum converges, so the union bound on tails implies that only finitely many such deviations occur. Apply this for rational $\varepsilon>0$, and interpolate using monotonicity between consecutive squares, to get $S_n/n\to1/2$.For each $n$, the integer $2n$ has $\lfloor(n-1)/2\rfloor$ pairs of distinct positive even summands $\{2j,2(n-j)\}$. These pairs use disjoint selected variables. Therefore \[ \Pr(2n\notin A+A)\le(3/4)^{\lfloor(n-1)/2\rfloor}. \] Again the sum converges, so almost surely every sufficiently large even integer is in $A+A$. No odd integer is in it. Consequently $d(A+A)=1/2=2d(A)$ almost surely. This verifies that equality can coexist with arbitrary independent choices inside a residue class.
Remaining gap
These are rigorously established families, not an exhaustive list. Formula $1$ rules out an exclusively periodic characterization, and the random construction warns against imposing rigid internal structure on every residue class. The general necessary and sufficient conditions are not proved here.COMPLETION ESTIMATE
COMPLETION: 40%gpt pro 5.2 attempt on Math-767
Erdős problem #335
1) FORMAL RESTATEMENT. Let $A,B\subseteq\mathbb{N}$ have (asymptotic) densities \[ d(A)=\lim_{N\to\infty}\frac{|A\cap[1,N]|}{N}=\alpha>0, \qquad d(B)=\lim_{N\to\infty}\frac{|B\cap[1,N]|}{N}=\beta>0. \] Define the sumset $A+B:=\{a+b: a\in A,\ b\in B\}$. The problem asks to characterize all pairs $(A,B)$ such that \[ d(A+B)=d(A)+d(B)=\alpha+\beta. \]
2) QUICK LITERATURE/CONTEXT CHECK. No external results are assumed beyond the problem statement.
3) ATTACK PLAN.
- Note basic necessary constraints (e.g. $\alpha+\beta\le 1$).
- Analyze the periodic case (unions of residue classes), where density reduces to finite group counting.
- Use periodic examples as sanity checks and as a source of families satisfying the equality.
4) WORK.
Lemma 335.1 (periodic sets reduce to residue-class counting). Fix $m\ge 1$. Let $A,B\subseteq\mathbb{N}$ be unions of residue classes modulo $m$: \[ A=\{n\ge 1: n\bmod m\in A_0\},\qquad B=\{n\ge 1: n\bmod m\in B_0\} \] for some $A_0,B_0\subseteq\mathbb{Z}/m\mathbb{Z}$. Then the densities exist and \[ d(A)=\frac{|A_0|}{m},\qquad d(B)=\frac{|B_0|}{m},\qquad d(A+B)=\frac{|A_0+B_0|}{m}, \] where $A_0+B_0:=\{a+b\bmod m: a\in A_0,\ b\in B_0\}$.
Proof. Each residue class modulo $m$ has density $1/m$ in $\mathbb{N}$. Since $A$ is a disjoint union of $|A_0|$ residue classes, $d(A)=|A_0|/m$, and similarly for $B$.
If $n\in A+B$, then $n\equiv a+b\pmod m$ for some residues $a\in A_0$, $b\in B_0$, so $(A+B)\bmod m\subseteq A_0+B_0$. Conversely, if $r\in A_0+B_0$, choose residues $a\in A_0$, $b\in B_0$ with $r\equiv a+b\pmod m$; then every sufficiently large integer $n\equiv r\pmod m$ can be written as $n=(a+tm)+(b+t'm)$ with $t,t'\ge 0$ large enough, hence $n\in A+B$. Thus $A+B$ is also a union of residue classes with residue set $A_0+B_0$, and therefore $d(A+B)=|A_0+B_0|/m$. $\square$
Lemma 335.2 (an explicit infinite family with $d(A+B)=d(A)+d(B)$). Fix any integer $m\ge 4$, and define \[ A:=\{n\ge 1: n\bmod m\in\{0,1\}\},\qquad B:=\{n\ge 1: n\bmod m\in\{0,2\}\}. \] Then $d(A)=2/m$, $d(B)=2/m$, and $d(A+B)=4/m=d(A)+d(B)$.
Proof. By Lemma 335.1, $d(A)=|\{0,1\}|/m=2/m$ and $d(B)=2/m$. The residue sumset is \[ \{0,1\}+\{0,2\}=\{0+0,0+2,1+0,1+2\}=\{0,1,2,3\}\subseteq\mathbb{Z}/m\mathbb{Z}. \] For $m\ge 4$ these are four distinct residues, hence $|A_0+B_0|=4$ and Lemma 335.1 gives $d(A+B)=4/m=d(A)+d(B)$. $\square$
FAST REALITY CHECK (small periodic example). Take $m=5$. Then $d(A)=d(B)=2/5$ and $A+B$ occupies residues $0,1,2,3$ modulo $5$, hence $d(A+B)=4/5=d(A)+d(B)$.
5) VERIFICATION. Lemma 335.1 is a direct density computation for periodic sets. Lemma 335.2 is an explicit construction checked by residue arithmetic.
6) FINAL.
UNRESOLVED
(i) Strongest fully proved partial result obtained here. We proved a complete reduction for periodic (mod $m$) sets: $d(A+B)=d(A)+d(B)$ is equivalent to $|A_0+B_0|=|A_0|+|B_0|$ in $\mathbb{Z}/m\mathbb{Z}$ (Lemma 335.1), and we exhibited an explicit infinite family of nontrivial examples satisfying the equality (Lemma 335.2).
(ii) Exact first gap. For general positive-density sets $A,B$ (not assumed periodic or structured), we do not have a characterization of when $d(A+B)=d(A)+d(B)$ holds.
(iii) Top 3 next moves (concrete targets).
- Prove a structure theorem: show that if $d(A+B)=d(A)+d(B)<1$, then $A$ and $B$ must be "almost periodic" (e.g. close in density to unions of residue classes).
- Analyze the equality case in finite cyclic groups: classify pairs $(A_0,B_0)\subseteq\mathbb{Z}/m\mathbb{Z}$ with $|A_0+B_0|=|A_0|+|B_0|$, then lift to $\mathbb{N}$ via Lemma 335.1.
- Search computationally over small moduli $m$ for residue-class solutions and look for a pattern that could plausibly extend to a full classification.
(iv) Minimal counterexample structure. A counterexample to any proposed "periodic-only" characterization would be a pair of sets $A,B$ of positive density with $d(A+B)=d(A)+d(B)$ but whose characteristic functions are not approximable (in density) by periodic sets. Such a pair would have to avoid the usual heuristic that sumsets create substantial overlap and hence increase density beyond the sum.