{
  "id": "3840",
  "ident": "NS.03840",
  "slug": "erdos-977",
  "title": "Erdős Problem 977",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "If $P(m)$ is the greatest prime divisor of $m$, then is it true that\n$$\\frac{P(2^n-1)}{n}\\to \\infty$$\nas $n\\to \\infty$?\n\nSchinzel [Sc62] proved that $P(2^n-1)>2n$ for $n>12$. In [Er65b] Erdős also asks about $P(n!+1)$.\nStewart [St74b] proved that this conjecture is true if we restrict $n$ to those integers with\n$<\\frac{1}{\\log 2}\\log\\log n$ many prime factors.\n\nThis was proved in the affirmative by Stewart [St13], who proved that\n$P(2^n-1)\\gg n^{1+\\frac{1}{104\\log\\log n}}$ for all large $n$.",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [
    "question",
    "formal_proof"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos977.erdos_977",
  "statement_lean": "theorem erdos_977 :\n    Tendsto (fun n : ℕ ↦ (Nat.maxPrimeFac (2 ^ n - 1) : ℝ) / n) atTop atTop",
  "challenge_source": "/-\nCopyright 2026 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 977\n\n*References:*\n- [erdosproblems.com/977](https://www.erdosproblems.com/977)\n- [Er65b] Erdős, Paul, *Some recent advances and current problems in number theory*. Lectures on\n  Modern Mathematics, Vol. III (1965), 196-244.\n- [Sc62] Schinzel, A., *On primitive prime factors of $a^n-b^n$*. Proc. Cambridge Philos. Soc.\n  (1962), 555-562.\n- [St74b] Stewart, C. L., *The greatest prime factor of $a^n-b^n$*. Acta Arith. (1974/75),\n  427-433.\n- [St13] Stewart, Cameron L., *On divisors of Lucas and Lehmer numbers*. Acta Math. (2013),\n  291-314.\n- [MuWo02] Murty, Ram and Wong, Siman, *The $ABC$ conjecture and prime divisors of the Lucas and\n  Lehmer sequences*. (2002), 43-54.\n- [La21] L. Lai, *On the largest prime divisor of $n!+1$*. arXiv:2103.14894 (2021).\n-/\n\n@[expose] public section\n\nopen Filter\n\nnamespace Erdos977\n\nset_option linter.style.formal_proof_palomar false in\n/--\nIf $P(m)$ is the greatest prime divisor of $m$, then is it true that\n$$\\frac{P(2^n-1)}{n}\\to \\infty$$\nas $n\\to \\infty$?\n\nSchinzel [Sc62] proved that $P(2^n-1)>2n$ for $n>12$. In [Er65b] Erdős also asks about $P(n!+1)$.\nStewart [St74b] proved that this conjecture is true if we restrict $n$ to those integers with\n$<\\frac{1}{\\log 2}\\log\\log n$ many prime factors.\n\nThis was proved in the affirmative by Stewart [St13], who proved that\n$P(2^n-1)\\gg n^{1+\\frac{1}{104\\log\\log n}}$ for all large $n$.\n-/\n@[category research solved, question, AMS 11, formal_proof using lean4 at\n  \"https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos977.lean#L4271\"]\ntheorem erdos_977 :\n    Tendsto (fun n : ℕ ↦ (Nat.maxPrimeFac (2 ^ n - 1) : ℝ) / n) atTop atTop := by\n  sorry\n\n/-- Schinzel [Sc62] proved that $P(2^n-1)>2n$ for $n>12$. -/\n@[category research solved, AMS 11]\ntheorem erdos_977.variants.schinzel :\n    ∀ n : ℕ, 12 < n → 2 * n < Nat.maxPrimeFac (2 ^ n - 1) := by\n  sorry\n\n/-- Stewart [St13] proved that $P(2^n-1)\\gg n^{1+\\frac{1}{104\\log\\log n}}$ for all large $n$. -/\n@[category research solved, AMS 11]\ntheorem erdos_977.variants.stewart : ∃ c : ℝ, 0 < c ∧ ∀ᶠ n : ℕ in atTop,\n    c * (n : ℝ) ^ (1 + 1 / (104 * Real.log (Real.log n))) ≤ Nat.maxPrimeFac (2 ^ n - 1) := by\n  sorry\n\n/--\nIn [Er65b] Erdős also asks about $P(n!+1)$: is it true that $P(n!+1)/n\\to\\infty$? This appears to\nbe open still. Murty and Wong [MuWo02] proved that $P(n!+1)>(1+o(1))n\\log n$ assuming the abc\nconjecture.\n-/\n@[category research open, question, AMS 11]\ntheorem erdos_977.variants.factorial :\n    Tendsto (fun n : ℕ ↦ (Nat.maxPrimeFac (n.factorial + 1) : ℝ) / n) atTop atTop := by\n  sorry\n\n/--\nThe best-known unconditional result, due to Lai [La21], is that\n$$\\limsup \\frac{P(n!+1)}{n} \\geq 1+9\\log 2\\approx 7.238.$$\n-/\n@[category research solved, AMS 11]\ntheorem erdos_977.variants.lai : ∀ C : ℝ, C < 1 + 9 * Real.log 2 →\n    ∃ᶠ n : ℕ in atTop, C * n < Nat.maxPrimeFac (n.factorial + 1) := by\n  sorry\n\nend Erdos977\n",
  "statement_hash": "ff746d4fb88e69df42868e9094cde9ed5ecf0767779b25e3b9c8e5fa40706ef4",
  "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."
}