The number 6174 is known as Kaprekar's constant[1] [2] [3] after the Indian mathematician D. R. Kaprekar. This number is renowned for the following rule:
The above process, known as Kaprekar's routine, will always reach its fixed point, 6174, in at most 7 iterations.[4] Once 6174 is reached, the process will continue yielding 7641 – 1467 = 6174. For example, choose 1459:
The only four-digit numbers for which Kaprekar's routine does not reach 6174 are repdigits such as 1111, which give the result 0000 after a single iteration. All other four-digit numbers eventually reach 6174 if leading zeros are used to keep the number of digits at 4. For numbers with three identical digits and a fourth digit that is one higher or lower (such as 2111), it is essential to treat 3-digit numbers with a leading zero; for example: 2111 – 1112 = 0999; 9990 – 999 = 8991; 9981 – 1899 = 8082; 8820 – 288 = 8532; 8532 – 2358 = 6174.[5]
Number: | 6174 |
Roman: | MCLXXIV, or CLXXIV |
Divisor: | 1, 2, 3, 6, 7, 9, 14, 18, 21, 42, 49, 63, 98, 126, 147, 294, 343, 441, 686, 882, 1029, 2058, 3087, 6174 |
There can be analogous fixed points for digit lengths other than four; for instance, if we use 3-digit numbers, then most sequences (i.e., other than repdigits such as 111) will terminate in the value 495 in at most 6 iterations. Sometimes these numbers (495, 6174, and their counterparts in other digit lengths or in bases other than 10) are called "Kaprekar constants".
Kaprekar's constant is often used in cryptography for the purpose of generating random numbers. Kaprekar's routine offers a way to arrive to completely random numbers which can be used for decryption and encryption. This technique is also often used to generate random prime numbers.
In numerical analysis, Kaprekar's constant can be used to analyze the convergence of a variety numerical methods. Numerical methods are used in engineering, various forms of calculus, coding, and many other mathematical and scientific fields.
The properties of Kaprekar's routine allows for the study of recursive functions, ones which repeat previous values and generating sequences based on these values. Kaprekar's routine is a recursive arithmetic sequence, so it helps study the properties of recursive functions. [6]