History
Who was D. R. Kaprekar?
4 min read · Updated 19 September 2026
The number 6174 is famous around the world, yet the man who discovered its property spent his working life as a schoolteacher in a small Indian town. Dattatreya Ramchandra Kaprekar had no doctorate and no research post, and for years his findings were dismissed. His story is a reminder that mathematics rewards curiosity as much as credentials.
Early life and education
Kaprekar was born in 1905 in Dahanu, a coastal town north of Mumbai. According to most accounts he lost his mother when he was young and was encouraged in arithmetic by his father, who enjoyed calculation and astrology. Numbers became a lifelong companion.
He studied at Fergusson College in Pune, where in 1927 he won a mathematics prize for original work, and completed a bachelor’s degree through the University of Bombay in 1929. He never went on to postgraduate study or a university career.
A teacher in Devlali
From 1930 until his retirement in 1962 Kaprekar taught at a school in Devlali, a town near Nashik in Maharashtra. Former students and later writers describe a teacher who treated numbers as a source of play and wonder, and who spent his free hours filling notebooks with patterns.
He published mainly in small journals and in booklets that he often printed himself. Established mathematicians in India at the time tended to regard his results as trivial recreations, and recognition came slowly.
The discovery of 6174
Kaprekar presented the routine that now carries his name in 1949: sort the digits of a four-digit number, subtract the ascending arrangement from the descending one, and repeat. Whatever the start, as long as the digits are not all equal, the process arrives at 6174 and stays there.
International attention followed much later. In March 1975 Martin Gardner described Kaprekar’s work in his Mathematical Games column in Scientific American, and from there 6174 spread into puzzle books, classrooms and eventually the web. Today it appears in textbooks as a first example of an iterative process with a fixed point.
More than one idea
6174 is only one of several patterns associated with Kaprekar:
- Kaprekar numbers, such as 45, whose square 2025 splits into 20 and 25, which add back to 45.
- Harshad numbers, divisible by the sum of their digits. The name comes from Sanskrit and is usually translated as “joy-giver”.
- Self numbers, sometimes called Devlali numbers after his town, which cannot be written as a number plus its own digit sum.
- Demlo numbers such as 121, 12321 and 1234321, the squares of 11, 111 and 1111, named after a railway station near Mumbai.
What unites them is an interest in how numbers behave in base ten: digit sums, rearrangements and splits. Professional mathematicians sometimes call this kind of work “recreational”, but many of the questions it raised were later studied seriously.
Why his work was overlooked
Several things worked against Kaprekar. He wrote in a style closer to puzzle collections than to research papers, he rarely placed his results in the wider theory, and he published outside the journals that professional mathematicians read. Many of his patterns also depend on base ten, which some mathematicians considered a sign of triviality, because a property of the decimal system tells us about our notation rather than about numbers themselves.
Later work showed that the questions he raised were far from empty. Kaprekar’s routine has been generalised to other bases and digit lengths, self numbers and harshad numbers have been studied in research papers, and Kaprekar numbers were connected to the divisors of 10ⁿ − 1. His talent was noticing patterns that others had walked past, which is still one of the most valuable skills in mathematics.
Further reading
- Martin Gardner’s Mathematical Games column in Scientific American, March 1975, which introduced Kaprekar’s ideas to a worldwide audience.
- The Online Encyclopedia of Integer Sequences (oeis.org), which lists Kaprekar numbers, self numbers, harshad numbers and many related sequences with references.
- On this site: why every number reaches 6174, Kaprekar numbers and harshad and self numbers.
Legacy
Kaprekar died in 1986 in Devlali. His name now appears in number-theory references, in the Online Encyclopedia of Integer Sequences and in school curricula around the world. For teachers, his routine is a rare topic that a ten-year-old can start and a university student can prove.
Kaprekar.fun is an independent educational project inspired by his work and is not affiliated with his family or estate. If you want to experience the idea he is best known for, start with the 6174 calculator or read why every number reaches 6174.