{
  "id": "3315",
  "ident": "NS.03315",
  "slug": "erdos-824",
  "title": "Erdős Problem 824",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Let $h(x)$ count the number of integers $1\\leq a<b<x$ such that $(a,b)=1$ and\n$\\sigma(a)=\\sigma(b)$, where $\\sigma$ is the sum of divisors function. Is it true that\n$h(x)>x^{2-o(1)}$?\n\nThat is, is it true that for every $\\epsilon > 0$ we have $h(x) > x^{2-\\epsilon}$ for all large\n$x$? According to erdosproblems.com, Erdős [Er74b] proved that $\\limsup h(x)/x = \\infty$ and\nclaimed a similar proof for this problem.",
  "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": "Erdos824.erdos_824",
  "statement_lean": "theorem erdos_824 :\n    ∀ ε : ℝ, 0 < ε → ∀ᶠ x : ℕ in atTop, (x : ℝ) ^ (2 - ε) < (h x : ℝ)",
  "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 824\n\n*References:*\n- [erdosproblems.com/824](https://www.erdosproblems.com/824)\n- [Er59c] Erdős, P., *Remarks on number theory. II. Some problems on the $\\sigma$ function*.\n  Acta Arith. (1959), 171--177.\n- [Er74b] Erdős, P., *Remarks on some problems in number theory*. Math. Balkanica (1974),\n  197-202.\n- [PoPo16] Pollack, Paul and Pomerance, Carl, *Some problems of Erdős on the sum-of-divisors\n  function*. Trans. Amer. Math. Soc. Ser. B (2016), 1-26.\n- [LiZh26] Li, Shisheng and Zhuang, Zhong, *Coprime pairs with equal sum of divisors, assuming\n  smooth shifted primes*. Preprint (October 2026).\n  [github.com/daizisheng/erdos-824](https://github.com/daizisheng/erdos-824/blob/b4b7099bb8ab9c1c7fc61dae18a73cdbe503fe5a/paper/erdos824.pdf)\n- [OpenAI26] OpenAI, *Weighted dilation graphs, smooth shifted primes and totient fibers*.\n  OpenAI Math Release preprint (September 2026).\n  [github.com/openai/math](https://github.com/openai/math/blob/adc7f1241b42e322a6451854ab7e4b4c146bf78a/preprints/Weighted-Dilation-Graphs-Smooth-Shifted-Primes-and-Totient-Fibers-September-24-2026/paper.pdf)\n-/\n\n@[expose] public section\n\nopen Filter\nopen scoped ArithmeticFunction.sigma\n\nnamespace Erdos824\n\n/-- `h x` is the number of pairs of integers $1 \\leq a < b < x$ such that $(a, b) = 1$ and\n$\\sigma(a) = \\sigma(b)$, where $\\sigma$ is the sum of divisors function.\n\nWe take $x$ to be a natural number. For real $x$ the count equals `h ⌈x⌉`, so the asymptotic\nstatements below do not change. -/\ndef h (x : ℕ) : ℕ :=\n  ((Finset.Ico 1 x ×ˢ Finset.Ico 1 x).filter fun (a, b) ↦\n    a < b ∧ a.Coprime b ∧ σ 1 a = σ 1 b).card\n\n/-- `hSquarefree x` is the number of pairs of integers $1 \\leq a < b < x$ such that $a$ and $b$\nare squarefree and $\\sigma(a) = \\sigma(b)$. -/\ndef hSquarefree (x : ℕ) : ℕ :=\n  ((Finset.Ico 1 x ×ˢ Finset.Ico 1 x).filter fun (a, b) ↦\n    a < b ∧ Squarefree a ∧ Squarefree b ∧ σ 1 a = σ 1 b).card\n\nset_option linter.style.formal_proof_palomar false in\n/--\nLet $h(x)$ count the number of integers $1\\leq a<b<x$ such that $(a,b)=1$ and\n$\\sigma(a)=\\sigma(b)$, where $\\sigma$ is the sum of divisors function. Is it true that\n$h(x)>x^{2-o(1)}$?\n\nThat is, is it true that for every $\\epsilon > 0$ we have $h(x) > x^{2-\\epsilon}$ for all large\n$x$? According to erdosproblems.com, Erdős [Er74b] proved that $\\limsup h(x)/x = \\infty$ and\nclaimed a similar proof for this problem.\n-/\n@[category research solved, question, AMS 11,\n  formal_proof using lean4 at \"https://github.com/cadamcat/equal-divisor-sums-lean4/blob/6280393739de142f3c54160ce7083110ed55f194/Erdos824/Theorem.lean#L17\"]\ntheorem erdos_824 :\n    ∀ ε : ℝ, 0 < ε → ∀ᶠ x : ℕ in atTop, (x : ℝ) ^ (2 - ε) < (h x : ℝ) := by\n  sorry\n\n/--\nPollack and Pomerance [PoPo16, Section 6] proved that $h(x)/x \\to \\infty$, answering a question\nof Erdős [Er59c].\n-/\n@[category research solved, AMS 11]\ntheorem erdos_824.variants.pollack_pomerance :\n    Tendsto (fun x : ℕ ↦ (h x : ℝ) / (x : ℝ)) atTop atTop := by\n  sorry\n\n/--\nA similar question can be asked if the condition $(a,b)=1$ is replaced by the condition that $a$\nand $b$ are squarefree. Let $h'(x)$ count the number of squarefree integers $1\\leq a<b<x$ with\n$\\sigma(a)=\\sigma(b)$. Is it true that $h'(x)>x^{2-o(1)}$?\n-/\n@[category research open, question, AMS 11]\ntheorem erdos_824.variants.squarefree :\n    ∀ ε : ℝ, 0 < ε → ∀ᶠ x : ℕ in atTop, (x : ℝ) ^ (2 - ε) < (hSquarefree x : ℝ) := by\n  sorry\n\nend Erdos824\n",
  "statement_hash": "539880fbd99ea8da0f8ab1217bb46a4de5d0409f062dce133de553ad580ffd6c",
  "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."
}