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

Beyond 6174

Cycle explorer

Not every digit length has one famous destination. Follow any number until it finds a fixed point or enters a repeating loop.

Fixed point

6174 repeats forever

6174

Cycle detected

6174

Fixed point

A value whose next Kaprekar operation returns the same value, such as 6174 → 6174.

Multi-number cycle

A closed loop where several different values repeat in the same order indefinitely.

Why other digit lengths behave differently

Kaprekar’s operation acts on a finite set of fixed-width digit strings. Because the rule is deterministic, every path must eventually revisit a value. A repeated value either maps to itself—a fixed point—or closes a loop containing several values. The celebrated four-digit result is special because all non-repdigit decimal inputs share the 6174 destination; that pattern is not guaranteed when the width changes.

Use the selector to compare widths from two to six digits. Leading zeroes remain part of the state at every step, and the explorer stops as soon as it detects the first repeated state rather than printing the loop forever.

Learn about fixed points and attractors →

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