Project Brahmagupta · problem 5
Kaprekar Chains
In 1955, D. R. Kaprekar discovered that repeatedly applying the following process to any four-digit number (with at least two distinct digits) always leads to the fixed point :
- Start with a four-digit number in base 10 (with at least two distinct digits),
- Sort the digits into descending order to form , and into ascending order to form .
- Compute , and repeat.
As an example, starting with the number 8991 in base 10:
We define the chain length as the number of steps required to first reach . So . Find the sum of all valid four-digit integers (where ) whose chain length is exactly .
Try it
Check an answer
Enter a number, or a decimal where the problem asks for one. Only a hash of the answer is kept on this page.
Problem 5 of Project Brahmagupta, published under the Creative Commons Attribution 4.0 licence. No solutions are published.