{
  "id": "8605",
  "ident": "NS.08605",
  "slug": "wikipedia-untouchablenumber",
  "title": "Untouchable Numbers",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "**Erdős (1973); Chen–Zhao (2011):** Untouchable integers have lower asymptotic density at least\n$0.06$ (Chen and Zhao prove that at least $0.06 x + o(x)$ even integers below $x$ are nonaliquot;\ncompare `Erdos418.erdos_418.variants.sigma`).",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [],
  "collection": "wikipedia",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "UntouchableNumber.chen_zhao_untouchable_lower_density",
  "statement_lean": "theorem chen_zhao_untouchable_lower_density :\n    (6 / 100 : ℝ) ≤ Set.lowerDensity {m : ℕ | m.IsUntouchable}",
  "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# Untouchable Numbers\n\nA natural number $m$ is *untouchable* (or *nonaliquot*, OEIS A005114) when it lies outside the\nrange of the proper-divisor sum $s(n) = \\sigma(n) - n = \\sum_{d \\mid n,\\, d < n} d$; examples begin\nat $2, 5$, and $52$.\n\nErdős (1973) proved that untouchable integers have positive lower asymptotic density (see also\n`Erdos418.erdos_418.variants.sigma` in `FormalConjectures.ErdosProblems.«418»`), and Chen and Zhao\n(2011) proved that at least $0.06 x + o(x)$ even integers below $x$ are untouchable, giving lower\nasymptotic density at least $0.06$. Meanwhile, $5$ is conjectured to be the sole odd untouchable\ninteger: writing an even integer $2k > 6$ as $p + q$ for distinct primes $p \\ne q$ gives\n$s(p q) = 1 + p + q = 2k + 1$, ruling out every odd integer above $7$.\n\n*References:*\n- [Wikipedia: Untouchable number](https://en.wikipedia.org/wiki/Untouchable_number)\n- [OEIS A005114](https://oeis.org/A005114)\n- P. Erdős (1973), *Elem. Math.* **28**, 83–86.\n- Y.-G. Chen and Q.-Q. Zhao (2011), *Publ. Math. Debrecen*, vol. 78, 439–442.\n- R. K. Guy (2004), Section B10.\n-/\n\n@[expose] public section\n\nnamespace UntouchableNumber\n\n/-- Every integer $n \\ge 30$ is either prime (proper-divisor sum $1$) or composite with a proper\ndivisor at least $6$ (proper-divisor sum at least $6$). -/\n@[category API, AMS 11]\ntheorem properDivisors_sum_eq_one_or_ge_six_of_ge_thirty {n : ℕ} (hn : 30 ≤ n) :\n    ∑ d ∈ n.properDivisors, d = 1 ∨ 6 ≤ ∑ d ∈ n.properDivisors, d := by\n  by_cases hp : n.Prime\n  · exact Or.inl (by simp [hp.properDivisors])\n  · right\n    set p := n.minFac\n    have hp_prime : p.Prime := Nat.minFac_prime (by omega)\n    have hp_two : 2 ≤ p := hp_prime.two_le\n    obtain ⟨q, hnq⟩ := Nat.minFac_dvd n\n    have hq_two : 2 ≤ q := by\n      rcases q with _ | _ | q\n      · omega\n      · simp at hnq; exact absurd (hnq ▸ hp_prime) hp\n      · omega\n    have hmax : 6 ≤ max p q := by\n      by_contra!\n      nlinarith [le_max_left p q, le_max_right p q]\n    have hmem : max p q ∈ n.properDivisors := by\n      rcases max_choice p q with h | h <;> rw [h, Nat.mem_properDivisors]\n      · exact ⟨⟨q, hnq⟩, by nlinarith⟩\n      · exact ⟨⟨p, by linarith⟩, by nlinarith⟩\n    exact hmax.trans (Finset.single_le_sum (f := id) (fun _ _ => Nat.zero_le _) hmem)\n\n/-- None of $0, 1, 3, 4, 7$ is untouchable ($0 = s(1)$, $1 = s(2)$, $3 = s(4)$, $4 = s(9)$,\n$7 = s(8)$). -/\n@[category test, AMS 11]\ntheorem not_isUntouchable_small_values :\n    ¬ Nat.IsUntouchable 0 ∧ ¬ Nat.IsUntouchable 1 ∧ ¬ Nat.IsUntouchable 3 ∧\n      ¬ Nat.IsUntouchable 4 ∧ ¬ Nat.IsUntouchable 7 :=\n  ⟨Nat.not_isUntouchable_zero, Nat.not_isUntouchable_one,\n    fun h => h ⟨4, by decide⟩, fun h => h ⟨9, by decide⟩, fun h => h ⟨8, by decide⟩⟩\n\n/-- $2$ is untouchable. -/\n@[category test, AMS 11]\ntheorem isUntouchable_two : Nat.IsUntouchable 2 := by\n  rintro ⟨n, hsum⟩\n  by_cases hn30 : n < 30\n  · interval_cases n <;> revert hsum <;> decide\n  · rcases properDivisors_sum_eq_one_or_ge_six_of_ge_thirty (Nat.not_lt.mp hn30) with h1 | h6 <;>\n      omega\n\n/-- $5$ is untouchable. -/\n@[category test, AMS 11]\ntheorem isUntouchable_five : Nat.IsUntouchable 5 := by\n  rintro ⟨n, hsum⟩\n  by_cases hn30 : n < 30\n  · interval_cases n <;> revert hsum <;> decide\n  · rcases properDivisors_sum_eq_one_or_ge_six_of_ge_thirty (Nat.not_lt.mp hn30) with h1 | h6 <;>\n      omega\n\n/-- **Erdős (1973); Chen–Zhao (2011):** Untouchable integers have lower asymptotic density at least\n$0.06$ (Chen and Zhao prove that at least $0.06 x + o(x)$ even integers below $x$ are nonaliquot;\ncompare `Erdos418.erdos_418.variants.sigma`). -/\n@[category research solved, AMS 11]\ntheorem chen_zhao_untouchable_lower_density :\n    (6 / 100 : ℝ) ≤ Set.lowerDensity {m : ℕ | m.IsUntouchable} := by\n  sorry\n\n/-- **Unique Odd Untouchable Conjecture:** Among odd integers, $5$ is the unique untouchable\nvalue. -/\n@[category research open, AMS 11]\ntheorem unique_odd_untouchable_conjecture {m : ℕ} (hodd : Odd m) :\n    m.IsUntouchable ↔ m = 5 := by\n  sorry\n\nend UntouchableNumber\n",
  "statement_hash": "3c5ad3fa63182937a49cf8cf64f54485bd746f2e5fc6ab0306d13edc0c847aa9",
  "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."
}