T TestsWorld
Lesson 6 of 11 Digits, palindromes and Kaprekar ⏱ 4 min

The magic number 6174

🤔
Think first
Pick any 4-digit number with different digits. Can a teacher from Maharashtra predict where your sums will end?
🎯 In this lesson you'll learn
  • ✓Carry out Kaprekar's steps
  • ✓Know the Kaprekar constant

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.

  1. Arrange the digits to make the largest number A.
  2. Arrange them to make the smallest number B.
  3. Find C = A − B.
  4. 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.

largest Asmallest BC = A − Brepeat8632236862646642246641767641146761746174: the Kaprekar constant

Tap the diagram to enlarge it

Largest minus smallest, again and again, always ends at 6174.
📌 Remember these
  1. A = largest, B = smallest
  2. C = A − B, repeat
  3. 4 digits → 6174, 3 digits → 495
✅ Quick check
← →