{
  "id": "1010",
  "ident": "NS.01010",
  "slug": "erdos-121",
  "title": "Erdős Problem 121",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Let $F_{k}(N)$ be the size of the largest $A\\subseteq \\{1,\\ldots,N\\}$ such that the product of no\n$k$ many distinct elements of $A$ is a square. Is $F_5(N)=(1-o(1))N$?\n\nConjectured by Erdős, Sós, and Sárközy [ESS95], who proved\n$F_2(N)=\\left(\\frac{6}{\\pi^2}+o(1)\\right)N$, $F_3(N) = (1-o(1))N$, and also established\nasymptotics for $F_k(N)$ for all even $k\\geq 4$ (in particular $F_k(N)\\asymp N/\\log N$ for all\neven $k\\geq 4$). Erdős [Er38] earlier proved that $F_4(N)=o(N)$ - indeed, if\n$\\lvert A\\rvert \\gg N$ and $A\\subseteq \\{1,\\ldots,N\\}$ then there is a non-trivial solution to\n$ab=cd$ with $a,b,c,d\\in A$.\n\nThis problem was answered in the negative by Tao [Ta24], who proved that for any $k\\geq 4$ there\nis some constant $c_k>0$ such that $F_k(N) \\leq (1-c_k+o(1))N$.\n\nSee also [888](https://www.erdosproblems.com/888).",
  "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": "Erdos121.erdos_121",
  "statement_lean": "theorem erdos_121 : ¬ (fun N : ℕ => (F 5 N : ℝ)) ~[atTop] fun N : ℕ => (N : ℝ)",
  "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 121\n\n*References:*\n- [erdosproblems.com/121](https://www.erdosproblems.com/121)\n- [Er94b] Erdős, Paul, *Some problems in number theory, combinatorics and combinatorial geometry*.\n  Math. Pannon. (1994), 261-269.\n- [Er97] Erdős, Paul, *Problems in number theory*. New Zealand J. Math. (1997), 155-160.\n- [Er97e] Erdős, Paul, *Some of my favourite unsolved problems*. Math. Japon. (1997), 527-537.\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- [ESS95] Erdős, P. and Sárközy, A. and Sós, V. T., *On product representations of powers. I*.\n  European J. Combin. (1995), 567-588.\n- [Er38] P. Erdős, *On sequences of integers no one of which divides the product of two others\n  and on related problems*. Tomsk. Gos. Univ. Ucen Zap. (1938), 74-82.\n- [Ta24] Tao, T., *On product representations of squares*. arXiv:2405.11610 (2024).\n-/\n\n@[expose] public section\n\nopen Filter Asymptotics\n\nnamespace Erdos121\n\n/-- $F_k(N)$ is the size of the largest $A\\subseteq \\{1,\\ldots,N\\}$ such that the product of no\n$k$ many distinct elements of $A$ is a square. -/\nnoncomputable def F (k N : ℕ) : ℕ :=\n  sSup {m : ℕ | ∃ A : Finset ℕ, A ⊆ Finset.Icc 1 N ∧\n    (∀ S ⊆ A, S.card = k → ¬ IsSquare (∏ n ∈ S, n)) ∧ A.card = m}\n\nset_option linter.style.formal_proof_palomar false in\n/--\nLet $F_{k}(N)$ be the size of the largest $A\\subseteq \\{1,\\ldots,N\\}$ such that the product of no\n$k$ many distinct elements of $A$ is a square. Is $F_5(N)=(1-o(1))N$?\n\nConjectured by Erdős, Sós, and Sárközy [ESS95], who proved\n$F_2(N)=\\left(\\frac{6}{\\pi^2}+o(1)\\right)N$, $F_3(N) = (1-o(1))N$, and also established\nasymptotics for $F_k(N)$ for all even $k\\geq 4$ (in particular $F_k(N)\\asymp N/\\log N$ for all\neven $k\\geq 4$). Erdős [Er38] earlier proved that $F_4(N)=o(N)$ - indeed, if\n$\\lvert A\\rvert \\gg N$ and $A\\subseteq \\{1,\\ldots,N\\}$ then there is a non-trivial solution to\n$ab=cd$ with $a,b,c,d\\in A$.\n\nThis problem was answered in the negative by Tao [Ta24], who proved that for any $k\\geq 4$ there\nis some constant $c_k>0$ such that $F_k(N) \\leq (1-c_k+o(1))N$.\n\nSee also [888](https://www.erdosproblems.com/888).\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/Erdos121.lean#L87\"]\ntheorem erdos_121 : ¬ (fun N : ℕ => (F 5 N : ℝ)) ~[atTop] fun N : ℕ => (N : ℝ) := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/-- More generally, is $F_{2k+1}(N)=(1-o(1))N$? This is false for all $k \\geq 2$ by Tao's\ntheorem [Ta24]. -/\n@[category research solved, question, AMS 11, formal_proof using lean4 at\n  \"https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos121.lean#L87\"]\ntheorem erdos_121.variants.odd : ¬ ∀ k : ℕ, 1 ≤ k →\n    (fun N : ℕ => (F (2 * k + 1) N : ℝ)) ~[atTop] fun N : ℕ => (N : ℝ) := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/-- Tao [Ta24] proved that for any $k\\geq 4$ there is some constant $c_k>0$ such that\n$F_k(N) \\leq (1-c_k+o(1))N$. -/\n@[category research solved, AMS 11, formal_proof using lean4 at\n  \"https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos121.lean#L87\"]\ntheorem erdos_121.variants.tao (k : ℕ) (hk : 4 ≤ k) :\n    ∃ c : ℝ, 0 < c ∧ ∀ᶠ N : ℕ in atTop, (F k N : ℝ) ≤ (1 - c) * N := by\n  sorry\n\n/-- Erdős, Sós, and Sárközy [ESS95] proved $F_3(N) = (1-o(1))N$. -/\n@[category research solved, AMS 11]\ntheorem erdos_121.variants.three : (fun N : ℕ => (F 3 N : ℝ)) ~[atTop] fun N : ℕ => (N : ℝ) := by\n  sorry\n\n/-- Erdős, Sós, and Sárközy [ESS95] proved $F_2(N)=\\left(\\frac{6}{\\pi^2}+o(1)\\right)N$. -/\n@[category research solved, AMS 11]\ntheorem erdos_121.variants.two :\n    (fun N : ℕ => (F 2 N : ℝ)) ~[atTop] fun N : ℕ => 6 / Real.pi ^ 2 * N := by\n  sorry\n\nend Erdos121\n",
  "statement_hash": "a7e9a6dfacddf7fb1d6c4321517fac651cb279d9fe421f08f0de981ee7f40703",
  "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."
}