{
  "id": "3528",
  "ident": "NS.03528",
  "slug": "erdos-889",
  "title": "Erdős Problem 889",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "Let $v(n,k)$ count the prime factors of $n+k$ which\ndo not divide $n+i$ for $0\\leq i < k$. Is it true that\n$v_0(n)=\\max_{k\\geq 0}v(n,k)\\to \\infty$ as $n\\to \\infty$?",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [],
  "collection": "erdos",
  "source_url": "https://www.erdosproblems.com/889",
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos889.erdos_889",
  "statement_lean": "theorem erdos_889 : Tendsto v₀ atTop (𝓝 ⊤)",
  "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 889\n\n*Reference:* [erdosproblems.com/889](https://www.erdosproblems.com/889)\n-/\n\n@[expose] public section\n\nopen Finset Nat Filter Topology\n\nnamespace Erdos889\n\n/--\n$v(n,k)$ counts the prime factors of $n+k$ which do not divide $n+i$\nfor all $0 \\le i < k$.\n-/\ndef v (n k : ℕ) : ℕ :=\n  ((n + k).primeFactors.filter (fun p =>\n    ∀ i ∈ range k, ¬ p ∣ n + i)).card\n\n/--\n$v_0(n)$ is the supremum of $v(n,k)$ for all $k \\ge 0$.\n-/\nnoncomputable def v₀ (n : ℕ) : ℕ∞ :=\n  ⨆ k, (v n k : ℕ∞)\n\n/--\nLet $v(n,k)$ count the prime factors of $n+k$ which\ndo not divide $n+i$ for $0\\leq i < k$. Is it true that\n$v_0(n)=\\max_{k\\geq 0}v(n,k)\\to \\infty$ as $n\\to \\infty$?\n-/\n@[category research open, AMS 11]\ntheorem erdos_889 : Tendsto v₀ atTop (𝓝 ⊤) := by\n  sorry\n\n/--\n$v_0(n) > 1$ for all $n$ except $n$ = 0, 1, 2, 3, 4, 7, 8, 16\n\n[ErSe67] Erdős, P. and Selfridge, J. L., Some problems on the prime factors of consecutive integers. Illinois J. Math. (1967), 428--430.\n-/\n@[category research solved, AMS 11]\ntheorem erdos_889.variants.v0_gt_1 :\n    ∀ n : ℕ, n ∉ ({0, 1, 2, 3, 4, 7, 8, 16} : Finset ℕ) → 1 < v₀ n := by\n  sorry\n\n/--\n$v_l(n)$ is the supremum of $v(n,k)$ for all $k \\ge l$\n-/\nnoncomputable def v_l (l n : ℕ) : ℕ∞ :=\n  ⨆ k ≥ l, (v n k : ℕ∞)\n\n/--\nLet $v_l(n) = \\max_{k\\geq l} v(n,k)$. For every fixed $l$,\n$v_l(n) \\to \\infty$ as $n \\to \\infty$\n\n[ErSe67] Erdős, P. and Selfridge, J. L., Some problems on the prime factors of consecutive integers. Illinois J. Math. (1967), 428--430.\n-/\n@[category research open, AMS 11]\ntheorem erdos_889.variants.general :\n    ∀ l, Tendsto (v_l l) atTop (𝓝 ⊤) := by\n  sorry\n\n/--\nDoes $v_1(n) = 1$ have finite solutions?\n\n[ErSe67] Erdős, P. and Selfridge, J. L., Some problems on the prime factors of consecutive integers. Illinois J. Math. (1967), 428--430.\n-/\n@[category research open, question, AMS 11]\ntheorem erdos_889.variants.v1_eq_1_finite :\n    {n | v_l 1 n = 1}.Finite := by\n  sorry\n\n/--\n$V(n,k)$ is the number of primes $p$ such that\n$p^\\alpha$ exactly divides $n+k$ and\nfor all $0 \\le i < k$, $p^\\alpha$ does not divide $n+i$,\nwhere $\\alpha$ is the multiplicity of $p$ in the factorization of $n+k$.\n-/\ndef V (n k : ℕ) : ℕ :=\n  ((n + k).primeFactors.filter (fun p =>\n    ∀ i ∈ range k, ¬ p ^ ((n + k).factorization p) ∣ n + i)).card\n\n/--\n$V_l(n)$ is the supremum of $V(n,k)$ for all $k \\ge l$\n-/\nnoncomputable def V_l (l n : ℕ) : ℕ∞ :=\n  ⨆ k ≥ l, (V n k : ℕ∞)\n\nset_option linter.style.formal_proof_palomar false in\n/--\nDoes $V_1(n) = 1$ have finite solutions?\n\nThis is a modification of `erdos_889.variants.v1_eq_1_finite`,\nwhich might make it more amenable to attack according to [ErSe67].\n\nKenta Kitamura (KitaKen1 on GitHub) has given a Lean proof\n([erdos-889-capital-v1-finite](https://github.com/KitaKen1/erdos-889-capital-v1-finite))\nthat there are only finitely many $n$ with $V_1(n) = 1$.\n\n[ErSe67] Erdős, P. and Selfridge, J. L., Some problems on the prime factors of consecutive integers. Illinois J. Math. (1967), 428--430.\n-/\n@[category research solved, question, AMS 11,\n  formal_proof using lean4 at\n    \"https://github.com/KitaKen1/erdos-889-capital-v1-finite/blob/44d38dd7f618dbaa0b08fb976c0378b4897021cd/lean/Erdos889V1FiniteFC.lean#L999-L1004\"]\ntheorem erdos_889.variants.V1_eq_1_finite :\n    {n | V_l 1 n = 1}.Finite := by\n  sorry\n\nend Erdos889\n",
  "statement_hash": "e9325f04830a85682bdba9eb950dd2df6451744f2e79554d4ae892429a289d69",
  "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."
}