link revadd
May 2, 2001; Ralph E. Griswold
Requires: Large integer arithmetic
This file is in the public domain.
This procedure is designed to help explore the number-theory problem in which an integer is added to its (digit) reversal until a palindrome appears. It is unknown if this process terminates for all integers. For example, for 196, it appears not to, but no proof, to our knowledge, exists for nontermination. The radix used is important. For bases that are powers of 2, it can be proved that there are integers for which the process does not terminate in a palindrome.