{
  "id": "3828",
  "ident": "NS.03828",
  "slug": "erdos-975",
  "title": "Erdős Problem 975",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "For an irreducible polynomial $f \\in \\mathbb{Z}[x]$ with $f(n) \\ge 1$ for sufficiently large $n$,\ndoes there exists a constant $c = c(f) > 0$ such that\n$\\sum_{n \\le x} \\tau(f(n)) \\approx c \\cdot x \\log x$?\n\nNote that it is unclear whether the polynomial should have integer coefficients or merely be\ninteger-valued. We assume the former.",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [
    "question"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos975.erdos_975",
  "statement_lean": "theorem erdos_975 :\n    ∀ f : ℤ[X], f.natDegree ≠ 0 → Irreducible f → (∀ᶠ n in atTop, 1 ≤ f.eval n) →\n    ∃ c > (0 : ℝ), Tendsto (fun x ↦ Erdos975Sum f x / (x * log x)) atTop (𝓝 c)",
  "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/-!\n# Erdős Problem 975\n\n*References:*\n - [erdosproblems.com/975](https://www.erdosproblems.com/975)\n - [Va39] van der Corput, J. G., Une in\\'egalit\\'e{} relative au nombre des diviseurs. Nederl. Akad. Wetensch., Proc. (1939), 547--553.\n - [Er52b] Erd\\\"os, P., On the sum {$\\sum^x_{k=1} d(f(k))$}. J. London Math. Soc. (1952), 7--15.\n - [Ho63] Hooley, Christopher, On the number of divisors of a quadratic polynomial. Acta Math. (1963), 97--114.\n - [Mc95] McKee, James, On the average number of divisors of quadratic polynomials. Math. Proc. Cambridge Philos. Soc. (1995), 389--392.\n - [Mc97] McKee, James, A note on the number of divisors of quadratic polynomials. (1997), 275--281.\n - [Mc99] McKee, James, The average number of divisors of an irreducible quadratic polynomial. Math. Proc. Cambridge Philos. Soc. (1999), 17--22.\n - [T] T. Tao, Erdos' divisor bound, https://terrytao.wordpress.com/2011/07/23/erdos-divisor-bound/\n-/\n\n@[expose] public section\n\nopen Filter Real Polynomial\nopen scoped ArithmeticFunction.sigma Topology\n\nnamespace Erdos975\n\n/-- Sum of $\\tau(f(n))$ from `0` to `⌊x⌋` for a polynomial $f \\in \\mathbb{Z}[X]$.\n\nHere $\\tau$ is the divisor counting function, which is `σ 0` in mathlib.\nAlso, for simplicity, we use `Nat.floor` to convert rational values to natural numbers, instead of\ndealing with negative values. -/\nnoncomputable def Erdos975Sum (f : ℤ[X]) (x : ℝ) : ℝ :=\n  ∑ n ≤ ⌊x⌋₊, σ 0 ⌊f.eval ↑n⌋₊\n\n/--\nFor an irreducible polynomial $f \\in \\mathbb{Z}[x]$ with $f(n) \\ge 1$ for sufficiently large $n$,\ndoes there exists a constant $c = c(f) > 0$ such that\n$\\sum_{n \\le x} \\tau(f(n)) \\approx c \\cdot x \\log x$?\n\nNote that it is unclear whether the polynomial should have integer coefficients or merely be\ninteger-valued. We assume the former. -/\n@[category research open, question, AMS 11]\ntheorem erdos_975 :\n    ∀ f : ℤ[X], f.natDegree ≠ 0 → Irreducible f → (∀ᶠ n in atTop, 1 ≤ f.eval n) →\n    ∃ c > (0 : ℝ), Tendsto (fun x ↦ Erdos975Sum f x / (x * log x)) atTop (𝓝 c) := by\n  sorry\n\n/--\nThe correctness of the growth rate is shown in [Va39] (lower bound) and [Er52b] (upper bound).\n-/\n@[category research solved, AMS 11]\ntheorem erdos_975.variants.upper_bound (f : ℤ[X]) (hf : Irreducible f)\n    (hf_pos : ∀ᶠ n in atTop, 1 ≤ f.eval n) : Erdos975Sum f =O[atTop] (fun x ↦ x * log x) := by\n  sorry\n\n/-- Lower bound for the growth rate of `Erdos975Sum`, shown in [Va39]. -/\n@[category research solved, AMS 11]\ntheorem erdos_975.variants.lower_bound (f : ℤ[X]) (hf : Irreducible f) (hfdeg : f.natDegree ≠ 0)\n    (hf_pos : ∀ᶠ n in atTop, 1 ≤ f.eval n) :\n    (fun x ↦ x * log x) =O[atTop] Erdos975Sum f := by\n  sorry\n\n-- The constant is only known in terms of Hurwitz class numbers, which are not yet formalized\n-- (see the `TODO` below), so the answer stays a placeholder.\ndef erdos_975.variants.quadratic.answer (f : ℤ[X]) : ℝ := sorry\n\n/--\nWhen $f$ is an irreducible quadratic polynomial, the question is answered first by Hooley [Ho63].\nMore compact expression of the constant in terms of Hurwitz class numbers (when $a = 1$)\nis given by McKey in [Mc95], [Mc97], [Mc99].\n\nTODO: formalize Hurwitz class numbers and the expression of the constant in terms of them.\n-/\n@[category research solved, question value, AMS 11]\ntheorem erdos_975.variants.quadratic (f : ℤ[X]) (hf : Irreducible f)\n    (hf_pos : ∀ᶠ n : ℕ in atTop, 1 ≤ f.eval ↑n) (hf_degree : f.degree = 2) (c : ℝ) :\n    c = erdos_975.variants.quadratic.answer f → 0 < c ∧ Tendsto\n      (fun x ↦ Erdos975Sum f x / (x * log x)) atTop (𝓝 c) := by\n  sorry\n\n/--\nMore concrete example for $f(n) = n^2 + 1$, where the asymptote is\n$\\sum_{n \\le x} \\tau(n^2 + 1) \\sim \\frac{3}{\\pi} x \\log x + O(x)$. See Tao's blog [T].\n-/\n@[category research solved, AMS 11]\ntheorem erdos_975.variants.n2_plus_1_strong :\n    (fun x ↦ Erdos975Sum (X ^ 2 + 1) x - (3 / π) * x * log x) =O[atTop] id := by\n  sorry\n\n/-- Asymptotics for `Erdos975Sum` with $f(X) = X^2 + 1$. -/\n@[category research solved, AMS 11]\ntheorem erdos_975.variants.n2_plus_1 :\n    ∃ c > (0 : ℝ), Tendsto (fun x ↦ Erdos975Sum (X ^ 2 + 1) x / (x * log x)) atTop (𝓝 c) := by\n  sorry\n\nend Erdos975\n",
  "statement_hash": "ab0a5aa22affa1b4c85716cd01eafbff80320b44afb5a99d19eb6dc3dcd9fac8",
  "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."
}