Documentation

FormalConjectures.Wikipedia.LychrelNumbers

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:

@[reducible, inline]

The base (10) used for digit reversal.

Equations
Instances For

    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.

    Equations
    Instances For

      A number is a (base-10) palindrome if it equals its digit reversal.

      Equations
      Instances For

        One step of the Lychrel iteration: n ↦ n + rev10 n.

        Equations
        Instances For

          The number $n$ is a (base-10) Lychrel number if no iterate of the Lychrel process is a palindrome.

          Equations
          Instances For

            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.

            The first widely studied open case: whether 196 is a base-10 Lychrel number.

            theorem LychrelNumbers.eventually_palindrome_base10 :
            (∀ (n : ), 0 < n∃ (k : ), IsPalindrome10 (lychrelStep^[k] n)) ∀ (n : ), 0 < n¬IsLychrel10 n

            An equivalent formulation of no_lychrel_numbers_base10.

            Sanity check: digit reversal of 120 is 21.

            Sanity check: 121 is a base-10 palindrome.

            Sanity check: 56 → 121 in one Lychrel step.

            Sanity check: the Lychrel iteration at 56 reaches a palindrome.