4.5/5 - (47 votes)

Pick any four-digit number whose digits are not all the same. Arrange the digits from largest to smallest, then from smallest to largest, and subtract. Repeat. Within seven rounds at most, you will land on 6174, and the number will stop moving.

The man who noticed this was not a famous professor. Dattatreya Ramchandra Kaprekar was a schoolteacher in Devlali, a small town in western India, and for decades almost nobody outside his classroom took his work seriously.

Try it before you read on

Take 1234. The largest arrangement is 4321, the smallest is 1234. Subtract and you get 3087. Do it again: 8730 minus 0378 gives 8352. One more round: 8532 minus 2358 gives 6174.

Now feed 6174 back in. Its digits give 7641 and 1467, and 7641 minus 1467 is 6174 again. The routine is stuck. Mathematicians call a value like this a fixed point, and this one is now known as Kaprekar’s constant.

There is one trap. If a result drops to three digits, keep a zero in front. Start from 2111 and you get 999, which must be read as 0999. That gives 9990 minus 0999, or 8991, then 8082, 8532 and finally 6174.

A teacher who did his math by a river

Kaprekar was born on 17 January 1905 in Dahanu, then part of the Bombay Presidency of British India. He went to secondary school in Thane and studied at Fergusson College in Pune.

In 1927 he won the Wrangler R. P. Paranjpye Mathematical Prize for an original piece of mathematics. He earned his bachelor’s degree from the University of Mumbai in 1929, and that was the end of his formal training. He never did any postgraduate study.

See also  Ancient scholars tied the 6 days of creation to a rare number

From 1930 to 1962, he taught at a government junior school in Devlali. He cycled from place to place to tutor private students with unconventional methods, and he liked to sit by a river, “thinking of theorems.”

Ignored at home, famous 20 years later

Kaprekar found the strange pull of 6174 in 1955 and described it in a short paper, An interesting property of the number 6174, published in the journal Scripta Mathematica.

Working largely alone, he got little serious attention from Indian mathematicians. Most of his results appeared in low-level journals or were published privately.

The turning point came two decades later. In March 1975, Martin Gardner wrote about him in his “Mathematical Games” column in Scientific American, and Kaprekar suddenly became internationally known. That same year, his constant even turned up in Marilyn Burns’s children’s book The I Hate Mathematics Book, without his name attached.

Never more than seven steps

The limit of seven rounds is not a rough estimate. There are 8,991 four-digit numbers with at least two different digits, and checking every single one shows that none needs more than seven. Exactly 1,980 of them need all seven, while only 356 get there in one step.

Shrink the game to three digits and a different magnet appears: 495, reached in six rounds at most. With two, five or seven digits, there is no such constant at all.

Push to six digits and two fixed points show up, 549945 and 631764. Go bigger still and the routine can get trapped in loops instead. The 11-digit number 86420987532 sends it around a cycle that repeats every five steps, forever.

See also  A mathematician doodled during a boring meeting and found a hidden prime number pattern

He kept finding numbers with personalities

6174 was only one of his finds. He also studied numbers whose square splits into two pieces that add back up to the original. Take 45: its square is 2025, and 20 plus 25 is 45. These are now called Kaprekar numbers.

In 1963 he described numbers that can never be produced by adding another number to the sum of its own digits. Twenty is one of them. Twenty-one is not, because 15 plus 1 plus 5 makes 21. He wanted to call them Devlali numbers, after his town, but most mathematicians now say self numbers.

He also studied Harshad numbers, which divide evenly by the sum of their digits, a name from Sanskrit meaning “giving joy.” Fittingly, 6174 is one: its digits add up to 18, and 6174 divided by 18 is exactly 343. Even his Demlo numbers (1, 121, 12321 and so on) took their name from a railway station near Bombay where the idea first came to him.

A puzzle anyone can check by hand

Kaprekar died on 4 July 1986 in Nasik, aged 81. Unlike the Collatz puzzle, which nobody can prove, his constant is fully settled, because four-digit numbers are finite and every one of them can be tested.

That may be his real legacy. A teacher with a bicycle, a riverbank and no research post showed that deep patterns are not reserved for universities. Sometimes they are waiting in four digits on a scrap of paper.