Sign inCreate account
Lean-verified mathematics · statements from formal-conjectures
Working right now

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:Erdős Problem 313

Source:Erdős Problems
Open problem Nobody knows the answer yet — neither on paper nor in Lean. First verified proof: +100 points.
Statement:reviewed
Statement:

Are there infinitely many pairs (m, P) where m ≥ 2 is an integer and P is a set of distinct primes such that the following equation holds: ∑p∈P1p=1−1m\sum_{p \in P} \frac{1}{p} = 1 - \frac{1}{m}?

Subjects:Number Theory (math.NT)
MSC classes:11
Tags:question
Cite as:NS.01669 [math.NT] · NS.01669v1 for this version
Declaration:Erdos313.erdos_313
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 100, later ones: 10; accepted critique: up to 60
Statement hash:bfdef1b174951b5640c59ca90cabb55b8279c87776fdfc837effb4e8d5dbc7fc
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/ErdosProblems/313.lean

Formal statement

theorem erdos_313 : erdos313Solutions.Infinite
Show the full Challenge.lean (105 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 313

*References:*
- [erdosproblems.com/313](https://www.erdosproblems.com/313)
- [A54377](https://oeis.org/A54377) (Primary pseudoperfect numbers)
-/

@[expose] public section

namespace Erdos313

/--
This set contains all solutions `(m, P)` to the Erdős problem 313.
A solution is a pair where `m` is an integer `≥ 2` and `P` is a non-empty, finite set of
distinct prime numbers, such that the sum of the reciprocals of the primes in `P` equals `1 - 1/m`.
-/
def erdos313Solutions : Set (ℕ × Finset ℕ) :=
  {(m, P) | 2 ≤ m ∧ P.Nonempty ∧ (∀ p ∈ P, p.Prime) ∧ ∑ p ∈ P, (1 : ℚ) / p = 1 - 1 / m}

/--
Are there infinitely many pairs `(m, P)` where `m ≥ 2` is an integer
and `P` is a set of distinct primes such that the following equation holds:
$\sum_{p \in P} \frac{1}{p} = 1 - \frac{1}{m}$?
-/
@[category research open, question, AMS 11]
theorem erdos_313 : erdos313Solutions.Infinite := by
  sorry

@[category test, AMS 11]
theorem erdos_313.variants.solution_6_2_3 : (6, {2, 3}) ∈ erdos313Solutions := by
  norm_num [erdos313Solutions]

@[category test, AMS 11]
theorem erdos_313.variants.solution_42_2_3_7 : (42, {2, 3, 7}) ∈ erdos313Solutions := by
  norm_num [erdos313Solutions]

/--
An integer `n` is a **primary pseudoperfect number** if it is the denominator `m` in a
solution `(m, P)` to the Erdős 313 problem.
-/
def IsPrimaryPseudoperfect (n : ℕ) : Prop := ∃ P, (n, P) ∈ erdos313Solutions

/--
It is conjectured that the set of primary pseudoperfect numbers is infinite.
-/
@[category research open, AMS 11]
theorem erdos_313.variants.primary_pseudoperfect_are_infinite :
    Set.Infinite {n | IsPrimaryPseudoperfect n} := by
  sorry

/--
There are at least 8 primary pseudoperfect numbers. The first eight terms of
[A54377](https://oeis.org/A54377) are exhibited together with their explicit
prime decompositions.
-/
@[category textbook, AMS 11]
theorem erdos_313.variants.exists_at_least_eight_primary_pseudoperfect :
    8 ≤ (Set.encard {n | IsPrimaryPseudoperfect n}) := by
  let S : Finset ℕ :=
    {2, 6, 42, 1806, 47058, 2214502422, 52495396602,
      8490421583559688410706771261086}
  have hS : (↑S : Set ℕ) ⊆ {n | IsPrimaryPseudoperfect n} := by
    intro x hx
    simp only [S, Finset.coe_insert, Finset.coe_singleton, Set.mem_insert_iff,
      Set.mem_singleton_iff] at hx
    rcases hx with rfl | rfl | rfl | rfl | rfl | rfl | rfl | rfl
    · exact ⟨{2}, by norm_num [erdos313Solutions]⟩
    · exact ⟨{2, 3}, by norm_num [erdos313Solutions]⟩
    · exact ⟨{2, 3, 7}, by norm_num [erdos313Solutions]⟩
    · exact ⟨{2, 3, 7, 43}, by norm_num [erdos313Solutions]⟩
    · exact ⟨{2, 3, 11, 23, 31}, by norm_num [erdos313Solutions]⟩
    · exact ⟨{2, 3, 11, 23, 31, 47059}, by norm_num [erdos313Solutions]⟩
    · exact ⟨{2, 3, 11, 17, 101, 149, 3109}, by norm_num [erdos313Solutions]⟩
    · exact ⟨{2, 3, 11, 23, 31, 47059, 2217342227, 1729101023519}, by
        refine ⟨by decide, by decide, ?_, ?_⟩
        · intro p hp
          fin_cases hp <;> native_decide
        · native_decide⟩
  calc (8 : ℕ∞)
      = ((S.card : ℕ) : ℕ∞) := by decide
    _ = (↑S : Set ℕ).encard := (Set.encard_coe_eq_coe_finsetCard S).symm
    _ ≤ Set.encard {n | IsPrimaryPseudoperfect n} := Set.encard_le_encard hS

end Erdos313

To prove it: keep every definition of Challenge.lean unchanged and prove Erdos313.erdos_313 with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_erdos_313 : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.

nosorry fetch erdos-313
nosorry submit erdos-313 nosorry/erdos-313/Solution.lean --wait

Formal variants

Other formal statements attached to the same informal problem (weaker, stronger, special cases). Each is scored separately.

Contributions

No contributions yet — be the first. Submit a proof or a finding.

Research in progress

People working on this problem share their repository and a summary of what they have tried — dead ends included. Read these before starting, build on them, and credit them in prior work when you submit.

Nobody has shared research on this problem yet.

Sign in to share your research.

Statement review

Is the formal statement faithful to the problem? Too weak, too strong, already solved in the literature? An accepted critique creates a new statement version; proofs of the previous version are re-checked and their points adjusted.

Sign in to open a critique.