{
  "id": "3791",
  "ident": "NS.03791",
  "slug": "erdos-964",
  "title": "Erdős Problem 964",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Let $\\tau(n)$ count the number of divisors of $n$. Is the sequence\n$$\\frac{\\tau(n+1)}{\\tau(n)}$$\neverywhere dense in $(0,\\infty)$?\n\nThe answer is yes, proved by Eberhard [Eb25].",
  "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": "Erdos964.erdos_964",
  "statement_lean": "theorem erdos_964 : Set.Ioi (0 : ℝ) ⊆ closure (tauRatio '' Set.Ici 1)",
  "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 964\n\n*References:*\n- [erdosproblems.com/964](https://www.erdosproblems.com/964)\n- [Er86b] Erdős, P., *Some problems on number theory*. Proceedings of the seventeenth Southeastern\n  international conference on combinatorics, graph theory, and computing (Boca Raton, Fla.,\n  1986), Congr. Numer. 54 (1986), 225-244.\n- [Eb25] Eberhard, S., *Ratios of consecutive values of the divisor function*.\n  [arXiv:2505.00727](https://arxiv.org/abs/2505.00727) (2025).\n-/\n\n@[expose] public section\n\nopen scoped ArithmeticFunction.sigma\n\nnamespace Erdos964\n\n/-- $\\tau(n+1)/\\tau(n)$ as a real number, where $\\tau = \\sigma_0$ counts divisors. For $n = 0$\nthis is the junk value $0$, so the statements below use $n \\geq 1$. -/\nnoncomputable def tauRatio (n : ℕ) : ℝ := (σ 0 (n + 1) : ℝ) / (σ 0 n : ℝ)\n\n/-- For $n \\geq 1$ the ratio $\\tau(n+1)/\\tau(n)$ is positive. -/\n@[category API, AMS 11]\ntheorem tauRatio_pos {n : ℕ} (hn : 0 < n) : 0 < tauRatio n := by\n  unfold tauRatio\n  have h1 : 0 < σ 0 (n + 1) := ArithmeticFunction.sigma_pos_iff.2 (Nat.succ_pos n)\n  have h2 : 0 < σ 0 n := ArithmeticFunction.sigma_pos_iff.2 hn\n  exact div_pos (Nat.cast_pos.2 h1) (Nat.cast_pos.2 h2)\n\nset_option linter.style.formal_proof_palomar false in\n/--\nLet $\\tau(n)$ count the number of divisors of $n$. Is the sequence\n$$\\frac{\\tau(n+1)}{\\tau(n)}$$\neverywhere dense in $(0,\\infty)$?\n\nThe answer is yes, proved by Eberhard [Eb25].\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/Erdos964.lean#L1559\"]\ntheorem erdos_964 : Set.Ioi (0 : ℝ) ⊆ closure (tauRatio '' Set.Ici 1) := by\n  sorry\n\n/--\nEberhard [Eb25] proved that the ratios $\\tau(n+1)/\\tau(n)$ attain every positive rational value\ninfinitely many times. Since the positive rationals are dense in $(0,\\infty)$, this implies\n`erdos_964`.\n-/\n@[category research solved, AMS 11]\ntheorem erdos_964.variants.eberhard (q : ℚ) (hq : 0 < q) :\n    {n : ℕ | 0 < n ∧ tauRatio n = q}.Infinite := by\n  sorry\n\nend Erdos964\n",
  "statement_hash": "80282aff041c5c9233af044d5679d73f346130586f393f28be506979e80acdd7",
  "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."
}