{
  "id": "8153",
  "ident": "NS.08153",
  "slug": "wikipedia-lychrelnumbers",
  "title": "Lychrel numbers in base 10",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "**Lychrel conjecture (base 10):** conjecturally, there are no Lychrel numbers in base 10.\n\nEquivalently, every positive integer eventually becomes a palindrome under the Lychrel iteration.",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [
    "question"
  ],
  "collection": "wikipedia",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "LychrelNumbers.no_lychrel_numbers_base10",
  "statement_lean": "theorem no_lychrel_numbers_base10 :\n    ∀ n : ℕ, 0 < n → ¬ IsLychrel10 n",
  "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/-!\n# Lychrel numbers in base 10\n\nA (base-10) *Lychrel number* is a positive integer which never becomes a palindrome under the\niteration\n\n$$a_{0} = n, \\qquad a_{k+1} = a_k + \\operatorname{rev}_{10}(a_k).$$\n\nOne commonly stated conjectural direction is that there are no Lychrel numbers in base 10.\nThe smallest widely studied open case is `196`.\n\n*References:*\n* [Wikipedia: Lychrel number](https://en.wikipedia.org/wiki/Lychrel_number)\n* [MathWorld: Lychrel Number](https://mathworld.wolfram.com/LychrelNumber.html)\n* [OEIS A023108](https://oeis.org/A023108)\n* [OEIS A023109](https://oeis.org/A023109)\n-/\n\n@[expose] public section\n\nnamespace LychrelNumbers\n\n/-- The base (10) used for digit reversal. -/\nabbrev base : ℕ := 10\n\n/--\nThe digit-reversal map $\\operatorname{rev}_{10}(n)$.\n\nImplementation note: `Nat.digits base n` returns the digits of `n` in *little-endian* order.\nReversing this list and interpreting it again as little-endian digits gives the usual digit\nreversal.\n-/\ndef rev10 (n : ℕ) : ℕ :=\n  Nat.ofDigits base (Nat.digits base n).reverse\n\n/-- A number is a (base-10) palindrome if it equals its digit reversal. -/\ndef IsPalindrome10 (n : ℕ) : Prop :=\n  rev10 n = n\n\n/-- One step of the Lychrel iteration: `n ↦ n + rev10 n`. -/\ndef lychrelStep (n : ℕ) : ℕ :=\n  n + rev10 n\n\n/-- The number $n$ is a (base-10) Lychrel number if no iterate of the Lychrel process is a palindrome. -/\ndef IsLychrel10 (n : ℕ) : Prop :=\n  ∀ k : ℕ, ¬ IsPalindrome10 (lychrelStep^[k] n)\n\n/--\n**Lychrel conjecture (base 10):** conjecturally, there are no Lychrel numbers in base 10.\n\nEquivalently, every positive integer eventually becomes a palindrome under the Lychrel iteration.\n-/\n@[category research open, question, AMS 11]\ntheorem no_lychrel_numbers_base10 :\n    ∀ n : ℕ, 0 < n → ¬ IsLychrel10 n := by\n  sorry\n\n/--\nThe first widely studied open case: whether `196` is a base-10 Lychrel number.\n-/\n@[category research open, question, AMS 11]\ntheorem isLychrel10_196 : IsLychrel10 196 := by\n  sorry\n\n/-- An equivalent formulation of `no_lychrel_numbers_base10`. -/\n@[category API, AMS 11]\ntheorem eventually_palindrome_base10 :\n    (∀ n : ℕ, 0 < n → ∃ k : ℕ, IsPalindrome10 (lychrelStep^[k] n)) ↔\n      (∀ n : ℕ, 0 < n → ¬ IsLychrel10 n) := by\n  constructor\n  · intro h n hn hn_lychrel\n    rcases h n hn with ⟨k, hk⟩\n    exact hn_lychrel k hk\n  · intro h n hn\n    by_contra hcontra\n    have : IsLychrel10 n := by\n      intro k hk\n      exact hcontra ⟨k, hk⟩\n    exact h n hn this\n\n\n/-- Sanity check: digit reversal of `120` is `21`. -/\n@[category test, AMS 11]\ntheorem rev10_120 : rev10 120 = 21 := by\n  decide\n\n/-- Sanity check: `121` is a base-10 palindrome. -/\n@[category test, AMS 11]\ntheorem palindrome_121 : IsPalindrome10 121 := by\n  dsimp [IsPalindrome10]\n  decide\n\n/-- Sanity check: `56 → 121` in one Lychrel step. -/\n@[category test, AMS 11]\ntheorem lychrelIter_56_one : lychrelStep^[1] 56 = 121 := by\n  decide\n\n/-- Sanity check: the Lychrel iteration at `56` reaches a palindrome. -/\n@[category test, AMS 11]\ntheorem eventually_palindrome_56 : ∃ k : ℕ, IsPalindrome10 (lychrelStep^[k] 56) := by\n  refine ⟨1, ?_⟩\n  dsimp [IsPalindrome10]\n  decide\nend LychrelNumbers\n",
  "statement_hash": "500843ec9158f7809300c942a1ea4e58aabef856ad31587bf7b21e3428f114e8",
  "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."
}