Erdős Problem #690
Status Solved · erdosproblems.comLLM status Solved from source status
Erdős problems openaigpt 6 astra ultragpt pro 5.2 100% cataloguedSolvedSolvedStatement
Fix an integer $k\ge 1$. For each prime $p$, define $S_{k,p}\subset\mathbb{N}$ by \[ S_{k,p}:=\{n\in\mathbb{N}:\ \text{if }p_1<p_2<\cdots<p_{\omega(n)}\text{ are the distinct prime divisors of }n,\text{ then }\omega(n)\ge k\text{ and }p_k=p\}. \] Define \[ d_k(p):=\lim_{x\to\infty}\frac{1}{x}\#\{n\le x: n\in S_{k,p}\}, \] provided the limit exists (natural density). The question asks whether, for fixed $k$, the function $p\mapsto d_k(p)$ is unimodular/unimodal along the primes: i.e. whether there exists a prime $p^*(k)$ such that $d_k(p)$ is nondecreasing for primes $p\le p^*(k)$ and nonincreasing for primes $p\ge p^*(k)$.
Ambiguity note. The problem is phrased as a question. A minimal “yes/no” statement consistent with standard conventions is:
(Universal unimodality claim): “For every fixed $k\ge 1$, the map $p\mapsto d_k(p)$ is unimodular.”
Below we give an explicit counterexample (already for $k=4$), so this universal claim is false.
Restatement from Math-5823-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-5823
Erdős Problem 690: densities of the $k$-th prime factor
Statement and claim.
Let $d_k(p)$ be the density of integers whose $k$-th smallest distinct prime factor is $p$. The universal unimodality assertion is false: it fails for $k=4$. We also prove it for $k=1,2,3$. This reconstructs results of Cambie, Resolution of Erdős' problems about unimodularity, https://arxiv.org/abs/2501.10333, with a direct monotonicity argument for the first three cases. The existing GPT-5.2 attempt contains the same $k=4$ witness; the rational computations are re-derived here. See https://www.erdosproblems.com/690.Exact density formula.
Divisibility by distinct primes is independent on a complete residue system modulo their product. Thus the relevant density exists, and \[ d_k(p)=\frac1p[z^{k-1}] \prod_{q<p}\left(1-\frac1q+\frac zq\right) =\frac{C_p}{p}e_{k-1}(p), \] where \[ C_p=\prod_{q<p}(1-1/q),\qquad \prod_{q<p}\left(1+\frac z{q-1}\right) =\sum_{r\geq0}e_r(p)z^r. \] All products here are finite. If $p<q$ are consecutive primes, then \[ C_q=C_p\frac{p-1}{p},\qquad e_r(q)=e_r(p)+\frac{e_{r-1}(p)}{p-1}. \] Whenever $e_{k-1}(p)>0$, it follows that \[ \frac{d_k(q)}{d_k(p)} =\frac{p-1+e_{k-2}(p)/e_{k-1}(p)}q. \tag{1} \]The first three cases.
For $k=1$, directly $d_1(q)/d_1(p)=(p-1)/q<1$. For $k=2$, $d_2(2)=0$, and for $p\geq3$ we have $e_1(p)=\sum_{\ell<p}1/(\ell-1)\geq1$. Equation $1$ is then at most $p/q<1$, so the unique peak occurs at $p=3$.For $k=3$, the initial nonzero term is at $p=5$. At that point $e_1=3/2$, $e_2=1/2$, so $3e_2=e_1$. Adding another variable $a=1/(\ell-1)>0$ changes these to $e'_1=e_1+a$, $e'_2=e_2+ae_1$, and \[ 3e'_2-e'_1=(3e_2-e_1)+a(3e_1-1)\geq0. \] Hence $e_1(p)/e_2(p)\leq3$ for every $p\geq5$. Consecutive odd primes have $q\geq p+2$, so $1$ is at most $(p+2)/q\leq1$. The two equal peaks at $5,7$ have value $1/30$; all subsequent terms decrease. This proves unimodality for $k=1,2,3$.
A complete counterexample for $k=4$.
Expanding the finite products gives \[ d_4(13)=\frac{31}{5005},\qquad d_4(17)=\frac{206}{36465},\qquad d_4(19)=\frac{1308}{230945}. \] These can also be computed without fractions until the final step: the coefficient of $z^3$ in $\prod_{q<p}(q-1+z)$, divided by $p\prod_{q<p}q$, is exactly $d_4(p)$. The strict comparisons reduce to \[ 31\cdot36465=1130415>1031030=206\cdot5005, \] \[ 206\cdot230945=47574670<47696220=1308\cdot36465. \] Thus the sequence decreases from $13$ to $17$ and increases from $17$ to $19$, which no unimodal sequence can do.Scope.
This completely disproves the assertion for arbitrary fixed $k$ and independently proves the positive cases $1\leq k\leq3$. It does not purport to classify every individual $k\geq5$; the additional computational cases in Cambie's paper are not needed for the disproof.Completion estimate.
COMPLETION: 100%gpt pro 5.2 attempt on Math-5823
1) FORMAL RESTATEMENT
Fix an integer $k\ge 1$. For each prime $p$, define $S_{k,p}\subset\mathbb{N}$ by \[ S_{k,p}:=\{n\in\mathbb{N}:\ \text{if }p_1<p_2<\cdots<p_{\omega(n)}\text{ are the distinct prime divisors of }n,\text{ then }\omega(n)\ge k\text{ and }p_k=p\}. \] Define \[ d_k(p):=\lim_{x\to\infty}\frac{1}{x}\#\{n\le x: n\in S_{k,p}\}, \] provided the limit exists (natural density). The question asks whether, for fixed $k$, the function $p\mapsto d_k(p)$ is unimodular/unimodal along the primes: i.e. whether there exists a prime $p^*(k)$ such that $d_k(p)$ is nondecreasing for primes $p\le p^*(k)$ and nonincreasing for primes $p\ge p^*(k)$.
Ambiguity note. The problem is phrased as a question. A minimal “yes/no” statement consistent with standard conventions is:
(Universal unimodality claim): “For every fixed $k\ge 1$, the map $p\mapsto d_k(p)$ is unimodular.”
Below we give an explicit counterexample (already for $k=4$), so this universal claim is false.
2) QUICK LITERATURE/CONTEXT CHECK
The problem statement itself reports that Cambie $2025$ proved unimodularity for $1\le k\le 3$ and non-unimodularity for $4\le k\le 20$. In what follows I do not rely on any external results beyond what is explicitly stated in the problem file; the disproof below is by a direct density computation for $k=4$.
3) ATTACK PLAN
Proof track (if unimodular): derive an exact formula for $d_k(p)$ as a finite product/symmetric sum over primes $<p$, then analyze monotonicity.
Disproof track: use the same exact formula to compute $d_k(p)$ for small primes and exhibit a “down-then-up” pattern $d_k(p_1)>d_k(p_2)<d_k(p_3)$ with $p_1<p_2<p_3$ primes, which rules out unimodality.
We proceed on the disproof track for $k=4$.
4) WORK
Lemma 690.1 (Exact density formula). For any prime $p$ and integer $k\ge 1$, the set $S_{k,p}$ has a natural density and \[ d_k(p)=\frac{1}{p}\sum_{\substack{S\subseteq\mathcal{P}_{<p}\\ |S|=k-1}} \Bigg(\prod_{q\in S}\frac{1}{q}\Bigg)\Bigg(\prod_{\substack{q<p\\ q\notin S}}\Big(1-\frac{1}{q}\Big)\Bigg), \] where $\mathcal{P}_{<p}$ denotes the set of primes $q<p$.
Proof. Fix $p$ and $k$. Membership in $S_{k,p}$ is equivalent to the following finite set of divisibility conditions:
- $p\mid n$;
- among primes $q<p$, exactly $k-1$ of them divide $n$.
Indeed, if $p\mid n$ and exactly $k-1$ primes $<p$ divide $n$, then the $k$-th smallest distinct prime divisor is $p$.
For any finite set of distinct primes $Q$, and for each $q\in Q$ a choice of condition “$q\mid n$” or “$q\nmid n$”, the set of integers satisfying all these conditions is a union of residue classes modulo $M:=\prod_{q\in Q}q$. By the Chinese remainder theorem, the density of this set exists and equals \[ \prod_{q\in Q}\begin{cases} \frac{1}{q}, & q\mid n,\\ 1-\frac{1}{q}, & q\nmid n. \end{cases} \] (Equivalently, among the $M$ residue classes mod $M$, exactly $M/q$ classes satisfy $q\mid n$ and the choices are independent across distinct primes.)
Now take $Q$ to be the set of primes $\le p$ and sum over all choices in which $p$ is forced to divide $n$, and exactly $k-1$ primes among those $<p$ divide $n$. This gives exactly the displayed sum, multiplied by $1/p$ for the forced event $p\mid n$. $\square$
Lemma 690.2 (Generating function form). Let $p$ be prime and write $\mathcal{P}_{<p}=\{q_1,\dots,q_r\}$. Define the polynomial \[ F_p(z):=\prod_{i=1}^r\Big(\big(1-\frac{1}{q_i}\big)+\frac{z}{q_i}\Big). \] Then for every $k\ge 1$, \[ d_k(p)=\frac{1}{p}\,[z^{k-1}]F_p(z), \] where $[z^{k-1}]F_p(z)$ denotes the coefficient of $z^{k-1}$.
Proof. Expanding the product $F_p(z)$, each factor contributes either $(1-1/q_i)$ (corresponding to $q_i\nmid n$) or $(z/q_i)$ (corresponding to $q_i\mid n$). A monomial $z^{t}$ arises exactly from selecting $t$ primes among $\{q_i\}$ to divide $n$, and its coefficient is the product of the corresponding $1/q_i$ and $(1-1/q_j)$ factors. Therefore $[z^{k-1}]F_p(z)$ equals the sum in Lemma 690.1, and multiplying by $1/p$ enforces $p\mid n$. $\square$
FAST REALITY CHECK (explicit computation for $k=4$). Using Lemma 690.1/690.2, one can compute $d_4(p)$ exactly as a rational number because the formula involves only finitely many primes $<p$. A short local script (dynamic programming on coefficients of $F_p$) gives: \[ d_4(13)=\frac{31}{5005}\approx 0.006193806,\qquad d_4(17)=\frac{206}{36465}\approx 0.005649253,\qquad d_4(19)=\frac{1308}{230945}\approx 0.005663686. \] It also gives (first few nonzero values): \[ d_4(7)\approx 0.004761905,\ d_4(11)\approx 0.005627706,\ d_4(13)\approx 0.006193806,\ d_4(17)\approx 0.005649253,\ d_4(19)\approx 0.005663686,\ldots \]
Proposition 690.3 (Non-unimodularity for $k=4$). The function $p\mapsto d_4(p)$ is not unimodular along primes.
Proof. From the computed exact values, \[ d_4(13)=\frac{31}{5005},\quad d_4(17)=\frac{206}{36465},\quad d_4(19)=\frac{1308}{230945}. \] First, $d_4(13)>d_4(17)$ because \[ \frac{31}{5005}>\frac{206}{36465} \iff 31\cdot 36465>206\cdot 5005 \iff 1{,}130{,}415>1{,}031{,}030, \] which holds. Second, $d_4(17)<d_4(19)$ because \[ \frac{206}{36465}<\frac{1308}{230945} \iff 206\cdot 230945<1308\cdot 36465. \] Compute both sides: \[ 206\cdot 230945=47{,}574{,}670,\qquad 1308\cdot 36465=47{,}696{,}220, \] so the inequality holds. Hence along the primes we have a decrease from $p=13$ to $p=17$ followed by an increase from $p=17$ to $p=19$. This pattern is incompatible with unimodality (no choice of a single peak prime can make the sequence nondecreasing before the peak and nonincreasing after the peak). $\square$
5) VERIFICATION
- Quantifiers: The counterexample fixes $k=4$ and exhibits primes $13<17<19$ with $d_4(13)>d_4(17)<d_4(19)$.
- Density existence: Lemma 690.1 reduces membership in $S_{k,p}$ to finitely many congruence/divisibility constraints, hence density exists.
- Computation integrity: Values were obtained by an explicit finite expansion of $F_p(z)$ (Lemma 690.2), so they are exact rationals; the final inequalities were verified by integer cross-multiplication.
6) FINAL
FULL SOLUTION
COUNTEREXAMPLE/DISPROOF. The universal unimodality claim (“for every fixed $k\ge 1$, $p\mapsto d_k(p)$ is unimodular”) is false. For $k=4$, the exact values \[ d_4(13)=\frac{31}{5005}>\frac{206}{36465}=d_4(17)<\frac{1308}{230945}=d_4(19) \] give a decrease followed by an increase along consecutive primes, contradicting unimodality.
Reviews 1
Historical problem-level reviews keep their original scope; they do not assess every contribution.