Kaprekar's Constant
Updated 2026-08-03
Summary
Kaprekar's constant, 6174, is the fixed point reached within seven iterations by repeatedly subtracting the smallest from the largest arrangement of any four-digit number with distinct digits.
Definition
Discovered by Indian mathematician D. R. Kaprekar. Take any four-digit number whose digits are not all identical, arrange the digits in descending and ascending order, subtract the smaller from the larger, and repeat. The process reaches 6174 within at most seven iterations and then cycles there forever. The constant is an attractor of the iteration rule: it depends on the arithmetic and the base-ten representation, not on the starting value. The requirement that digits not all be identical matters, since such inputs collapse immediately to zero.
Introduction
How to use
- Convergence reading: ask whether your system has a fixed point that all trajectories reach regardless of starting position. - Initial-condition skepticism: check whether early advantages matter once the rule has run for several rounds. - Rule design: recognize that changing the iteration rule changes the attractor, not the starting point.
Mechanism
The subtraction step sorts digits and cancels their positional contributions, so information about the original arrangement is destroyed each round. After a few iterations the state space collapses to a small set of values, and 6174 is the fixed point of that reduced set. The outcome is therefore a property of the operation, which is why wildly different starting numbers converge on the same endpoint.
Practice
In progress 0/1Practice this model in one real situation:
Cases
- Market competition driving phone designs toward a common form, since the same competitive rules apply to every entrant.
- Optimization algorithms that converge on the same solution despite starting from very different random initializations.
Common pitfalls
- Assuming the starting value determines the final outcome, when the rule does.
- Forgetting the condition that the digits must not all be identical, which breaks the sequence.
- Overextending the analogy to systems whose rules change over time, so no fixed point exists.
Sources
Source support: Explicit
References currently contain only Wikipedia links; primary sources still need review.
- en.wikipedia.orghttps://en.wikipedia.org/wiki/Kaprekar's_routineverified
account_treeGenealogyexpand_more
PRIVATE NOTES · Only visible to you
SAVED Q&A
ENTRY Q&A · Private saving available
Ask with a clear boundary
thinkingmodels answers from published entry context only.
Your question is sent to thinkingmodels. The answer uses public entry context only.
RELATED MODELS