{
  "id": "2808",
  "ident": "NS.02808",
  "slug": "erdos-673",
  "title": "Erdős Problem 673",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Let $1=d_1<\\cdots <d_{\\tau(n)}=n$ be the divisors of $n$ and\n$$G(n) = \\sum_{1\\leq i<\\tau(n)}\\frac{d_i}{d_{i+1}}.$$\nIs it true that $G(n)\\to \\infty$ for almost all $n$?\n\nThe answer is yes: Tao observed that $\\tau(n/m)/m\\leq G(n)\\leq \\tau(n)$ for any $m\\mid n$ with\n$m>1$, so that $G(n)$ behaves very similarly to $\\tau(n)$. In [Er82e] Erdős recalls this\nconjecture and observes that it is indeed trivial that $G(n)\\to \\infty$ for almost all $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": "Erdos673.erdos_673.parts.i",
  "statement_lean": "theorem erdos_673.parts.i : ∀ C : ℝ, {n : ℕ | C < G n}.HasDensity 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 673\n\n*References:*\n- [erdosproblems.com/673](https://www.erdosproblems.com/673)\n- [Er79e] Erdős, Paul, _Some unconventional problems in number theory_. Astérisque (1979), 73-82.\n- [Er82e] Erdős, Paul, _Some of my favourite problems which recently have been solved_. (1982),\n  59--79.\n-/\n\n@[expose] public section\n\nopen Filter Asymptotics Real\n\nnamespace Erdos673\n\n/-- If $1=d_1<\\cdots <d_{\\tau(n)}=n$ are the divisors of $n$ (here `Nat.nth (· ∣ n) i` is\n$d_{i+1}$), then\n$$G(n) = \\sum_{1\\leq i<\\tau(n)}\\frac{d_i}{d_{i+1}}.$$ -/\nnoncomputable def G (n : ℕ) : ℝ :=\n  ∑ i : Fin (n.divisors.card - 1), (Nat.nth (· ∣ n) i : ℝ) / Nat.nth (· ∣ n) (i + 1)\n\nset_option linter.style.formal_proof_palomar false in\n/--\nLet $1=d_1<\\cdots <d_{\\tau(n)}=n$ be the divisors of $n$ and\n$$G(n) = \\sum_{1\\leq i<\\tau(n)}\\frac{d_i}{d_{i+1}}.$$\nIs it true that $G(n)\\to \\infty$ for almost all $n$?\n\nThe answer is yes: Tao observed that $\\tau(n/m)/m\\leq G(n)\\leq \\tau(n)$ for any $m\\mid n$ with\n$m>1$, so that $G(n)$ behaves very similarly to $\\tau(n)$. In [Er82e] Erdős recalls this\nconjecture and observes that it is indeed trivial that $G(n)\\to \\infty$ for almost all $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/Erdos673.lean#L914\"]\ntheorem erdos_673.parts.i : ∀ C : ℝ, {n : ℕ | C < G n}.HasDensity 1 := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/--\nCan one prove an asymptotic formula for $\\sum_{n\\leq X}G(n)$?\n\nIndeed $\\sum_{n\\leq X}G(n)\\sim X\\log X$.\n-/\n@[category research solved, AMS 11, formal_proof using lean4 at\n  \"https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos673.lean#L914\"]\ntheorem erdos_673.parts.ii :\n    (fun X : ℕ ↦ ∑ n ∈ Finset.Icc 1 X, G n) ~[atTop] fun X : ℕ ↦ (X : ℝ) * log X := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/-- Erdős writes it is 'easy' to prove $\\frac{1}{X}\\sum_{n\\leq X}G(n)\\to \\infty$. -/\n@[category research solved, AMS 11, formal_proof using lean4 at\n  \"https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos673.lean#L914\"]\ntheorem erdos_673.variants.average :\n    Tendsto (fun X : ℕ ↦ (∑ n ∈ Finset.Icc 1 X, G n) / X) atTop atTop := by\n  sorry\n\n/-- Tao observed that, for any divisor $m\\mid n$ with $m>1$,\n$\\frac{\\tau(n/m)}{m} \\leq G(n) \\leq \\tau(n)$. -/\n@[category textbook, AMS 11]\ntheorem erdos_673.variants.tao (n m : ℕ) (hn : 0 < n) (hm : 1 < m) (hmn : m ∣ n) :\n    ((n / m).divisors.card : ℝ) / m ≤ G n ∧ G n ≤ n.divisors.card := by\n  sorry\n\nend Erdos673\n",
  "statement_hash": "c49aeb30a4e29be1bdf72f94f1b2bb66eccfe4ed92e379635b09753eda7e4af4",
  "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."
}