an interactive companion

The Number 60714

A Kaprekar fixed point at every digit length d ≥ 5. At 7 or more digits, some inputs collapse to 0 instead.

Pick any number with at least five digits. Apply the rule for its length. Watch where it goes.

The rule depends on the input's digit length: there is one rule at d = 5, another at d = 6, and a recipe that extends them to every longer length. At d = 5 and d = 6, every input that is not one repeated digit reaches 60714 (at five digits: 99,990 of 100,000 strings, in at most 30 steps). At d ≥ 7, every input reaches either 60714 or 0. The share that collapses to 0 grows with length: 0.56% of digit collections at 8 digits, about 12% at 24 digits. The calculator shows both outcomes.

Try it
Number to chase:
5 to 20 digits. Try the "doomed input" button to see an input that collapses to 0.

The number 60714 is a fixed point of an explicit family of permutation-pair rules built from its native rule at d = 5, with the family extending to every higher digit length by appending pairs of coefficients that sum to zero. The fixed-point equation K(60714) = 60714 holds at every d ≥ 5.

What is shown. At d = 5 and d = 6, every input that is not one repeated digit reaches 60714. At d ≥ 7, every input reaches 60714 or 0. The inputs that reach 0 form the escape class: the block-aligned multisets, which the rule sends to 0 in one step, and the inputs whose orbits land on them. The escape class is characterized exactly, but it is not small: its share grows overall with length, though not at every step, from 0.56% of digit collections at 8 digits to about 12% at 24 digits (computed).

Kaprekar's constant 6174 is reached from every 4-digit input that is not one repeated digit; his rule has no fixed endpoint at 5 digits. If the rule is allowed to change with the length (here, by appending pairs of coefficients that sum to zero), 60714, the digits of 6174 plus a zero, stays a fixed point at every length, with the escape class above at 7 digits and more.

This calculator is a pedagogical companion to the paper, not a formal verifier. It demonstrates the iteration on individual inputs; the paper's counts come from the scripts in the repository.

The paper: The Digits of 6174 at Every Length (PDF) (Theorem 4.1 and Definition 4.6): a fixed point at every length; reached by every start only at five and six digits. More about the result: arbolinea.com/60714.

⁂