6,174
6174 is Kaprekar's constant: almost every four-digit number reaches it within seven steps of a simple repeated operation.
- Even
- Composite
Where 6,174 fits
Why 6,174 is special
6174 is a fixed point that is easy to test yourself. Take any four-digit number with at least two different digits, arrange the digits in descending then ascending order, and subtract the smaller from the larger. Repeat. Every such number reaches 6174 in at most seven iterations, and 6174 maps to itself: 7641 − 1467 = 6174. The result was described by D. R. Kaprekar in 1949.
Factors & digit properties
- Divisors (24)
- 1, 2, 3, 6, 7, 9, 14, 18, 21, 42, 49, 63, 98, 126, 147, 294, 343, 441, 686, 882, 1029, 2058, 3087, 6174
- Prime factorisation
- 2 × 3^2 × 7^3
- Digit sum
- 18
- Digital root
- 9
Representations
- Decimal
- 6174
- Scientific notation
- 6.174 × 10^3
Roman numerals
Roman numerals as modelled here goes up to 3,999.
Binary
1 1 0 0 0 0 0 0 1 1 1 1 0
1 × 4,096 + 1 × 2,048 + 0 × 1,024 + 0 × 512 + 0 × 256 + 0 × 128 + 0 × 64 + 0 × 32 + 1 × 16 + 1 × 8 + 1 × 4 + 1 × 2 + 0 × 1 = 6,174
Octal
1 4 0 3 6
1 × 4,096 + 4 × 512 + 0 × 64 + 3 × 8 + 6 × 1 = 6,174
Hexadecimal
1 8 1 e
1 × 4,096 + 8 × 256 + 1 × 16 + e × 1 = 6,174
Read as powers of two: 4,096 + 2,048 + 16 + 8 + 4 + 2 = 6,174.
In historical numeral systems
Egyptian
6 lotuses, 1 coil of rope, 7 hobbles, 4 strokes
6 × 1,000 + 1 × 100 + 7 × 10 + 4 × 1 = 6,174. The signs are simply repeated and added; where they sit on the line is a matter of layout, not value.
Systems that simply cannot reach this value are left out. Where a script needs a font most readers do not have, the reading is given instead of the glyphs — see number systems for each system in full.
Other mathematical patterns
- Abundant number
- Harshad (Niven) number
Related numbers & connections
Kaprekar's constants for three and four digits. The same rearrange-and-subtract routine converges on 495 from any three-digit start and on 6,174 from any four-digit one.
View 495 →Shares a distinctive class
- is associated with495
why?
Strength 0.50, confidence "high".
History
D. R. Kaprekar (1905–1986) taught at a school in Devlali, Maharashtra, and worked on recreational number theory largely outside the academic mathematical community, publishing in minor journals and presenting at conferences at his own expense. He described the routine now named after him in 1949. Several of his results — Kaprekar numbers, Harshad numbers, the Demlo numbers — entered the literature and remain in use, which makes him one of the clearest cases of amateur work becoming standard vocabulary.
DocumentedHistoryCulture: IndianPeriod: 1949
Mathematics
Kaprekar's routine is one of the few named results a reader can verify unaided in a couple of minutes. Order the digits of any four-digit number downwards, order them upwards, subtract, and repeat with the answer; whatever you start from, provided the digits are not all identical, you land on 6174 within seven rounds and stay there. Because there are only 10,000 possible starting points, the claim has been checked exhaustively rather than argued.
DocumentedMathematicsPeriod: 1949The same routine run on three-digit numbers converges on 495 instead, and always within three steps. Two digits have no single fixed point at all — the routine falls into a cycle — and five digits has three separate cycles rather than one constant. So 6174 is not an instance of a general law: four digits is one of the few widths where the process happens to land on a single value, which is why the four-digit case is the one that is famous.
DocumentedMathematicsKaprekar's name attaches to two unrelated things, which is a frequent source of confusion. A Kaprekar number is one whose square splits into two parts that sum back to it — 297² = 88,209, and 88 + 209 = 297 — and the set includes 9, 45, 55, 99 and 297. 6174 is not one of them. It is the fixed point of Kaprekar's routine, a separate result by the same author.
DocumentedMathematics6174 factors as 2 × 3² × 7³, and it is a Harshad number: its digits sum to 18, and 6174 ÷ 18 = 343, which is 7³. None of this has any bearing on the routine that made it famous — the fixed point arises from digit rearrangement and subtraction, which are operations on the numeral rather than on the quantity, so its factorisation plays no part.
DocumentedMathematics
Common questions
What is Kaprekar's constant?
6174, and you can test it in a couple of minutes. Take any four-digit number whose digits are not all the same, arrange them in descending order, then in ascending order, and subtract the smaller from the larger. Repeat with the answer. Within seven steps you reach 6174, which maps to itself: 7641 − 1467 = 6174. With only 10,000 starting points the claim has been checked exhaustively. Three-digit numbers converge on 495 instead; two digits has no fixed point at all.
Is 6,174 a prime number?
No, 6,174 is not prime.
What are the factors of 6,174?
The factors of 6,174 are 1, 2, 3, 6, 7, 9, 14, 18, 21, 42, 49, 63, 98, 126, 147, 294, 343, 441, 686, 882, 1029, 2058, 3087, 6174.
About this page's data
Mathematical facts:computed directly from the number's value — nothing to source or verify externally.
Contextual records: 5 reviewer-confirmed records, sourced and reviewed before publication.
Last reviewed: 15 July 2026