{
  "id": "2420",
  "ident": "NS.02420",
  "slug": "erdos-542",
  "title": "Erdős Problem 542",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Is it true that if $A\\subseteq\\{1,\\ldots,n\\}$ is a set such that $[a,b]>n$ for all $a\\neq b$,\nwhere $[a,b]$ is the least common multiple, then\n$$\\sum_{a\\in A}\\frac{1}{a}\\leq \\frac{31}{30}?$$\n\nThe answer is yes, proved by Schinzel and Szekeres [ScSz59]. The bound is best possible as\n$A=\\{2,3,5\\}$ demonstrates.",
  "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": "Erdos542.erdos_542.parts.i",
  "statement_lean": "theorem erdos_542.parts.i :\n    ∀ (n : ℕ) (A : Finset ℕ), IsLcmFree n A → ∑ a ∈ A, (1 : ℝ) / a ≤ 31 / 30",
  "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 542\n\n*References:*\n- [erdosproblems.com/542](https://www.erdosproblems.com/542)\n- [Er73] Erdős, P., _Problems and results on combinatorial number theory_. A survey of\n  combinatorial theory (Proc. Internat. Sympos., Colorado State Univ., Fort Collins, Colo., 1971)\n  (1973), 117-138.\n- [Er80] Erdős, Paul, _A survey of problems in combinatorial number theory_. Ann. Discrete Math.\n  (1980), 89-115.\n- [Er98] Erdős, Paul, _Some of my new and almost new problems and results in combinatorial number\n  theory_. Number theory (Eger, 1996) (1998), 169-180.\n- [ScSz59] Schinzel, A. and Szekeres, G., _Sur un problème de M. Paul Erdős_. Acta Sci. Math.\n  (Szeged) (1959), 221-229.\n- [Ch96] Chen, Yong-Gao, _On a problem of P. Erdős_. Acta Sci. Math. (Szeged) (1996), 101--114.\n-/\n\n@[expose] public section\n\nopen Filter Real\n\nnamespace Erdos542\n\n/-- A set `A ⊆ {1, …, n}` such that `lcm(a, b) > n` for all distinct `a, b ∈ A`. -/\ndef IsLcmFree (n : ℕ) (A : Finset ℕ) : Prop :=\n  A ⊆ Finset.Icc 1 n ∧ (A : Set ℕ).Pairwise fun a b ↦ n < Nat.lcm a b\n\n/-- The integers `1 ≤ m ≤ n` which are not divisible by any element of `A`. -/\ndef uncovered (n : ℕ) (A : Finset ℕ) : Finset ℕ :=\n  (Finset.Icc 1 n).filter fun m ↦ ∀ a ∈ A, ¬ a ∣ m\n\nset_option linter.style.formal_proof_palomar false in\n/--\nIs it true that if $A\\subseteq\\{1,\\ldots,n\\}$ is a set such that $[a,b]>n$ for all $a\\neq b$,\nwhere $[a,b]$ is the least common multiple, then\n$$\\sum_{a\\in A}\\frac{1}{a}\\leq \\frac{31}{30}?$$\n\nThe answer is yes, proved by Schinzel and Szekeres [ScSz59]. The bound is best possible as\n$A=\\{2,3,5\\}$ demonstrates.\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/Erdos542.lean#L2114\"]\ntheorem erdos_542.parts.i :\n    ∀ (n : ℕ) (A : Finset ℕ), IsLcmFree n A → ∑ a ∈ A, (1 : ℝ) / a ≤ 31 / 30 := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/-- The bound $31/30$ is attained by $A=\\{2,3,5\\}$ (with $n=5$). -/\n@[category research solved, AMS 11, formal_proof using lean4 at\n  \"https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos542.lean#L2114\"]\ntheorem erdos_542.variants.sharp :\n    IsLcmFree 5 {2, 3, 5} ∧ ∑ a ∈ ({2, 3, 5} : Finset ℕ), (1 : ℝ) / a = 31 / 30 := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/--\nIs it true that if $A\\subseteq\\{2,\\ldots,n\\}$ is a set such that $[a,b]>n$ for all $a\\neq b$,\nthen there must be $\\gg n$ many $m\\leq n$ which are not divisible by any $a\\in A$?\n\nThe answer is no, proved by Schinzel and Szekeres [ScSz59].\n\nThe element $1$ is excluded: $A=\\{1\\}$ satisfies the hypothesis and leaves no such $m$, so\nwithout this restriction the answer would be negative for a trivial reason.\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/Erdos542.lean#L2114\"]\ntheorem erdos_542.parts.ii :\n    ¬ ∃ c > 0, ∀ (n : ℕ) (A : Finset ℕ), IsLcmFree n A → 1 ∉ A →\n      c * n ≤ ((uncovered n A).card : ℝ) := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/--\nSchinzel and Szekeres [ScSz59] proved that, for any $\\epsilon>0$, there are sets\n$A\\subseteq\\{2,\\ldots,n\\}$ as in the problem with $o(n)$ many uncovered $m\\leq n$ and for which\n$\\sum_{a\\in A}\\frac{1}{a}>1-\\epsilon$.\n-/\n@[category research solved, AMS 11, formal_proof using lean4 at\n  \"https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos542.lean#L2114\"]\ntheorem erdos_542.variants.schinzel_szekeres :\n    ∀ ε > 0, ∀ δ > 0, ∃ (n : ℕ) (A : Finset ℕ), IsLcmFree n A ∧ 1 ∉ A ∧\n      ((uncovered n A).card : ℝ) ≤ δ * n ∧ 1 - ε < ∑ a ∈ A, (1 : ℝ) / a := by\n  sorry\n\n/--\nSchinzel and Szekeres [ScSz59] proved that there are examples $A\\subseteq\\{2,\\ldots,n\\}$ with at\nmost $n/(\\log n)^c$ many such $m$, for some real constant $c>0$.\n-/\n@[category research solved, AMS 11]\ntheorem erdos_542.variants.log_power : ∃ c > (0 : ℝ), ∃ᶠ n : ℕ in atTop, ∃ A : Finset ℕ,\n    IsLcmFree n A ∧ 1 ∉ A ∧ ((uncovered n A).card : ℝ) ≤ n / (log n) ^ c := by\n  sorry\n\n/--\nChen [Ch96] has proved that if $n>172509$ then\n$$\\sum_{a\\in A}\\frac{1}{a}< \\frac{1}{3}+\\frac{1}{4}+\\frac{1}{5}+\\frac{1}{7}+\\frac{1}{11}.$$\n-/\n@[category research solved, AMS 11]\ntheorem erdos_542.variants.chen (n : ℕ) (hn : 172509 < n) (A : Finset ℕ) (hA : IsLcmFree n A) :\n    ∑ a ∈ A, (1 : ℝ) / a < 1 / 3 + 1 / 4 + 1 / 5 + 1 / 7 + 1 / 11 := by\n  sorry\n\n/--\nIn [Er73] Erdős further speculates that in fact\n$$\\sum_{a\\in A}\\frac{1}{a}\\leq 1+o(1),$$\nwhere the $o(1)$ term $\\to 0$ as $n\\to \\infty$.\n-/\n@[category research open, question, AMS 11]\ntheorem erdos_542.variants.one_add_little_o :\n    ∃ o : ℕ → ℝ, Tendsto o atTop (nhds 0) ∧\n      ∀ (n : ℕ) (A : Finset ℕ), IsLcmFree n A → ∑ a ∈ A, (1 : ℝ) / a ≤ 1 + o n := by\n  sorry\n\n/--\nIn [Er98] Erdős mentions that he, Schinzel, and Szekeres conjectured that $2,3,5$ and\n$3,4,5,7,11$ are the only two sequences for which the sum is $>1$.\n-/\n@[category research open, question, AMS 11]\ntheorem erdos_542.variants.only_two :\n    ∀ (n : ℕ) (A : Finset ℕ), IsLcmFree n A → 1 < ∑ a ∈ A, (1 : ℝ) / a →\n      A = {2, 3, 5} ∨ A = {3, 4, 5, 7, 11} := by\n  sorry\n\nend Erdos542\n",
  "statement_hash": "91a7566c2f25d64a87fd7b277f421f5775d1f63c3ab80fab7cb2cea8dbebf4f4",
  "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."
}