KAPREKAR.FUN

Sign up for Starlink and get €45

Fast, reliable internet at home and on the go. Sign up through our link and get €45 in cash or Starlink service credit. Terms apply.
Get €45

Computed, never invented

The numbers behind 6174

Every statistic below is calculated from all 10,000 possible 4-digit inputs.

Total inputs

10,000

Reach 6174

9,990

Reach 0000

10

Average journey

4.66

Median journey

5

Maximum journey

7 steps

Distribution

0 iterations

2

1 iteration

392

2 iterations

576

3 iterations

2,400

4 iterations

1,272

5 iterations

1,518

6 iterations

1,656

7 iterations

2,184

Maximum path

2,184 numbers take 7 steps

0014 · 0015 · 0016 · 0025 · 0041 · 0049 · 0051 · 0052 · 0058 · 0059 · 0061 · 0069 · 0085 · 0094 · 0095 · 0096 · 0104 · 0105 · 0106 · 0124 · 0125 · 0126 · 0135 · 0140 · 0142 · 0150 · 0152 · 0153 · 0159 · 0160 · 0162 · 0168 · 0169 · 0179 · 0186 · 0195 · 0196 · 0197 · 0205 · 0214 …

How these figures are calculated

The analysis evaluates all 10,000 fixed-width strings, including leading-zero inputs and the 10 repdigits. “Average journey” is the arithmetic mean of the displayed iteration counts, while the median is the middle value after those counts are sorted. The maximum is found from the same complete set rather than from random trials.

The zero destination is reported separately because repdigits immediately collapse to 0000. For every other input in the 4-digit routine, the destination is 6174. Permutations often share a path after their first subtraction, which explains why many starting values have identical journey lengths.

Read the testing methodology →

Sign up for Starlink and get €45

Fast, reliable internet at home and on the go. Sign up through our link and get €45 in cash or Starlink service credit. Terms apply.
Get €45
KAPREKAR.FUN

A playground for curious numbers.

info@kaprekar.fun