
In 1949, Dattatreya Ramachandra Kaprekar, an Indian mathematics teacher hailing from a small town in Maharashtra, unveiled a remarkable property associated with the number 6174. This number is now eponymously known as Kaprekar’s constant.
The essence of the discovery is quite straightforward: start with any four-digit number where not all digits are identical. Arrange these digits in descending order, then in ascending order, and subtract the smaller number from the larger one. Repeat this exact sequence of operations with the resulting difference several times. For instance, let’s take the number 4783: we get $8743 – 3478 = 5265$; subsequently, $6552 – 2556 = 3996$; next, $9963 – 3699 = 6264$; and finally, $6642 – 2466 = 4176$; then $7641 – 1467 = 6174$. From this point onward, the number reproduces itself repeatedly. As Kaprekar himself demonstrated—using only a pencil and paper, without any computers—any suitable four-digit number converges to 6174 in a maximum of 7 steps.
An analogous constant exists for three-digit numbers, which is 495. Let’s test this with the number 734: $743 – 347 = 396$; then $963 – 369 = 594$; finally, $954 – 459 = 495$. At this stage, the procedure also settles. The situation is more complex for other digit counts: two-digit numbers lack a constant, as the process enters an infinite loop; five-digit numbers exhibit several distinct cycles. However, for six-digit numbers, we observe two constants: 549945 and 631764.
An interesting pattern emerges: every single Kaprekar constant is divisible by 9. This is attributed to the arithmetic property that the difference between numbers formed by the same set of digits will always be a multiple of 9. Consequently, none of Kaprekar’s constants can be prime numbers. There is also another unexpected connection: if you take the number 6174, sum the cubes of its digits, and continue this operation with each subsequent result, the sequence will inevitably lead to the number 153—which itself is the sum of the cubes of its own digits ($1^3 + 5^3 + 3^3 = 153$).
For a considerable period, it was believed that 495 and 6174 were the sole “true” Kaprekar constants. Nonetheless, in 2024, Japanese mathematician Haruo Iwasaki definitively settled this matter: he proved that all conceivable constants are constructed from combinations of just 7 base numbers—495, 6174, 36, 123456789, 27, 875421, and 09. This completed the classification that had been initiated back in 1981 by researcher G. D. Prichard.
Kaprekar worked in isolation, publishing his findings in obscure journals, and did not receive widespread recognition during his lifetime. However, his discoveries, made using the simplest means available, have been independently verified by computers decades later. The story of the constant 6174 serves as a reminder that even within standard arithmetic, one can uncover phenomena that seem almost magical.