[UVA] 640 - Self Numbers
Self Numbers
In 1949 the Indian mathematician D.R. Kaprekar discovered a class
of numbers called self-numbers. For any positive integer n, define
d(n) to be n plus the sum of the digits of n. (The d stands
for digitadition, a term coined by Kaprekar.) For ...