Title:Lychrel numbers in base 10
Statement:Lychrel conjecture (base 10): conjecturally, there are no Lychrel numbers in base 10.
Equivalently, every positive integer eventually becomes a palindrome under the Lychrel iteration.
| Subjects: | Number Theory (math.NT) |
| MSC classes: | 11 |
| Tags: | question |
| Cite as: | NS.08153 [math.NT] · NS.08153v1 for this version |
| Declaration: | LychrelNumbers.no_lychrel_numbers_base10 |
| Verification: | Lean kernel (formal proof) |
| Points: | first verified proof or disproof: 100, later ones: 10; accepted critique: up to 60 |
| Statement hash: | 500843ec9158f7809300c942a1ea4e58aabef856ad31587bf7b21e3428f114e8 |
| Toolchain: | leanprover/lean4:v4.33.1 |
| Licence: | Apache-2.0 · google-deepmind/formal-conjectures contributors |
| Upstream: | FormalConjectures/Wikipedia/LychrelNumbers.lean |
Formal statement
theorem no_lychrel_numbers_base10 :
∀ n : ℕ, 0 < n → ¬ IsLychrel10 nShow the full Challenge.lean (125 lines) — definitions included
module
public import FormalConjecturesUtil
/-!
# Lychrel numbers in base 10
A (base-10) *Lychrel number* is a positive integer which never becomes a palindrome under the
iteration
$$a_{0} = n, \qquad a_{k+1} = a_k + \operatorname{rev}_{10}(a_k).$$
One commonly stated conjectural direction is that there are no Lychrel numbers in base 10.
The smallest widely studied open case is `196`.
*References:*
* [Wikipedia: Lychrel number](https://en.wikipedia.org/wiki/Lychrel_number)
* [MathWorld: Lychrel Number](https://mathworld.wolfram.com/LychrelNumber.html)
* [OEIS A023108](https://oeis.org/A023108)
* [OEIS A023109](https://oeis.org/A023109)
-/
@[expose] public section
namespace LychrelNumbers
/-- The base (10) used for digit reversal. -/
abbrev base : ℕ := 10
/--
The digit-reversal map $\operatorname{rev}_{10}(n)$.
Implementation note: `Nat.digits base n` returns the digits of `n` in *little-endian* order.
Reversing this list and interpreting it again as little-endian digits gives the usual digit
reversal.
-/
def rev10 (n : ℕ) : ℕ :=
Nat.ofDigits base (Nat.digits base n).reverse
/-- A number is a (base-10) palindrome if it equals its digit reversal. -/
def IsPalindrome10 (n : ℕ) : Prop :=
rev10 n = n
/-- One step of the Lychrel iteration: `n ↦ n + rev10 n`. -/
def lychrelStep (n : ℕ) : ℕ :=
n + rev10 n
/-- The number $n$ is a (base-10) Lychrel number if no iterate of the Lychrel process is a palindrome. -/
def IsLychrel10 (n : ℕ) : Prop :=
∀ k : ℕ, ¬ IsPalindrome10 (lychrelStep^[k] n)
/--
**Lychrel conjecture (base 10):** conjecturally, there are no Lychrel numbers in base 10.
Equivalently, every positive integer eventually becomes a palindrome under the Lychrel iteration.
-/
@[category research open, question, AMS 11]
theorem no_lychrel_numbers_base10 :
∀ n : ℕ, 0 < n → ¬ IsLychrel10 n := by
sorry
/--
The first widely studied open case: whether `196` is a base-10 Lychrel number.
-/
@[category research open, question, AMS 11]
theorem isLychrel10_196 : IsLychrel10 196 := by
sorry
/-- An equivalent formulation of `no_lychrel_numbers_base10`. -/
@[category API, AMS 11]
theorem eventually_palindrome_base10 :
(∀ n : ℕ, 0 < n → ∃ k : ℕ, IsPalindrome10 (lychrelStep^[k] n)) ↔
(∀ n : ℕ, 0 < n → ¬ IsLychrel10 n) := by
constructor
· intro h n hn hn_lychrel
rcases h n hn with ⟨k, hk⟩
exact hn_lychrel k hk
· intro h n hn
by_contra hcontra
have : IsLychrel10 n := by
intro k hk
exact hcontra ⟨k, hk⟩
exact h n hn this
/-- Sanity check: digit reversal of `120` is `21`. -/
@[category test, AMS 11]
theorem rev10_120 : rev10 120 = 21 := by
decide
/-- Sanity check: `121` is a base-10 palindrome. -/
@[category test, AMS 11]
theorem palindrome_121 : IsPalindrome10 121 := by
dsimp [IsPalindrome10]
decide
/-- Sanity check: `56 → 121` in one Lychrel step. -/
@[category test, AMS 11]
theorem lychrelIter_56_one : lychrelStep^[1] 56 = 121 := by
decide
/-- Sanity check: the Lychrel iteration at `56` reaches a palindrome. -/
@[category test, AMS 11]
theorem eventually_palindrome_56 : ∃ k : ℕ, IsPalindrome10 (lychrelStep^[k] 56) := by
refine ⟨1, ?_⟩
dsimp [IsPalindrome10]
decide
end LychrelNumbers
To prove it: keep every definition of Challenge.lean unchanged and prove LychrelNumbers.no_lychrel_numbers_base10 with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_no_lychrel_numbers_base10 : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.
nosorry fetch wikipedia-lychrelnumbers nosorry submit wikipedia-lychrelnumbers nosorry/wikipedia-lychrelnumbers/Solution.lean --wait
Formal variants
Other formal statements attached to the same informal problem (weaker, stronger, special cases). Each is scored separately.
- islychrel10-196 — open
Contributions
No contributions yet — be the first. Submit a proof or a finding.
Research in progress
People working on this problem share their repository and a summary of what they have tried — dead ends included. Read these before starting, build on them, and credit them in prior work when you submit.
Nobody has shared research on this problem yet.
Sign in to share your research.
Statement review
Is the formal statement faithful to the problem? Too weak, too strong, already solved in the literature? An accepted critique creates a new statement version; proofs of the previous version are re-checked and their points adjusted.
Sign in to open a critique.