Kaprekar's Constant is the number 6174, discovered by Indian mathematician D. R. Kaprekar in 1949. This constant has a fascinating mathematical property when working with 4-digit numbers (with at least two different digits).
- Take any 4-digit number where not all digits are equal
- Arrange digits in descending order (largest possible number)
- Arrange digits in ascending order (smallest possible number)
- Subtract the smaller number from the larger number
- Repeat the process with the result obtained
Let's take the number 3524:
Iteration 1:
- Descending digits: 5432
- Ascending digits: 2345
- Subtraction: 5432 - 2345 = 3087
Iteration 2:
- Descending digits: 8730
- Ascending digits: 0378
- Subtraction: 8730 - 0378 = 8352
Iteration 3:
- Descending digits: 8532
- Ascending digits: 2358
- Subtraction: 8532 - 2358 = 6174
Iteration 4:
- Descending digits: 7641
- Ascending digits: 1467
- Subtraction: 7641 - 1467 = 6174
We've reached the constant!
- Always converges to 6174 in maximum 7 iterations
- Works with any 4-digit number (except repdigits like 1111, 2222, etc.)
- The process cycles once 6174 is reached
The only numbers that don't converge to 6174 are repdigits (numbers with all 4 digits equal):
- 0000, 1111, 2222, 3333, ..., 9999
- This phenomenon also exists for 3-digit numbers (constant 495)
- For other digit numbers, the process may enter different cycles
- It's a fascinating example of "hidden" mathematical properties in numbers