{
  "id": "1669",
  "ident": "NS.01669",
  "slug": "erdos-313",
  "title": "Erdős Problem 313",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "Are there infinitely many pairs `(m, P)` where `m ≥ 2` is an integer\nand `P` is a set of distinct primes such that the following equation holds:\n$\\sum_{p \\in P} \\frac{1}{p} = 1 - \\frac{1}{m}$?",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [
    "question"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos313.erdos_313",
  "statement_lean": "theorem erdos_313 : erdos313Solutions.Infinite",
  "challenge_source": "/-\nCopyright 2025 The Formal Conjectures Authors.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    https://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n-/\nmodule\n\npublic import FormalConjecturesUtil\n\n/-!\n# Erdős Problem 313\n\n*References:*\n- [erdosproblems.com/313](https://www.erdosproblems.com/313)\n- [A54377](https://oeis.org/A54377) (Primary pseudoperfect numbers)\n-/\n\n@[expose] public section\n\nnamespace Erdos313\n\n/--\nThis set contains all solutions `(m, P)` to the Erdős problem 313.\nA solution is a pair where `m` is an integer `≥ 2` and `P` is a non-empty, finite set of\ndistinct prime numbers, such that the sum of the reciprocals of the primes in `P` equals `1 - 1/m`.\n-/\ndef erdos313Solutions : Set (ℕ × Finset ℕ) :=\n  {(m, P) | 2 ≤ m ∧ P.Nonempty ∧ (∀ p ∈ P, p.Prime) ∧ ∑ p ∈ P, (1 : ℚ) / p = 1 - 1 / m}\n\n/--\nAre there infinitely many pairs `(m, P)` where `m ≥ 2` is an integer\nand `P` is a set of distinct primes such that the following equation holds:\n$\\sum_{p \\in P} \\frac{1}{p} = 1 - \\frac{1}{m}$?\n-/\n@[category research open, question, AMS 11]\ntheorem erdos_313 : erdos313Solutions.Infinite := by\n  sorry\n\n@[category test, AMS 11]\ntheorem erdos_313.variants.solution_6_2_3 : (6, {2, 3}) ∈ erdos313Solutions := by\n  norm_num [erdos313Solutions]\n\n@[category test, AMS 11]\ntheorem erdos_313.variants.solution_42_2_3_7 : (42, {2, 3, 7}) ∈ erdos313Solutions := by\n  norm_num [erdos313Solutions]\n\n/--\nAn integer `n` is a **primary pseudoperfect number** if it is the denominator `m` in a\nsolution `(m, P)` to the Erdős 313 problem.\n-/\ndef IsPrimaryPseudoperfect (n : ℕ) : Prop := ∃ P, (n, P) ∈ erdos313Solutions\n\n/--\nIt is conjectured that the set of primary pseudoperfect numbers is infinite.\n-/\n@[category research open, AMS 11]\ntheorem erdos_313.variants.primary_pseudoperfect_are_infinite :\n    Set.Infinite {n | IsPrimaryPseudoperfect n} := by\n  sorry\n\n/--\nThere are at least 8 primary pseudoperfect numbers. The first eight terms of\n[A54377](https://oeis.org/A54377) are exhibited together with their explicit\nprime decompositions.\n-/\n@[category textbook, AMS 11]\ntheorem erdos_313.variants.exists_at_least_eight_primary_pseudoperfect :\n    8 ≤ (Set.encard {n | IsPrimaryPseudoperfect n}) := by\n  let S : Finset ℕ :=\n    {2, 6, 42, 1806, 47058, 2214502422, 52495396602,\n      8490421583559688410706771261086}\n  have hS : (↑S : Set ℕ) ⊆ {n | IsPrimaryPseudoperfect n} := by\n    intro x hx\n    simp only [S, Finset.coe_insert, Finset.coe_singleton, Set.mem_insert_iff,\n      Set.mem_singleton_iff] at hx\n    rcases hx with rfl | rfl | rfl | rfl | rfl | rfl | rfl | rfl\n    · exact ⟨{2}, by norm_num [erdos313Solutions]⟩\n    · exact ⟨{2, 3}, by norm_num [erdos313Solutions]⟩\n    · exact ⟨{2, 3, 7}, by norm_num [erdos313Solutions]⟩\n    · exact ⟨{2, 3, 7, 43}, by norm_num [erdos313Solutions]⟩\n    · exact ⟨{2, 3, 11, 23, 31}, by norm_num [erdos313Solutions]⟩\n    · exact ⟨{2, 3, 11, 23, 31, 47059}, by norm_num [erdos313Solutions]⟩\n    · exact ⟨{2, 3, 11, 17, 101, 149, 3109}, by norm_num [erdos313Solutions]⟩\n    · exact ⟨{2, 3, 11, 23, 31, 47059, 2217342227, 1729101023519}, by\n        refine ⟨by decide, by decide, ?_, ?_⟩\n        · intro p hp\n          fin_cases hp <;> native_decide\n        · native_decide⟩\n  calc (8 : ℕ∞)\n      = ((S.card : ℕ) : ℕ∞) := by decide\n    _ = (↑S : Set ℕ).encard := (Set.encard_coe_eq_coe_finsetCard S).symm\n    _ ≤ Set.encard {n | IsPrimaryPseudoperfect n} := Set.encard_le_encard hS\n\nend Erdos313\n",
  "statement_hash": "bfdef1b174951b5640c59ca90cabb55b8279c87776fdfc837effb4e8d5dbc7fc",
  "toolchain": "leanprover/lean4:v4.33.1",
  "upstream_commit": "f9b3868d5ca994a7bf95039bcec05338c0c21e2f",
  "workspace": "formal-conjectures",
  "field": "math",
  "formalization": "formal",
  "verification": "lean-kernel",
  "license": "Apache-2.0",
  "attribution": "google-deepmind/formal-conjectures contributors",
  "metric_name": null,
  "metric_direction": null,
  "critiques": [],
  "public_partial_proofs": [],
  "research_threads": [],
  "instructions": "Read research_threads first: other people's public repositories and what they already tried. Write Solution.lean starting from challenge_source. Keep every definition identical, prove decl_name with exactly the same type, no sorry in its dependency closure, no new axioms, no native_decide, no metaprogramming. Submit with POST /api/v1/submissions."
}