{
  "id": "599",
  "ident": "NS.00599",
  "slug": "erdos-1081",
  "title": "Erdős Problem 1081",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Let $A(x)$ count the number of $n\\leq x$ which are the sum of two squarefull numbers (a number\n$m$ is squarefull if $p\\mid m$ implies $p^2\\mid m$). Is it true that\n$$A(x) \\sim c \\frac{x}{\\sqrt{\\log x}}$$\nfor some $c>0$?\n\nOdoni [Od81] proved this is false.",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [
    "question"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos1081.erdos_1081",
  "statement_lean": "theorem erdos_1081 :\n    ¬ ∃ c > (0 : ℝ),\n      (fun x : ℝ ↦ (A x : ℝ)) ~[atTop] fun x ↦ c * x / Real.sqrt (Real.log x)",
  "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 1081\n\n*References:*\n- [erdosproblems.com/1081](https://www.erdosproblems.com/1081)\n- [Er76e] Erdős, P., *Problems and results on consecutive integers*.\n  Publ. Math. Debrecen 23 (1976), 271-282.\n- [Od81] Odoni, R. W. K., *A problem of Erdős on sums of two squarefull numbers*.\n  Acta Arith. 39 (1981), 145-162.\n- [BlGr06] Blomer, V. and Granville, A., *Estimates for representation numbers of quadratic\n  forms*. Duke Math. J. 135 (2006), 261-302.\n-/\n\n@[expose] public section\n\nopen Filter Asymptotics\n\nnamespace Erdos1081\n\n/-- `IsSumOfTwoSquarefull n`: $n = a + b$ for squarefull numbers $a, b \\geq 1$ (here $1$ is\nsquarefull). Allowing $a = 0$ or $b = 0$ would only add the $O(\\sqrt{x})$ squarefull numbers up\nto $x$, which does not affect the statements below. -/\ndef IsSumOfTwoSquarefull (n : ℕ) : Prop :=\n  ∃ a b : ℕ, 0 < a ∧ 0 < b ∧ a.Powerful ∧ b.Powerful ∧ n = a + b\n\n/-- $A(x)$: the number of integers $1 \\leq n \\leq x$ which are the sum of two squarefull\nnumbers. -/\nnoncomputable def A (x : ℝ) : ℕ :=\n  {n : ℕ | 0 < n ∧ (n : ℝ) ≤ x ∧ IsSumOfTwoSquarefull n}.ncard\n\n/-- $\\alpha = 1 - 2^{-1/3} \\approx 0.206299$, the exponent in the Blomer–Granville estimate. -/\nnoncomputable def alpha : ℝ := 1 - 2 ^ (-(1 : ℝ) / 3)\n\n/-- $2 = 1 + 1$ is a sum of two squarefull numbers. -/\n@[category test, AMS 11]\ntheorem isSumOfTwoSquarefull_two : IsSumOfTwoSquarefull 2 :=\n  ⟨1, 1, one_pos, one_pos, Nat.Full.one_right 2, Nat.Full.one_right 2, rfl⟩\n\n/--\nLet $A(x)$ count the number of $n\\leq x$ which are the sum of two squarefull numbers (a number\n$m$ is squarefull if $p\\mid m$ implies $p^2\\mid m$). Is it true that\n$$A(x) \\sim c \\frac{x}{\\sqrt{\\log x}}$$\nfor some $c>0$?\n\nOdoni [Od81] proved this is false.\n-/\n@[category research solved, question, AMS 11]\ntheorem erdos_1081 :\n    ¬ ∃ c > (0 : ℝ),\n      (fun x : ℝ ↦ (A x : ℝ)) ~[atTop] fun x ↦ c * x / Real.sqrt (Real.log x) := by\n  sorry\n\n/--\nBlomer and Granville [BlGr06] proved\n$$A(x)= (\\log\\log x)^{O(1)}\\frac{x}{(\\log x)^{\\alpha}}$$\nwhere $\\alpha=1-2^{-1/3}\\approx 0.206299$: for some $C$ and all large $x$, $A(x)$ lies between\n$(\\log\\log x)^{-C}$ and $(\\log\\log x)^{C}$ times $x/(\\log x)^{\\alpha}$.\n-/\n@[category research solved, AMS 11]\ntheorem erdos_1081.variants.blomer_granville :\n    ∃ C : ℝ, 0 < C ∧ ∀ᶠ x : ℝ in atTop,\n      x / Real.log x ^ alpha / Real.log (Real.log x) ^ C ≤ A x ∧\n        (A x : ℝ) ≤ x / Real.log x ^ alpha * Real.log (Real.log x) ^ C := by\n  sorry\n\nend Erdos1081\n",
  "statement_hash": "f14600cf5a603134b91b332a90c9948e527946372027ab4d904f07ec271065bc",
  "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."
}