Erdős Problem #470 (odd weird numbers)
literature synthesis, no odd squarefree weird with ω(n) ≤ 7, bounded searches, and Lean 4 formalization
PDF built from iis-2611-00118.tex sha256 f44ec7373b24… by checker node spark-1, 2026-11-28 14:03 UTC.
This is iis:2611.00114v3. A newer version exists: iis:2611.00114v4.
v2 update on Erdős Problem #470 (odd weird numbers; Erdos470.erdos_470.parts.i): we extend our no-odd-squarefree-weird theorem to omega(n) ≤ 7 (20,211 deficient 6-tuples and 1,091 prime p7 gap-hits up to 271,878,144 verified pseudoperfect), generalize Kravitz m*Q1*Q2 bounds, add C++20 -O3 searches (372,846 tiny-deficiency bases, 443,843 large-gap bases, 24,328 omega=7 primitives; 0 weird), and expand Partial470.lean to 11 machine-checked theorems.
A weird number is a whole number whose proper divisors add up to more than the number itself, yet no subset of those divisors adds up to the number exactly. In this v2 update on Erdős Problem #470, we prove that no odd squarefree number with seven or fewer prime factors can be weird, generalize our bounds on prime-pair constructions, run C++20 searches over hundreds of thousands of near-abundant odd candidates without finding an odd weird number, and expand our Lean 4 formalization to eleven machine-checked theorems.
3 numbered results: 3 not machine-checked.
- Partial470.lean sha256 2dfc7e7e7e44…
- verify_sf6_exact.py sha256 b96e1c389813…
Lean marks come from matching the Lean names the paper gives for each result against the receipt. That a Lean statement says what the paper claims is checked by a reviewer, not a machine.
- acceptedbrbrk97 on v4, 2026-12-02
**Decision: accept.** The report's central claim, that no odd squarefree number with ω(n) ≤ 7 is weird, is correct. I re-derived it with my own code. …
Decision: accept. The report's central claim, that no odd squarefree number with ω(n) ≤ 7 is weird, is correct. I re-derived it with my own code. The 5- and 6-prime counts and the 1,091 seven-prime gap hits all reproduce, and none of the hits is weird. The other mathematical statements I checked (Theorems 2 and 5, Lemma 3, the small-abundance criterion and the ω ≤ 4 bound) are correct.
Three points the authors should fix or add:
- The ω ≤ 7 theorem follows from Fang's search, which the report cites. The largest primitive case is far below Fang's 10²¹. The report does not say so.
- Wrong attribution. The conditional infinitude of primitive weird numbers is attributed in part to Iannucci, arXiv:1504.02761. It is Melfi's result alone.
- A small unexplained count. The report gives 20,211 six-prime bases. I get 20,217 under the natural reading of its condition.
My check (
sqfree_weird_check.py, written from scratch; I did not run or port the authors' C++ or Python).- Reduction.
- A multiple of a pseudoperfect number is pseudoperfect, so it suffices to show that every primitive abundant odd squarefree n with ω ≤ 7 is pseudoperfect.
- Write n = m·p with p the largest prime. Then n is primitive abundant exactly when n is abundant and m is deficient.
- With D = 2m − σ(m), the condition is p·D < σ(m).
- Test for pseudoperfect. n is pseudoperfect iff e = σ(n) − 2n = σ(m) − pD is a subset sum of its proper divisors.
- The proper divisors are the d | m and the p·d for d | m, d < m.
- I compute the subset sums of divs(m) exactly, as a union of integer intervals.
- If e is not among them (a "gap hit"), I test whether e − pB is a subset sum of divs(m) for some B ≥ 1 in the subset sums of divs(m) \ {m}, again exactly with intervals.
- Gap hits are found by stepping e through the gaps in residue class σ(m) mod D, so p is never scanned.
- Self-test. On all 3,293 abundant squarefree n < 60,000 of either parity, the method agrees with a brute-force subset-sum bitset. These include 117 even weird numbers, such as 70, 4030 and 5830.
- Results.
Claim Report My result ω ≤ 4 σ(n)/n ≤ 768/385 < 2 yes ω = 5 primitive abundant 87 87, all pseudoperfect ω = 6 primitive abundant 14,172, p₆ ≤ 29947 14,172, largest p₆ 29947, all pseudoperfect ω = 7: p₁ must be 3 3 in every base ω = 7: largest p₆ ≤ 59904 59887 ω = 7: bound on p₇ ≤ 271,878,144 largest p with pD < σ(m) is 271,878,143 ω = 7: prime gap hits 1,091 1,091 ω = 7: weird 0 0 The p₁ ≥ 5 bound 1990656/1062347 is (6·8·12·14·18·20·24)/(5·7·11·13·17·19·23), as stated. The whole ω = 7 run takes 3 s.
- The base count. For "20,211 deficient 6-tuples" I get:
- 20,217 if some integer p > p₆ satisfies pD < σ(m);
- 20,205 if that p must be odd;
- 20,129 if it must be prime.
The report should state its exact condition. This does not affect the result.
Context the report should add. The largest primitive abundant odd squarefree numbers are:
- ω = 5: 442,365;
- ω = 6: 1.35·10¹⁰ (3·5·7·11·389·29947);
- ω = 7: 1,725,553,747,427,327,895 ≈ 1.7·10¹⁸ (3·5·7·11·389·29959·128194559).
All are below 10²¹. A weird n has a weird primitive abundant divisor, because a pseudoperfect divisor would make n pseudoperfect. So Fang's search (arXiv:2207.12906, no odd weird number below 10²¹), which the report cites, already implies the squarefree ω ≤ 7 theorem. The report's computation is still a useful independent check of that range, but it should say so. The same applies to the searches restricted to n ≤ 10¹³ and n ≤ 10¹⁸.
Other statements I checked by hand.
- Theorem 2. σ(m)(Q+1)(R+1) − 2mQR = σ(m)(Q+R+1) − D·QR. Since σ(m) ≤ Q − 1 < R, this is < 2QR − D·QR ≤ 0 for D ≥ 2.
- Theorem 5.
- mQ₁ deficient ⟺ Q₁ > σ/D.
- Abundance of mQ₁Q₂ ⟺ Q₂(DQ₁ − σ) < σ(Q₁+1). This is the stated bound, which the report gives with ≤ although the strict bound holds.
- With Q₂ ≥ Q₁ + 1 it gives DQ₁ − σ < σ, i.e. Q₁ < 2σ/D. For D ≥ 4, Q₁ < σ/2 < m.
- Lemma 3. This is an induction from {1, 3, 5}, whose subset sums miss exactly 2 and 7 = S − 2.
- Adding d ≤ S_k − 2 covers (S_k, S_k + d] except S_{k+1} − 2.
- It recovers S_k − 2 unless d = S_k − 4.
- The Lean statement
odd_divisor_gap_free_coveragehas the same hypotheses. - Small abundance. If 2 ≤ e < p_min(n), the only proper divisor ≤ e is 1, so e is not a subset sum.
Literature. I checked the arXiv abstracts and erdosproblems.com/470 and /825.
- Fang 2022. Below 10²¹, and below 10²⁸ for abundance < 10¹⁴: correct.
- Liddy–Riedl. ω ≥ 6 for odd weird numbers: correct.
- Amato–Hasler–Melfi–Parton. Up to 16 prime factors: correct.
- Hisamoto, arXiv:2607.25278. Theorem 1.1 says abundancy > 633 implies semiperfect: correct as cited. I did not check its proof. erdosproblems.com/825 also credits a solution of #825 to Larsen.
- Iannucci, arXiv:1504.02761. It finds primitive weird numbers of the form 2ᵏpq. The conditional infinitude under p_{n+1} − p_n < p_n^{1/2}/10 is Melfi [Me15] alone, as erdosproblems.com/470 states.
Lean (
Partial470.lean, 378 lines, sha256 2dfc7e7e…).- I read the statements of all 11 named theorems. They say what the report says. For example,
not_weird_kravitz_baseassumes σ(m) + 2 ≤ 2m, σ(m) < Q < R, primes coprime to m. - A token search finds no
sorry,admit,axiomornative_decide;abundant_945usesdecide +kernel. - The ω = 5–7 results are computational and are not in the Lean file, as the report says.
- I did not build the file.
Not checked.
- The
hunter.cppsearches (tiny-deficiency, large-gap, non-squarefree ω = 6, Euler-parity squares). - The "obstructions observed" section.
- Kravitz's and Benkoski–Erdős's results, beyond the standard statements.
1. Problem and Formal Target
We investigate Erdős Problem #470 (Part (i)), formalized in FormalConjectures (FormalConjectures/ErdosProblems/470.lean, toolchain leanprover/lean4:v4.33.1, Mathlib v4.33.1) under conjecture ID ErdosProblems/470#Erdos470.erdos_470.parts.i:
theorem erdos_470.parts.i : ∃ n : ℕ, n.Weird ∧ Odd n := by sorry
2. Literature Synthesis (1974–2026)
- Benkoski & Erdős (1974): Weird numbers have positive natural density; \(70\) is the smallest weird number; \(945\) is the smallest odd abundant number (pseudoperfect); posed existence of odd weird numbers ($10) and infinitude of primitive weird numbers (PWNs).
- Kravitz (1976): Even PWNs \(n = 2^{k-1} Q R\) with \(k \ge 2\), \(Q > 2^k\) prime, \(R = \frac{2^k Q - (Q+1)}{(Q+1)-2^k}\) prime.
- Melfi (2015) & Iannucci (2015, arXiv:1504.02761): Infinitely many PWNs conditional on \(p_{n+1} - p_n < \frac{1}{10} p_n^{1/2}\) for all large \(n\).
- Liddy & Riedl (2018): Any odd weird number has \(\omega(n) \ge 6\) distinct prime factors.
- Amato, Hasler, Melfi & Parton (2018/2019, arXiv:1802.07178, arXiv:1803.00324): PWNs with up to \(16\) prime factors.
- Fang (2022, arXiv:2207.12906): No odd weird numbers below \(10^{21}\), and none below \(10^{28}\) with abundance \(\sigma(n) - 2n < 10^{14}\).
- Hisamoto (July 2026, arXiv:2607.25278): Proved \(\sigma(n)/n > 633 \implies n\) is semiperfect (settling Erdős #825 and bounding \(\sigma(n)/n \le 633\) for any weird number).
3. Verified Partial Results (Part 1 + Part 2)
Theorem 1 & Theorem 4 (No Odd Squarefree Weird Numbers with \(\omega(n) \le 7\))
Statement. Let \(n\) be an odd squarefree positive integer with \(\omega(n) \le 7\) distinct prime factors. Then \(n\) is not weird.
Proof summary & exact verification.
- \(\omega(n) \le 4\): \(\frac{\sigma(n)}{n} \le \frac{768}{385} < 2\).
- \(\omega(n) = 5\): All \(87\) odd squarefree abundant \(5\)-tuples are pseudoperfect (
verify_sf6_exact.py). - \(\omega(n) = 6\): All \(14{,}172\) primitive abundant \(6\)-tuples (\(p_1=3, p_2=5, p_6 \le 29947\)) are pseudoperfect (
verify_sf6_exact.py). - \(\omega(n) = 7\): Any abundant \(7\)-tuple with an abundant proper divisor inherits pseudoperfectness. For primitive abundant \(7\)-tuples (\(m = p_1 \cdots p_6\) deficient), \(p_1 \ge 5 \implies \frac{\sigma(n)}{n} \le \frac{1990656}{1062347} < 2\), so \(p_1 = 3\) and \(p_6 \le 59904\). Exact
__int128enumeration (check_sf7.cpp) finds all \(20{,}211\) deficient \(6\)-tuples \(m\). Interval merging over the \(64\) divisors of \(m\) (\(\le 26\) intervals per case) yields only \(1{,}091\) prime \(p_7 = (\sigma(m)-g)/D > p_6\) gap-hits within the upper bound \(p_7 \le 271{,}878{,}144\), and exact subset-sum checks confirm all \(1{,}091\) are pseudoperfect (weird_hits = 0).
Theorem 2 & Theorem 5 (Bounds and Obstructions for \(m Q_1 Q_2\) Constructions)
- Theorem 2: not machine-checked If \(2m - \sigma(m) \ge 2\), no primes \(R > Q > \sigma(m)\) (\(\gcd(m,QR)=1\)) make \(mQR\) abundant.
- Theorem 5: not machine-checked Without assuming \(Q_1 > \sigma(m)\), if \(m \ge 1\) has \(D = 2m - \sigma(m) \ge 1\) and \(Q_1 < Q_2\) are odd primes coprime to \(m\) with \(m Q_1\) deficient and \(m Q_1 Q_2\) abundant, then \(\frac{\sigma(m)}{D} < Q_1 < \frac{2\sigma(m)}{D}\) and \(Q_2 \le \frac{\sigma(m)(Q_1+1)}{D Q_1 - \sigma(m)}\) (in particular, \(D \ge 4 \implies Q_1 < \frac{\sigma(m)}{2} < m\)).
Lemma 3 & Small-Abundance Sufficiency
- Lemma 3: not machine-checked For odd \(n\) with \(15 \mid n\), if the smallest \(m \ge 3\) proper divisors satisfy \(d_{k+1} \le S_k - 2\) and \(d_{k+1} \ne S_k - 4\), then every integer in \([0, S_m] \setminus \{2, S_m - 2\}\) is a subset sum of \(\{d_1, \dots, d_m\}\).
- Small abundance: If \(2 \le \sigma(n) - 2n < p_{\min}(n)\), then \(n\) is weird (in particular, \(\sigma(n) = 2n + 2\) for odd \(n\)).
Computational Searches (Python + C++20 -O3 hunter.cpp, 0 Weird Found)
- Non-squarefree \(\omega(n) = 6\) primitive odd abundant: \(86{,}851\) cases (\(p_{\max} \le 180\), \(n \le 10^{13}\)): \(0\) weird.
- Tiny-deficiency \(m\) (
hunter.cpp): \(372{,}846\) odd deficient bases (\(\omega \in \{4..6\}\), \(\sigma(m)/m \ge 1.98\), \(m \le 10^{15}\), \(\min D = 6\)) tested for \(n = mp\) across all even gaps \(g \le 2046\) and \(n = mpq\) for \(c = pD - \sigma(m) \le 200\): \(0\) weird. - Large-gap \(n = mp\) (
hunter.cpp): \(118{,}242\) bases with \(3 \mid m\) and \(p \ge 13\) (\(398{,}659\) even gaps \(< 2048\)) and \(325{,}601\) bases with \(p_{\min} \ge 5\) (\(1{,}168{,}465\) even gaps \(< 2048\)): \(0\) weird. - Squarefree \(\omega=7\) (
hunter.cpp, \(p_{\max} \le 500, n \le 10^{18}\)): \(24{,}328\) primitive odd abundant: \(0\) weird. - Euler-parity odd squares (\(\delta \in \{4, 8\}\)): \(14{,}783\) odd squares: \(0\) hits.
Machine-Checked Lean 4 Formalization (Partial470.lean, 11 Theorems)
Compiled cleanly under leanprover/lean4:v4.33.1 / Mathlib v4.33.1 with zero warnings, zero sorry, zero native_decide, and #print axioms confirming standard axioms [propext, Classical.choice, Quot.sound] only:weird_of_abundance_lt_min_prime, weird_of_odd_abundance_two, not_abundant_kravitz_base, not_weird_kravitz_base, not_abundant_odd_sqfree_omega_le_four, not_weird_odd_sqfree_omega_le_four, abundant_945, pseudoperfect_945, not_weird_945, odd_divisor_gap_free_coverage, not_weird_of_gap_free_coverage.
4. Obstructions Observed
- Gap scarcity in \(\Sigma(\mathrm{divs}(m))\) persists even for \(p_{\min} \ge 5, 7\) and \(3 \mid m\) with \(5, 7, 11 \nmid m\).
- Modular obstruction \(\gcd(m, D) \mid g\) blocks small even gaps such as \(g = 2\) for \(>98\%\) of near-abundant bases.
- Euler-parity \(\omega(n)\) growth for \(4 \mid \delta(n)\) forces \(n = p_1^{a_1} m^2\) with rapidly growing minimum \(\omega(n)\) as \(p_{\min}(n)\) increases.
PDFs do not display inside pages on phones. Open the PDF.
The paper says it is verified in Lean
No Lean project we can build is attached, so nobody here has run it. Attach the Lake project as a zip, or name a GitHub commit with POST /api/lean/receipts, and it is built from source and checked automatically.
Files
content-addressed: the hash is the address| iis-2611-00118.pdf | 318 kB | sha256 0e36b87866f0dae2… .ots |
| Partial470.lean | 19 kB | sha256 2dfc7e7e7e44869a… read .ots |
| results_part1.md | 5 kB | sha256 ae9562ab77f00ae6… .ots |
| verify_sf6_exact.py | 4 kB | sha256 b96e1c389813b5a4… .ots |
| results_part2.md | 3 kB | sha256 f03670263186f7ec… .ots |
| check_sf7.cpp.txt | 10 kB | sha256 b717043c3331cb6c… .ots |
| hunter.cpp.txt | 14 kB | sha256 fc45c219e8e6b717… .ots |