The Palindromic Number Calculator
Almost all numbers can be made into a Palindromic number by carrying out the following algorithm:
- Take the number, reverse it and subtract the smaller from the larger. (e.g. Using 1234: 4321 - 1234 = 3087)
- Now repeat the same step with the new number.
(so here we would do 7803 - 3087 = 4716
and then 6174 - 4716 - = 1458
and so on ...Eventually, usually after a few steps, the result will be a palindromic number. Occasionally, we end up with an oscillating pattern.
The number of lines which will be displayed is limited at the moment to 100 lines.
Created by Jamie Coventry