{
  "id": "653",
  "ident": "NS.00653",
  "slug": "erdos-11",
  "title": "Erdős Problem 11",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "Is every large odd integer $n$ the sum of a squarefree number and a power of 2?",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [
    "question"
  ],
  "collection": "erdos",
  "source_url": "https://www.erdosproblems.com/11",
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos11.erdos_11",
  "statement_lean": "theorem erdos_11 :\n    ∀ᶠ n : ℕ in atTop, Odd n → ∃ k l : ℕ, Squarefree k ∧ n = k + 2 ^ l",
  "challenge_source": "/-\nCopyright 2025 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 11\n\n*Reference:* [erdosproblems.com/11](https://www.erdosproblems.com/11)\n-/\n\n@[expose] public section\n\nopen Filter\n\nnamespace Erdos11\n\n/--\nIs every large odd integer $n$ the sum of a squarefree number and a power of 2?\n-/\n@[category research open, question, AMS 11]\ntheorem erdos_11 :\n    ∀ᶠ n : ℕ in atTop, Odd n → ∃ k l : ℕ, Squarefree k ∧ n = k + 2 ^ l := by\n  sorry\n\n/--\nEvery odd $n > 1$ is the sum of a squarefree number and a power of 2. This is the form in\nearlier versions of erdosproblems.com/11 and the hypothesis of [GrSo98]. It is stronger than\n`erdos_11`, which asks only about large $n$: a single exception would refute it.\n-/\n@[category research open, AMS 11]\ntheorem erdos_11.variants.all_odd (n : ℕ) (hn : Odd n) (hn' : 1 < n) :\n    ∃ k l : ℕ, Squarefree k ∧ n = k + 2 ^ l := by\n  sorry\n\n/-- The form for every odd $n > 1$ implies the form for large odd $n$. -/\n@[category test, AMS 11]\ntheorem eventually_of_all_odd (H : type_of% erdos_11.variants.all_odd) :\n    ∀ᶠ n : ℕ in atTop, Odd n → ∃ k l : ℕ, Squarefree k ∧ n = k + 2 ^ l :=\n  eventually_atTop.2 ⟨2, fun n hn hodd => H n hodd (by omega)⟩\n\n/--\nErdős often asked this under the weaker assumption that $n > 1$\nis not divisible by 4.\n-/\n@[category research open, AMS 11]\ntheorem erdos_11.variants.not_four_dvd (n : ℕ) (hn : ¬ 4 ∣ n) (hn' : 1 < n) :\n    ∃ k l : ℕ , Squarefree k ∧ n = k + 2^l := by\n  sorry\n\n/--\nIs every odd $n > 1$ the sum of a squarefree number and two powers of 2?\n-/\n@[category research open, AMS 11]\ntheorem erdos_11.variants.two_pow_two (n : ℕ) (hn : Odd n) (hn' : 1 < n) :\n    ∃ k l m : ℕ , Squarefree k ∧ n = k + 2^l + 2^m := by\n  sorry\n\n/--\nEvery odd $1 < n < 10^7$ is the sum of a squarefree number and a power of 2.\n-/\n@[category research solved, AMS 11]\ntheorem erdos_11.variants.finite_bound1 (n : ℕ) (hn : Odd n) (h : n < 10^7) (hn' : 1 < n) :\n    ∃ k l : ℕ , Squarefree k ∧ n = k + 2^l := by\n  sorry\n\n/--\nEvery odd $1 < n < 2^50$ is the sum of a squarefree number and a power of 2.\n-/\n@[category research solved, AMS 11]\ntheorem erdos_11.variants.finite_bound2 (n : ℕ) (hn : Odd n) (h : n < 2^50) (hn' : 1 < n) :\n    ∃ k l : ℕ , Squarefree k ∧ n = k + 2^l := by\n  sorry\n\n/--\nSuppose that every odd $n > 1$ is the sum of a squarefree number and a power of 2. Then the set of\nprimes $p$ such that $2^p \\not\\equiv 2 \\pmod{p^2}$ (the non-Wieferich primes) is infinite.\nThis follows from Theorem 1 in [GrSo98].\n[GrSo98] Granville, A. and Soundararajan, K., A Binary Additive Problem of Erdős and the Order of $2$ mod $p^2$. The Ramanujan Journal (1998), 283-298.\n-/\n@[category research solved, AMS 11]\ntheorem erdos_11.variants.granville_soundararajan (H : type_of% erdos_11.variants.all_odd) :\n    {p : ℕ | p.Prime ∧ ¬ 2 ^ p ≡ 2 [MOD p ^ 2]}.Infinite := by\n  sorry\n\nend Erdos11\n",
  "statement_hash": "04422c1963ff99a604b3699a131bf323533e4a9c3082090035fe78c3f163a62d",
  "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."
}