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.
Pick any number with at least six digits. Apply the rule for its length. Watch where it goes.
At d = 6 the rule is BFADCE - CBDEAF: sort the digits from biggest to smallest, call them A to F, write those two numbers and subtract. Each longer length has its own rule, built the same way. A complete computer check of every length from 6 to 30 digits found that every input that is not one repeated digit reaches 146070. None goes to 0 and none falls into a loop. The longest trip is 29 steps at six digits, 25 at seven, and 42 at every length from 8 to 30.
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.
The number 146070 is built from the same digits as 60714 with one more zero: 7, 6, 4, 1, the digits of Kaprekar's 6174, plus two zeros. At six digits its rule is BFADCE - CBDEAF. At each longer length the rule keeps the first five coefficients and adds new ones, so that 146070 stays a fixed point.
What is shown. At every length from 6 to 30 digits, a complete computer check found that every input that is not one repeated digit reaches 146070. Nothing goes to 0 and nothing falls into a loop, so there is no escape class here. An argument that this holds at every length from six digits up is written out with the source code. It has been reviewed by AI only, not by a human referee.
This calculator is a pedagogical companion to the paper, not a formal verifier. It demonstrates the iteration on individual inputs; the counts come from the scripts in the repository.
More about the result: arbolinea.com/60714.