{
  "id": "2167",
  "ident": "NS.02167",
  "slug": "erdos-444",
  "title": "Erdős Problem 444",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Let $A\\subseteq\\mathbb{N}$ be infinite and $d_A(n)$ count the number of $a\\in A$ which divide $n$.\nIs it true that, for every $k$,\n$$\\limsup_{x\\to \\infty} \\frac{\\max_{n<x}d_A(n)}{\\left(\\sum_{n\\in A\\cap[1,x)}\\frac{1}{n}\\right)^k}\n=\\infty?$$\n\nThis is asked in [ErGr80, p.88]. The answer is yes, proved by Erdős and Sárközy [ErSa80].\n\nThe maximum is over $1 \\le n < x$, since every $a \\in A$ divides $0$.",
  "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": "Erdos444.erdos_444",
  "statement_lean": "theorem erdos_444 : ∀ A : Set ℕ, A.Infinite → ∀ k : ℕ,\n    atTop.limsup (fun x : ℝ ↦ (((Ico 1 ⌈x⌉₊).sup (divisorCount A) /\n      (∑ n ∈ Ico 1 ⌈x⌉₊ with n ∈ A, (n : ℝ)⁻¹) ^ k : ℝ) : EReal)) = ⊤",
  "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 444\n\n*References:*\n- [erdosproblems.com/444](https://www.erdosproblems.com/444)\n- [ErGr80] Erdős, P. and Graham, R., *Old and new problems and results in combinatorial number\n  theory*. Monographies de L'Enseignement Mathematique (1980).\n- [ErSa80] Erdős, P. and Sárközy, A., *Some asymptotic formulas on generalized divisor functions.\n  IV*. Studia Sci. Math. Hungar. (1980), 467-479.\n-/\n\n@[expose] public section\n\nopen Filter Finset\n\nnamespace Erdos444\n\nopen scoped Classical in\n/-- $d_A(n)$ is the number of $a \\in A$ which divide $n$. Only the positive divisors of $n$ are\ncounted, so $0 \\in A$ does not change $d_A(n)$ for $n \\ge 1$. -/\nnoncomputable def divisorCount (A : Set ℕ) (n : ℕ) : ℕ :=\n  #{a ∈ n.divisors | a ∈ A}\n\n@[category test, AMS 11]\ntheorem divisorCount_zero (A : Set ℕ) : divisorCount A 0 = 0 := by\n  simp [divisorCount]\n\n@[category test, AMS 11]\ntheorem divisorCount_zero_two_three_four_twelve : divisorCount {0, 2, 3, 4} 12 = 3 := by\n  simp [divisorCount, show Nat.divisors 12 = {1, 2, 3, 4, 6, 12} by decide, filter_insert]\n\nopen scoped Classical in\nset_option linter.style.formal_proof_palomar false in\n/--\nLet $A\\subseteq\\mathbb{N}$ be infinite and $d_A(n)$ count the number of $a\\in A$ which divide $n$.\nIs it true that, for every $k$,\n$$\\limsup_{x\\to \\infty} \\frac{\\max_{n<x}d_A(n)}{\\left(\\sum_{n\\in A\\cap[1,x)}\\frac{1}{n}\\right)^k}\n=\\infty?$$\n\nThis is asked in [ErGr80, p.88]. The answer is yes, proved by Erdős and Sárközy [ErSa80].\n\nThe maximum is over $1 \\le n < x$, since every $a \\in A$ divides $0$.\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/Erdos444.lean#L38\"]\ntheorem erdos_444 : ∀ A : Set ℕ, A.Infinite → ∀ k : ℕ,\n    atTop.limsup (fun x : ℝ ↦ (((Ico 1 ⌈x⌉₊).sup (divisorCount A) /\n      (∑ n ∈ Ico 1 ⌈x⌉₊ with n ∈ A, (n : ℝ)⁻¹) ^ k : ℝ) : EReal)) = ⊤ := by\n  sorry\n\nend Erdos444\n",
  "statement_hash": "95e937064bf39498eabe588f24b3dbb5f63c026a38708cd7f8d53929ca456419",
  "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."
}