{
  "id": "3659",
  "ident": "NS.03659",
  "slug": "erdos-931",
  "title": "Erdős Problem 931",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "Let $k_1 \\geq k_2 \\geq 3$. Are there only finitely many $n_2\\geq n_1 + k_1$\nsuch that\n$$\n  \\prod_{1\\leq i\\leq k_1}(n_1 + i)\\ \\text{and}\\ \\prod_{1\\leq j\\leq k_2} (n_2 + j)\n$$\nhave the same prime factors?",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [
    "question"
  ],
  "collection": "erdos",
  "source_url": "https://www.erdosproblems.com/931",
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos931.erdos_931",
  "statement_lean": "theorem erdos_931 : ∀ᵉ (k₁ : ℕ) (k₂ ≥ 3), k₂ ≤ k₁ →\n    { (n₁, n₂) | n₁ + k₁ ≤ n₂ ∧\n      (∏ i ∈ Finset.Icc 1 k₁, (n₁ + i)).primeFactors =\n      (∏ j ∈ Finset.Icc 1 k₂, (n₂ + j)).primeFactors }.Finite",
  "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 931\n\n*Reference:* [erdosproblems.com/931](https://www.erdosproblems.com/931)\n-/\n\n@[expose] public section\n\nnamespace Erdos931\n\n/--\nLet $k_1 \\geq k_2 \\geq 3$. Are there only finitely many $n_2\\geq n_1 + k_1$\nsuch that\n$$\n  \\prod_{1\\leq i\\leq k_1}(n_1 + i)\\ \\text{and}\\ \\prod_{1\\leq j\\leq k_2} (n_2 + j)\n$$\nhave the same prime factors?\n-/\n@[category research open, question, AMS 11]\ntheorem erdos_931 : ∀ᵉ (k₁ : ℕ) (k₂ ≥ 3), k₂ ≤ k₁ →\n    { (n₁, n₂) | n₁ + k₁ ≤ n₂ ∧\n      (∏ i ∈ Finset.Icc 1 k₁, (n₁ + i)).primeFactors =\n      (∏ j ∈ Finset.Icc 1 k₂, (n₂ + j)).primeFactors }.Finite := by\n  sorry\n\n/--\nErdős thought perhaps if the two products have the same factors then\n$n_2 > 2(n_1 + k_1)$.\nIt is an open question whether this is true when allowing a finite number of counterexamples.\n-/\n@[category research open, question, AMS 11]\ntheorem erdos_931.variants.additional_condition : ∀ᵉ (k₁ : ℕ) (k₂ ≥ 3), k₂ ≤ k₁ →\n    {(n₁, n₂) | n₁ + k₁ ≤ n₂ ∧ n₂ ≤ 2 * (n₁ + k₁) ∧\n      (∏ i ∈ Finset.Icc 1 k₁, (n₁ + i)).primeFactors =\n      (∏ j ∈ Finset.Icc 1 k₂, (n₂ + j)).primeFactors}.Finite := by\n  sorry\n\n/--\nIn fact there exist counterexamples, like this one found by AlphaProof.\n-/\n@[category research solved, AMS 11]\ntheorem erdos_931.variants.additional_condition_nonempty : ∃ (k₁ k₂ : ℕ), ∃ (_h₁ : k₂ ≤ k₁), ∃ (_h₂ : 3 ≤ k₂),\n  {(n₁, n₂) | n₁ + k₁ ≤ n₂ ∧ n₂ ≤ 2 * (n₁ + k₁) ∧\n      (∏ i ∈ Finset.Icc 1 k₁, (n₁ + i)).primeFactors =\n      (∏ j ∈ Finset.Icc 1 k₂, (n₂ + j)).primeFactors}.Nonempty := by\n  use 10, 3, (by norm_num), (by norm_num)\n  use (0, 13)\n  norm_num [Finset.prod_Icc_succ_top]\n  norm_num +decide [Nat.primeFactors, Nat.primeFactorsList]\n\n/--\nErdős was unable to prove that if the two products have the same factors\nthen there must exist a prime between $n_1$ and $n_2$.\n-/\n@[category research open, AMS 11]\ntheorem erdos_931.variants.exists_prime (k₁ k₂ n₁ n₂ : ℕ) (h₁ : k₂ ≤ k₁) (h₂ : 3 ≤ k₂)\n    (h₃ : n₁ + k₁ ≤ n₂) (h₄ : (∏ i ∈ Finset.Icc 1 k₁, (n₁ + i)).primeFactors =\n      (∏ j ∈ Finset.Icc 1 k₂, (n₂ + j)).primeFactors) :\n    ∃ (p : ℕ), p.Prime ∧ n₁ ≤ p ∧ p ≤ n₂ := by\n  sorry\n\nend Erdos931\n",
  "statement_hash": "02bb0bb1614a85f9f9354004cac656e12139d92d8604d79e01ade75d6b1bbd90",
  "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."
}