D. R. Kaprekar was a mathematics teacher in a government school in Devlali, Maharashtra. In 1949 he found something magical about 4-digit numbers.
Steps. Take a 4-digit number with at least two different digits.
- Arrange the digits to make the largest number A.
- Arrange them to make the smallest number B.
- Find C = A − B.
- Repeat with the digits of C.
Starting with 6382:
| Round | A | B | C = A − B |
|---|---|---|---|
| 1 | 8632 | 2368 | 6264 |
| 2 | 6642 | 2466 | 4176 |
| 3 | 7641 | 1467 | 6174 |
| 4 | 7641 | 1467 | 6174 … |
You always reach 6174, now called the Kaprekar constant. Once there, you stay there.
With 3-digit numbers the number that starts repeating is 495: from 321 you get 321 − 123 = 198, 981 − 189 = 792, 972 − 279 = 693, 963 − 369 = 594, 954 − 459 = 495, and 954 − 459 = 495 again.
Tap the diagram to enlarge it
📌 Remember these
- A = largest, B = smallest
- C = A − B, repeat
- 4 digits → 6174, 3 digits → 495