{
  "id": "3520",
  "ident": "NS.03520",
  "slug": "erdos-887",
  "title": "Erdős Problem 887",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "Is there an absolute constant $K$ such that, for every $C > 0$, if $n$ is sufficiently large then\n$n$ has at most $K$ divisors in $(n^{\\frac{1}{2}}, n^{\\frac{1}{2}} + C n^{\\frac{1}{4}})$.",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [
    "question"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos887.erdos_887.parts.i",
  "statement_lean": "theorem erdos_887.parts.i : ∀ C > (0 : ℝ), ∀ᶠ n in atTop,\n    #{ d ∈ Ioo ⌊√n⌋₊ ⌈√n + C * n^((1 : ℝ) / 4)⌉₊ | d ∣ n } ≤ erdos_887.parts.i.answer",
  "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 887\n\n*References:*\n* [erdosproblems.com/887](https://www.erdosproblems.com/887)\n* [ErRo97] Erdős, Paul and Rosenfeld, Moshe, The factor-difference set of integers. Acta Arith. (1997), 353--359.\n-/\n\n@[expose] public section\n\nopen Filter Finset Real\nnamespace Erdos887\n\ndef erdos_887.parts.i.answer : ℕ := sorry\n\n/--\nIs there an absolute constant $K$ such that, for every $C > 0$, if $n$ is sufficiently large then\n$n$ has at most $K$ divisors in $(n^{\\frac{1}{2}}, n^{\\frac{1}{2}} + C n^{\\frac{1}{4}})$.\n-/\n@[category research open, question value, AMS 11]\ntheorem erdos_887.parts.i : ∀ C > (0 : ℝ), ∀ᶠ n in atTop,\n    #{ d ∈ Ioo ⌊√n⌋₊ ⌈√n + C * n^((1 : ℝ) / 4)⌉₊ | d ∣ n } ≤ erdos_887.parts.i.answer := by\n  sorry\n\n/--\nIs there an absolute constant $K$ such that, for every $C > 0$, if $n$ is sufficiently large then\n$n$ has at most $K$ divisors in $(n^{\\frac{1}{2}}, n^{\\frac{1}{2}} + C n^{\\frac{1}{4}})$.\n-/\n@[category research open, AMS 11]\ntheorem erdos_887.parts.ii : ∃ K, ∀ C > (0 : ℝ), ∀ᶠ n in atTop,\n    #{ d ∈ Ioo ⌊√n⌋₊ ⌈√n + C * n^((1 : ℝ) / 4)⌉₊ | d ∣ n } ≤ K := by\n  sorry\n\n/--\nA question of Erdős and Rosenfeld, who proved that there are infinitely many $n$ with (at least)\n$4$ divisors in $(n^{\\frac{1}{2}}, n^{\\frac{1}{2}} + cn^{\\frac{1}{4}})$.\n-/\n@[category research solved, AMS 11]\ntheorem erdos_887.variants.rosenfeld_infinite : ∃ C > (0 : ℝ),\n    Infinite {n : ℕ | 4 ≤ #{ d ∈ Ioo ⌊√n⌋₊ ⌈√n + C * n^((1 : ℝ) / 4)⌉₊ | d ∣ n }} := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/--\nErdős and Rosenfeld ask whether $4$ is the best possible $K$ for the infinitude of $n$\nwith (at least) $K$ divisors in $(n^{\\frac{1}{2}}, n^{\\frac{1}{2}} + C n^{\\frac{1}{4}})$, for some\nconstant $C > 0$. The constant cannot be taken to be $1$. Distinct divisors $d > \\sqrt{n}$ give\ndistinct integers $d + n/d$, and a divisor in the interval has\n$2\\sqrt{n} < d + n/d < 2\\sqrt{n} + C^2$, so for $C = 1$ there is at most one such divisor.\n\nThe answer is no. In a [forum post](https://www.erdosproblems.com/forum/thread/887#post-7374)\n(July 2026), m-czech showed that for $C = 31$ infinitely many $n$ have $5$ divisors in the\ninterval. The construction is $n = (x^2 - 1)(x^2 - 4)(x^2 - 16)(x^2 - 49)$ with\n$z^2 = 56 x^2 + 65$.\n-/\n@[category research solved, AMS 11, formal_proof using lean4 at\n  \"https://github.com/mnn31/erdos-lean/blob/5cb725981b3ad137103ef908eb6ecff9e7ed9bdf/ErdosLean/Erdos887.lean#L538\"]\ntheorem erdos_887.variants.rosenfeld_4 :\n    ¬ IsGreatest {K | ∃ C > (0 : ℝ),\n      Infinite {n : ℕ | K ≤ #{ d ∈ Ioo ⌊√n⌋₊ ⌈√n + C * n^((1 : ℝ) / 4)⌉₊ | d ∣ n }}} 4 := by\n  sorry\n\nend Erdos887\n",
  "statement_hash": "e283690c2df8bfe0ec822a829726416e567f7875bcc60ede246401cdbb2d5c3e",
  "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."
}