{
  "id": "3807",
  "ident": "NS.03807",
  "slug": "erdos-969",
  "title": "Erdős Problem 969",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "Let $Q(x)$ count the squarefree integers in $[1,x]$, and define $E(x)$ by\n$$Q(x)=\\frac{6}{\\pi^2}x+E(x).$$\nDetermine the order of magnitude of $E(x)$: an upper bound $E(x)=O(g(x))$ with a matching\noscillation bound $E(x)\\ne o(g(x))$.",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [
    "question"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos969.erdos_969",
  "statement_lean": "theorem erdos_969 :\n    let g := erdos_969.answer\n    (fun x => |squarefreeCountingError x|) =O[atTop] g ∧\n      ¬(fun x => |squarefreeCountingError x|) =o[atTop] g",
  "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-/\n\nmodule\n\npublic import FormalConjecturesUtil\n\n/-!\n# Erdős Problem 969\n\n*References:*\n- [Erdős Problem 969](https://www.erdosproblems.com/969)\n- Moser, L. and MacLeod, R. A., *The error term for the squarefree integers*.\n  Canadian Mathematical Bulletin **9** (1966), 303–306.\n  https://doi.org/10.4153/CMB-1966-039-4\n-/\n\n@[expose] public section\n\nnamespace Erdos969\n\nopen Filter Asymptotics\n\n/-- The squarefree counting function `Q(x)`. -/\ndef squarefreeCounting (x : ℕ) : ℕ :=\n  ((Finset.Icc 1 x).filter Squarefree).card\n\n/-- Exactly seven integers in $[1,10]$ are squarefree, including $1$. -/\n@[category test, AMS 11]\ntheorem squarefreeCounting_ten : squarefreeCounting 10 = 7 := by\n  decide +kernel\n\n/-- The error term in `Q(x) = (6 / π^2) x + E(x)`. -/\nnoncomputable def squarefreeCountingError (x : ℕ) : ℝ :=\n  (squarefreeCounting x : ℝ) - 6 / Real.pi ^ 2 * x\n\ndef erdos_969.answer : ℕ → ℝ := sorry\n\n/-- Let $Q(x)$ count the squarefree integers in $[1,x]$, and define $E(x)$ by\n$$Q(x)=\\frac{6}{\\pi^2}x+E(x).$$\nDetermine the order of magnitude of $E(x)$: an upper bound $E(x)=O(g(x))$ with a matching\noscillation bound $E(x)\\ne o(g(x))$. -/\n@[category research open, question value, AMS 11]\ntheorem erdos_969 :\n    let g := erdos_969.answer\n    (fun x => |squarefreeCountingError x|) =O[atTop] g ∧\n      ¬(fun x => |squarefreeCountingError x|) =o[atTop] g := by\n  sorry\n\n/-- The prime number theorem implies $E(x)=o(\\sqrt{x})$. -/\n@[category research solved, AMS 11]\ntheorem erdos_969.variants.prime_number_theorem :\n    (fun x => |squarefreeCountingError x|) =o[atTop] (fun x : ℕ => (x : ℝ).sqrt) := by\n  sorry\n\n/-- Evelyn and Linfoot proved $E(x)=\\Omega(x^{1/4})$. -/\n@[category research solved, AMS 11]\ntheorem erdos_969.variants.evelyn_linfoot :\n    ¬(fun x => |squarefreeCountingError x|) =o[atTop]\n      (fun x : ℕ => (x : ℝ) ^ (1 / 4 : ℝ)) := by\n  sorry\n\nend Erdos969\n",
  "statement_hash": "b28ad5833232e9a2327ae486cebed195483d5cedadeeb0213ba70caf8cf03347",
  "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."
}