To covert nearly any number into a palindromic number you operate by reversing the digits and adding and then repeating for N steps until you get a palindromic number. Note that, as an example, 196 never gets palindromic. Several numbers never appear to approach being palindromic - these are called Lychrel numbers.
- 24 gets palindromic after 1 step(s): 66 -> 24 + 42 = 66
- 28 gets palindromic after 2 step(s): 121 -> 28 + 82 = 110, so 110 + 11 (110 reversed) = 121.
- Given a number (one per line) describe how many steps it took to get it to be palindromic, and what the resulting palindrome is.
- Bonus 1: See which input numbers, through 1000, yield identical palindromes.
- Bonus 2: Find Lychrel numbers by seeing which numbers don't get palindromic in under 10000 steps.