D.R. Kaprekar and 6174
D.R. Kaprekar, an Indian mathematician, discovered a magical property of 4-digit numbers.
The Algorithm
- Pick any 4-digit number with at least two different digits (e.g., ).
- Arrange digits in descending order to make the largest number ().
- Arrange digits in ascending order to make the smallest number ().
- Subtract the smaller from the larger.
- Repeat with the result.
Flowchart of the Process
Example Walkthrough
Let’s try with .
- Digits: .
- Digits from : .
- Digits from : .
- Digits from : .
- (It repeats!)
Tip
Try it yourself: How many steps does your birth year take to reach 6174?