gpt pro 5.4 attempt on Math-5576, version 3
mathematicsErdős problemscontributionManuscript
Contents
Erdős Problem #318
Clean write-up from two explicit external inputs
This note is not self-contained in the sense of reproving Bloom's theorem or Larsen's theorem. Those two results are stated explicitly as inputs and then used to deduce all three answers to Erdős Problem #318. Apart from those two inputs, the argument is elementary.
Problem statement
Let $A\subseteq \mathbb{N}$ be an infinite arithmetic progression and let $f\colon A\to\{-1,1\}$ be non-constant. Must there exist a finite nonempty set $S\subseteq A$ such that \[ \sum_{n\in S}\frac{f(n)}{n}=0? \] What happens if $A$ is merely a set of positive density? What happens if \[ A=\{4,9,16,25,\dots\} \] is the set of perfect squares greater than $1$?Density notation
For any $B\subseteq \mathbb{N}$, write \[ \overline d(B):=\limsup_{x\to\infty}\frac{|B\cap[1,x]|}{x}, \qquad \underline d(B):=\liminf_{x\to\infty}\frac{|B\cap[1,x]|}{x}. \]External inputs
We use the following two results as black boxes.Main theorem
- for an infinite arithmetic progression $A$, yes;
- for an arbitrary set $A$ of positive density, no;
- for the set $A=\{4,9,16,25,\dots\}$ of squares excluding $1$, yes.
1. Arithmetic progressions. Let \[ A=\{a+kd:k\ge 0\} \] with $a,d\in\mathbb{N}$, and let $f\colon A\to\{-1,1\}$ be non-constant. Define \[ P:=\{n\in A:f(n)=1\}, \qquad N:=\{n\in A:f(n)=-1\}. \] Since $A$ has natural density $1/d$, at least one of $P$ and $N$ has positive upper density.
We first need a simple lemma.
We now consider two cases.
Case 1: both $P$ and $N$ have positive upper density. By Bloom's theorem, there exist finite sets \[ S_+\subseteq P, \qquad S_-\subseteq N \] such that \[ \sum_{n\in S_+}\frac1n=1, \qquad \sum_{n\in S_-}\frac1n=1. \] Since $P\cap N=\varnothing$, the set $S:=S_+\cup S_-$ is finite and nonempty, and \[ \sum_{n\in S}\frac{f(n)}{n} =\sum_{n\in S_+}\frac1n-\sum_{n\in S_-}\frac1n =1-1=0. \] This proves the claim in Case 1.
Case 2: one sign class has upper density $0$. Without loss of generality, assume \[ \overline d(N)=0. \] Because $f$ is non-constant and takes values only in $\{-1,1\}$, the set $N$ is nonempty; choose $n_0\in N$. By the lemma, $A_{n_0}$ has positive natural density; denote this density by $\delta>0$. Set \[ M:=P\cap A_{n_0}. \] Then \[ M=A_{n_0}\setminus (N\cap A_{n_0}). \] Since $N\cap A_{n_0}\subseteq N$, we have \[ \overline d(N\cap A_{n_0})\le \overline d(N)=0. \] Also $A_{n_0}$ has natural density $\delta$, so \[ \underline d(M) \ge \underline d(A_{n_0})-\overline d(N\cap A_{n_0}) =\delta-0 =\delta>0. \] Thus $M$ has positive lower density.
Now define \[ B:=\left\{\frac{m}{n_0}:m\in M\right\}\subseteq \mathbb{N}. \] Because $M=n_0B$, for every $x\ge 1$ we have \[ |B\cap[1,x]|=|M\cap[1,n_0x]|. \] Hence \[ \underline d(B) =\liminf_{x\to\infty}\frac{|B\cap[1,x]|}{x} = n_0\liminf_{x\to\infty}\frac{|M\cap[1,n_0x]|}{n_0x} \ge n_0\,\underline d(M)>0. \] In particular, $B$ has positive upper density. By Bloom's theorem, there exists a finite set $T\subseteq B$ such that \[ \sum_{t\in T}\frac1t=1. \] Define \[ S_+:=\{n_0t:t\in T\}. \] Then $S_+\subseteq M\subseteq P$, and \[ \sum_{m\in S_+}\frac1m =\sum_{t\in T}\frac{1}{n_0t} =\frac1{n_0}\sum_{t\in T}\frac1t =\frac1{n_0}. \] Now set \[ S:=S_+\cup\{n_0\}. \] Since $f(n_0)=-1$ and $f(m)=1$ for every $m\in S_+$, we obtain \[ \sum_{n\in S}\frac{f(n)}{n} =\sum_{m\in S_+}\frac1m-\frac1{n_0} =\frac1{n_0}-\frac1{n_0} =0. \] This proves the arithmetic-progression case.
2. Arbitrary positive-density sets. Here the statement is false. Take \[ A:=\{2\}\cup\{\text{odd positive integers}\}. \] This set has natural density $1/2$. Define $f\colon A\to\{-1,1\}$ by \[ f(2)=-1, \qquad f(n)=1 \quad\text{for every odd } n. \] Let $S\subseteq A$ be finite and nonempty.
If $2\notin S$, then \[ \sum_{n\in S}\frac{f(n)}{n}=\sum_{n\in S}\frac1n>0. \]
If $2\in S$, write \[ T:=S\setminus\{2\}. \] Then every element of $T$ is odd, and \[ \sum_{n\in S}\frac{f(n)}{n} =\sum_{n\in T}\frac1n-\frac12. \] Now $\sum_{n\in T}1/n$ is a rational number whose reduced denominator is odd: indeed, with common denominator \[ D:=\prod_{n\in T} n, \] which is odd, we can write \[ \sum_{n\in T}\frac1n=\frac{M}{D} \] for some integer $M$; cancelling common factors cannot introduce a factor $2$ into the denominator. Therefore \[ \sum_{n\in T}\frac1n\ne \frac12. \] So in this case as well, \[ \sum_{n\in S}\frac{f(n)}{n}\ne 0. \] Hence there exists a set of positive density for which no such finite set $S$ exists.
3. The set of squares greater than $1$. Let \[ A=\{4,9,16,25,\dots\}, \] and let $f\colon A\to\{-1,1\}$ be non-constant. Define \[ X:=\{n\in A:f(n)=1\}, \qquad Y:=\{n\in A:f(n)=-1\}. \] Because $f$ is non-constant and its codomain is exactly $\{-1,1\}$, both $X$ and $Y$ are nonempty, and they form a partition of $A$. By Larsen's theorem, there exist finite nonempty sets \[ X'\subseteq X, \qquad Y'\subseteq Y \] such that \[ \sum_{x\in X'}\frac1x=\sum_{y\in Y'}\frac1y. \] Let \[ S:=X'\cup Y'. \] Then $S\subseteq A$ is finite and nonempty, and \[ \sum_{n\in S}\frac{f(n)}{n} =\sum_{x\in X'}\frac1x-\sum_{y\in Y'}\frac1y =0. \] This proves the squares case.
Combining the three parts, the answers to Erdős Problem #318 are:
- arithmetic progressions: yes;
- arbitrary positive-density sets: no;
- squares greater than $1$: yes.
References
- [BloomJEMS] Thomas F. Bloom, On a density conjecture about unit fractions (with an appendix by Thomas F. Bloom and Bhavik Mehta), Journal of the European Mathematical Society 27 $2025$, no. 11, 4563--4589. DOI: 10.4171/JEMS/1456.
- [ErdosGraham] Paul Erdős and Ronald L. Graham, Old and New Problems and Results in Combinatorial Number Theory, Monographies de L'Enseignement Mathématique, vol. 28, L'Enseignement Mathématique, Geneva, 1980.
- [Larsen] Daniel Larsen, Sufficiently abundant numbers are pseudoperfect, 2026 note. The theorem on partitions of the perfect squares greater than $1$ appears in the public source file GitHub source file.
- [Sattler] R. Sattler, On Erdős property $P_1$ for the arithmetical sequence, Indagationes Mathematicae (Proceedings) 85 $1982$, 347--352. DOI: 10.1016/1385-7258$82$90026-9.