{
  "id": "3410",
  "ident": "NS.03410",
  "slug": "erdos-856",
  "title": "Erdős Problem 856",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "Let $k\\geq 3$ and $f_k(N)$ be the maximum value of $\\sum_{n\\in A}\\frac{1}{n}$, where $A$ ranges\nover all subsets of $\\{1,\\ldots,N\\}$ which contain no subset of size $k$ with the same pairwise\nleast common multiple.\n\nEstimate $f_k(N)$.\n\nThis is the question of Erdős [Er70, p. 127]. We read \"estimate\" as\n$f_k(N) = \\Theta(\\text{answer})$ as $N \\to \\infty$, for each fixed $k$.",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [
    "question"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos856.erdos_856",
  "statement_lean": "theorem erdos_856 (k : ℕ) (hk : 3 ≤ k) :\n    f k =Θ[atTop] erdos_856.answer k",
  "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 856\n\n*References:*\n- [erdosproblems.com/856](https://www.erdosproblems.com/856)\n- [Er70] Erdős, P., *Some extremal problems in combinatorial number theory*. Mathematical Essays\n  Dedicated to A. J. Macintyre (1970), 123-133. [PDF](https://www.renyi.hu/~p_erdos/1970-21.pdf)\n- [TaZh25b] Tang, Q. and Zhang, S., *Harmonic LCM patterns and sunflower-free capacity*.\n  [arXiv:2512.20055](https://arxiv.org/abs/2512.20055) (2025).\n\nThe problem is closely related to the sunflower problem\n[erdosproblems.com/857](https://www.erdosproblems.com/857). The version with natural density in\nplace of the harmonic sum is [erdosproblems.com/536](https://www.erdosproblems.com/536).\n-/\n\n@[expose] public section\n\nopen Filter Asymptotics\n\nnamespace Erdos856\n\n/-- A finite set `A` of natural numbers contains `k` distinct elements with the same pairwise least\ncommon multiple: there is a subset `S ⊆ A` of size `k` and a number `L` such that\n`lcm a b = L` for all distinct `a, b ∈ S`. -/\ndef HasEqualLcmTuple (k : ℕ) (A : Finset ℕ) : Prop :=\n  ∃ S : Finset ℕ, S ⊆ A ∧ S.card = k ∧ ∃ L : ℕ, ∀ a ∈ S, ∀ b ∈ S, a ≠ b → Nat.lcm a b = L\n\n/-- $f_k(N)$ is the maximum of $\\sum_{n \\in A} 1/n$ over all $A \\subseteq \\{1, \\ldots, N\\}$ that\ncontain no `k` distinct elements with the same pairwise least common multiple.\n\nThe set of values is finite and contains `0` (for `A = ∅`) when `k ≥ 1`, so the `sSup` is a\nmaximum. -/\nnoncomputable def f (k N : ℕ) : ℝ :=\n  sSup {s : ℝ | ∃ A : Finset ℕ, A ⊆ Finset.Icc 1 N ∧ ¬ HasEqualLcmTuple k A ∧\n    s = ∑ n ∈ A, (n : ℝ)⁻¹}\n\n/-- Every `A ⊆ {1, …, N}` without `k` distinct elements with the same pairwise least common\nmultiple has harmonic sum at most `f k N`. -/\n@[category API, AMS 11]\ntheorem sum_le_f {k N : ℕ} {A : Finset ℕ} (hA : A ⊆ Finset.Icc 1 N)\n    (hfree : ¬ HasEqualLcmTuple k A) : ∑ n ∈ A, (n : ℝ)⁻¹ ≤ f k N := by\n  have hfin : {s : ℝ | ∃ A : Finset ℕ, A ⊆ Finset.Icc 1 N ∧ ¬ HasEqualLcmTuple k A ∧\n      s = ∑ n ∈ A, (n : ℝ)⁻¹}.Finite := by\n    refine ((Finset.Icc 1 N).powerset.finite_toSet.image\n      (fun A : Finset ℕ => ∑ n ∈ A, (n : ℝ)⁻¹)).subset ?_\n    rintro s ⟨B, hB, -, rfl⟩\n    exact ⟨B, Finset.mem_coe.2 (Finset.mem_powerset.2 hB), rfl⟩\n  exact le_csSup hfin.bddAbove ⟨A, hA, hfree, rfl⟩\n\n/-- The numbers $6$, $10$, $15$ have the same pairwise least common multiple $30$. -/\n@[category test, AMS 11]\ntheorem hasEqualLcmTuple_six_ten_fifteen : HasEqualLcmTuple 3 {6, 10, 15} :=\n  ⟨{6, 10, 15}, Finset.Subset.refl _, by decide, 30, by decide⟩\n\ndef erdos_856.answer : ℕ → ℕ → ℝ := sorry\n\n/--\nLet $k\\geq 3$ and $f_k(N)$ be the maximum value of $\\sum_{n\\in A}\\frac{1}{n}$, where $A$ ranges\nover all subsets of $\\{1,\\ldots,N\\}$ which contain no subset of size $k$ with the same pairwise\nleast common multiple.\n\nEstimate $f_k(N)$.\n\nThis is the question of Erdős [Er70, p. 127]. We read \"estimate\" as\n$f_k(N) = \\Theta(\\text{answer})$ as $N \\to \\infty$, for each fixed $k$.\n-/\n@[category research open, question value, AMS 11]\ntheorem erdos_856 (k : ℕ) (hk : 3 ≤ k) :\n    f k =Θ[atTop] erdos_856.answer k := by\n  sorry\n\n/--\nErdős [Er70, p. 127] notes that\n$$f_k(N) \\ll \\frac{\\log N}{\\log\\log N}.$$\n\nThe implied constant depends on $k$.\n-/\n@[category research solved, AMS 11]\ntheorem erdos_856.variants.erdos_upper (k : ℕ) (hk : 3 ≤ k) :\n    ∃ C > (0 : ℝ), ∀ᶠ N : ℕ in atTop, f k N ≤ C * (Real.log N / Real.log (Real.log N)) := by\n  sorry\n\n/-- The exponent $c_k = \\frac{k-2}{e\\,((k-2)!)^{1/(k-2)}}$ of [TaZh25b, Theorem 1.2] (called $b_k$\non the problem page, where $c_k$ denotes the upper exponent). -/\nnoncomputable def tangZhangExponent (k : ℕ) : ℝ :=\n  ((k : ℝ) - 2) / (Real.exp 1 * ((Nat.factorial (k - 2) : ℕ) : ℝ) ^ (1 / ((k : ℝ) - 2)))\n\n/--\nTang and Zhang [TaZh25b, Theorem 1.2] proved that, for fixed $k\\geq 3$ and as $N\\to\\infty$,\n$$f_k(N) \\geq (\\log N)^{c_k - o(1)}, \\qquad c_k = \\frac{k-2}{e\\,((k-2)!)^{1/(k-2)}}.$$\n\nThe $o(1)$ is stated with an arbitrary $\\varepsilon > 0$.\n-/\n@[category research solved, AMS 11]\ntheorem erdos_856.variants.tang_zhang_lower (k : ℕ) (hk : 3 ≤ k) (ε : ℝ) (hε : 0 < ε) :\n    ∀ᶠ N : ℕ in atTop, Real.log N ^ (tangZhangExponent k - ε) ≤ f k N := by\n  sorry\n\n/--\nTang and Zhang [TaZh25b, Corollary 1.7] proved, as $N\\to\\infty$,\n$$(\\log N)^{\\log(1.551)-o(1)}\\leq f_3(N)\\ll(\\log N)^{\\frac{3}{2^{2/3}}-1+o(1)}.$$\n\nThis is the lower bound, with the $o(1)$ stated with an arbitrary $\\varepsilon > 0$. Since\n$\\log(1.551) = 0.4389\\ldots$, it implies the site's $(\\log N)^{0.438}\\leq f_3(N)$ for large $N$.\n-/\n@[category research solved, AMS 11]\ntheorem erdos_856.variants.tang_zhang_three_lower (ε : ℝ) (hε : 0 < ε) :\n    ∀ᶠ N : ℕ in atTop, Real.log N ^ (Real.log 1.551 - ε) ≤ f 3 N := by\n  sorry\n\n/--\nTang and Zhang [TaZh25b, Corollary 1.7] proved, as $N\\to\\infty$,\n$$(\\log N)^{\\log(1.551)-o(1)}\\leq f_3(N)\\ll(\\log N)^{\\frac{3}{2^{2/3}}-1+o(1)}.$$\n\nThis is the upper bound, with the $o(1)$ and the implied constant absorbed into an arbitrary\n$\\varepsilon > 0$. The site rounds the exponent to $0.889$, but $\\frac{3}{2^{2/3}}-1=0.8898\\ldots$.\n-/\n@[category research solved, AMS 11]\ntheorem erdos_856.variants.tang_zhang_three_upper (ε : ℝ) (hε : 0 < ε) :\n    ∀ᶠ N : ℕ in atTop, f 3 N ≤ Real.log N ^ (3 / (2 : ℝ) ^ ((2 : ℝ) / 3) - 1 + ε) := by\n  sorry\n\nend Erdos856\n",
  "statement_hash": "7d7bcec4733a4290ec2c253d42a609c92393ff364d1673cc843269fe91608142",
  "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."
}