{
  "id": "2221",
  "ident": "NS.02221",
  "slug": "erdos-470",
  "title": "Erdős Problem 470",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "Are there any odd weird numbers?",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [
    "question"
  ],
  "collection": "erdos",
  "source_url": "https://www.erdosproblems.com/470",
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos470.erdos_470.parts.i",
  "statement_lean": "theorem erdos_470.parts.i : ∃ n : ℕ, n.Weird ∧ Odd n",
  "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 470\n\n*Reference:* [erdosproblems.com/470](https://www.erdosproblems.com/470)\n-/\n\n@[expose] public section\n\nnamespace Erdos470\n\n/--\nPrimitive weird numbers are weird numbers such that no proper divisor of $n$ are weird.\n-/\ndef PrimitiveWeird (n : ℕ) := n.Weird ∧ ∀ d ∈ n.properDivisors, ¬d.Weird\n\n/--\nThe abundancy index is the sum of the divisors of $n$ divided by $n$.\n-/\ndef AbundancyIndex (n : ℕ) : ℚ := (∑ d ∈ n.divisors, d) / n\n\n/--\nAre there any odd weird numbers?\n-/\n@[category research open, question, AMS 11]\ntheorem erdos_470.parts.i : ∃ n : ℕ, n.Weird ∧ Odd n := by\n  sorry\n\n/--\nAre there infinitely many primitive weird numbers?\n-/\n@[category research open, question, AMS 11]\ntheorem erdos_470.parts.ii : Set.Infinite PrimitiveWeird := by\n  sorry\n\n/--\nBenkoski and Erdős [BeEr74](https://mathscinet.ams.org/mathscinet/relay-station?mr=347726) proved\nthat the set of weird numbers has positive density.\n\n`HasPosDensity` is the right reading here, rather than the positive *lower* density that Erdős'\n\"positive density\" usually abbreviates. Their Theorem 5 is stated as \"the density of weird\nnumbers is positive\", and they first establish that the density exists at all: \"It is clear that\nthe weird numbers have a density since both the abundant numbers and the pseudoperfect numbers\nhave a density. (A weird number is abundant and not pseudoperfect.)\" The work in the paper goes\ninto showing that density is not `0`.\n-/\n@[category research solved, AMS 11]\ntheorem erdos_470.variants.weird_pos_density : {n : ℕ | n.Weird}.HasPosDensity := by\n  sorry\n\n/--\nThe smallest weird number is 70.\n-/\n@[category textbook, AMS 11]\ntheorem erdos_470.variants.smallest_weird_eq_70 : (∀ n < 70, ¬n.Weird) ∧ (70).Weird := by\n  refine ⟨?_, Nat.weird_seventy⟩\n  rintro n hn ⟨ha, hnp⟩\n  unfold Nat.Abundant at ha\n  apply hnp\n  -- For non-abundant `n`, `ha` is contradictory; for each abundant `n < 70`, exhibit an explicit\n  -- subset of its proper divisors summing to `n` (so `n` is pseudoperfect, hence not weird).\n  interval_cases n <;>\n    first\n    | exact absurd ha (by decide)\n    | exact ⟨by decide, ({2, 4, 6} : Finset ℕ), by decide, by decide⟩\n    | exact ⟨by decide, ({3, 6, 9} : Finset ℕ), by decide, by decide⟩\n    | exact ⟨by decide, ({1, 4, 5, 10} : Finset ℕ), by decide, by decide⟩\n    | exact ⟨by decide, ({4, 8, 12} : Finset ℕ), by decide, by decide⟩\n    | exact ⟨by decide, ({5, 10, 15} : Finset ℕ), by decide, by decide⟩\n    | exact ⟨by decide, ({6, 12, 18} : Finset ℕ), by decide, by decide⟩\n    | exact ⟨by decide, ({2, 8, 10, 20} : Finset ℕ), by decide, by decide⟩\n    | exact ⟨by decide, ({7, 14, 21} : Finset ℕ), by decide, by decide⟩\n    | exact ⟨by decide, ({8, 16, 24} : Finset ℕ), by decide, by decide⟩\n    | exact ⟨by decide, ({9, 18, 27} : Finset ℕ), by decide, by decide⟩\n    | exact ⟨by decide, ({2, 4, 8, 14, 28} : Finset ℕ), by decide, by decide⟩\n    | exact ⟨by decide, ({10, 20, 30} : Finset ℕ), by decide, by decide⟩\n    | exact ⟨by decide, ({11, 22, 33} : Finset ℕ), by decide, by decide⟩\n\n/--\nMelfi [Me15](https://mathscinet.ams.org/mathscinet/relay-station?mr=3276337) has proved that there\nare infinitely many primitive weird numbers, conditional on the fact that\n$p_{n+1} - p_n < \\frac{1}{10} \\sqrt{p_n}$ for all large $n$, which in turn would follow from\nwell-known conjectures concerning prime gaps.\n-/\n@[category research solved, AMS 11]\ntheorem erdos_470.variants.prime_gap_imp_inf_prim_weird :\n    (∀ᶠ n in Filter.atTop, primeGap n < √ (n.nth Nat.Prime) / 10) →\n      Set.Infinite PrimitiveWeird := by\n  sorry\n\n/--\nFang [Fa22](https://arxiv.org/abs/2207.12906) has shown there are no odd weird numbers below $10^{21}$.\n-/\n@[category research solved, AMS 11]\ntheorem erdos_470.variants.odd_weird_10_pow_21 : ∀ n < 10 ^ 21, Odd n → ¬n.Weird := by\n  sorry\n\n/--\nLiddy and Riedl [LiRi18](https://ideaexchange.uakron.edu/honors_research_projects/728/) have shown\nthat an odd weird number must have at least 6 prime divisors.\n-/\n@[category research solved, AMS 11]\ntheorem erdos_470.variants.odd_weird_prime_div :\n    ∀ n : ℕ, Odd n → n.Weird → 6 ≤ {m | m ∈ n.divisors ∧ m.Prime}.ncard := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/--\nIf there are no odd weird numbers then every weird number has abundancy index < 4.\n-/\n@[category research solved, AMS 11,\n  formal_proof using lean4 at \"https://github.com/HowieHwong/lean-erdos-proofs/blob/40216cfee225ec5c9f122a48703e671a9f47db90/Erdos/P470.lean#L88\"]\ntheorem erdos_470.variants.abundancy_index :\n    (∀ n : ℕ, n.Weird → ¬Odd n) → ∀ n, n.Weird → AbundancyIndex n < 4 := by\n  sorry\n\nend Erdos470\n",
  "statement_hash": "579dd0c0a255040cbfc688640b953f63ded5d685bea073d229989714a2b691e0",
  "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."
}