Numberphile: Repeating Kaprekar's routine consistently leads to 6174
Numberphile explains that Kaprekar's routine involves arranging a four-digit number's digits into the largest and smallest possible numbers, subtracting the smaller from the larger, and repeating the process with the result to consistently reach 6174.
More
A process where you take a four-digit number, arrange its digits to form the largest and smallest possible numbers, and then subtract the smaller from the larger.