Kaprekar’s constant
Here is the problem: The number 6174 is known as Kaprekar’s constant, after the mathematician who discovered an associated property: for all fourdigit numbers with at least two distinct digits, repeatedly applying a simple procedure eventually results in this value. […]