TOPICS
Search

Kaprekar's Constant


Kaprekar's constant is the value 6174 (Deutsch and Goldman 2004). When leading 0s are retained to keep four decimal digits at every step, the Kaprekar routine reaches 6174 from every four-digit starting number whose digits are not all equal, in at most 7 iterations (Nishiyama 2006). An iteration is one subtraction, excluding the initial value from the count. The value 6174 is a fixed point, since 7641-1467=6174.

The bound of 7 iterations is attained, for example, by

 2005->5175->5994->5355->1998->8082->8532->6174.

The shorter example 9218->8532->6174 is illustrated by Numberphile (2011).

If leading 0s are instead discarded after each subtraction, exactly 77 starting numbers from 1000 through 9999 reach 0, while the remaining 8923 reach 6174 in at most 7 iterations. For example, 1000 then gives 1000->999->0, whereas retaining four digits gives 1000->0999->8991->8082->8532->6174.


See also

Kaprekar Number, Kaprekar Routine

Explore with Wolfram|Alpha

References

Deutsch, D. and Goldman, B. "Kaprekar's Constant." Math. Teacher 98, 234-242, 2004.Nishiyama, Y. "Mysterious Number 6174." Plus. Mar. 1, 2006. https://plus.maths.org/mysterious-number-6174?page=0.Numberphile. "6174." Featuring R. Bowley; video by B. Haran. Dec. 5, 2011. https://www.youtube.com/watch?v=d8TRcZklX_Q.

Referenced on Wolfram|Alpha

Kaprekar's Constant

Cite this as:

Weisstein, Eric W. "Kaprekar's Constant." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/KaprekarsConstant.html

Subject classifications