← Latest papers
🔢 mathematics

Four-digit Kaprekar dynamics in odd bases

This paper establishes that in every odd base greater than three, the four-digit Kaprekar routine exhibits a rigid structure where all nonconstant orbits quickly enter a specific triangular region and behave like projective doubling, thereby providing a complete finite classification of all terminal cycles, their lengths, and their counts.

Original authors: Evan Chen, Ken Ono, Richard E. Schwartz, Dinesh S. Thakur

Published 2026-06-19
📖 5 min read🧠 Deep dive

Original authors: Evan Chen, Ken Ono, Richard E. Schwartz, Dinesh S. Thakur

Original paper dedicated to the public domain under CC0 1.0 (http://creativecommons.org/publicdomain/zero/1.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you have a magic number machine. You feed it a four-digit number, and it performs a very specific, repetitive trick:

  1. Sort: It rearranges the digits from biggest to smallest.
  2. Reverse: It rearranges the same digits from smallest to biggest.
  3. Subtract: It subtracts the second number from the first.
  4. Repeat: It takes the result and does the whole process again.

In our everyday world (Base 10), if you start with almost any four-digit number, this machine eventually spits out the number 6174 and then just keeps spitting out 6174 forever. It's like a magnet pulling everything to a single spot.

But what happens if we change the rules of the game? What if we aren't counting in tens, but in sevens, elevens, or any other "odd" number system? This paper, written by a team of mathematicians (including some famous names like Ken Ono), explores exactly that. They discovered that while the behavior in other bases is more complex than in Base 10, it follows a surprisingly rigid and beautiful pattern.

Here is the story of their discovery, explained simply.

The Secret Language of Differences

The authors realized that looking at the actual numbers (like 5100 or 9650) is like trying to understand a storm by looking at individual raindrops. It's too messy. Instead, they decided to look at the distance between the numbers.

Imagine your four digits are standing in a line.

  • The Outer Difference is the gap between the tallest person and the shortest person.
  • The Inner Difference is the gap between the two people in the middle.

The magic of this paper is that the entire future of the machine depends only on these two gaps. Once you know the two gaps, you don't need to know the original digits anymore. The machine's behavior is entirely determined by how these two gaps change.

The "Warm-Up" Phase

When you first start the machine, the gaps might be weird. Sometimes they are zero, sometimes they are even numbers, sometimes they are equal. The authors proved that no matter what you start with, the machine is very efficient at cleaning up this mess.

Within three steps (at most), the machine forces the gaps into a special, tidy zone. In this zone:

  1. The gaps are never zero.
  2. The gaps are never equal.
  3. The gaps are always "odd" numbers.

Think of this like a chaotic dance floor. At first, people are bumping into each other, standing in circles, and moving randomly. But within three songs, everyone has found their perfect spot in a neat, orderly line. Once they are in this line, the dance becomes incredibly predictable.

The "Doubling" Dance

Once the machine is in this tidy zone, the authors found a hidden code. They realized that if you translate the gaps into a special "projective" language (a way of looking at numbers where positive and negative are treated as the same), the machine stops doing subtraction and sorting.

Instead, it simply doubles the numbers.

Imagine you have a pair of numbers, say 3 and 2.

  • Step 1: Double them \rightarrow 6 and 4.
  • Step 2: Double them again \rightarrow 12 and 8.
  • Step 3: Double them again \rightarrow 24 and 16.

In the world of this machine, "doubling" works like a clock. If you keep doubling, eventually the numbers wrap around and come back to where they started. This creates a cycle.

The paper proves that the complex, messy process of sorting and subtracting digits is actually just a fancy disguise for this simple "doubling" game.

How Long is the Cycle?

Because the machine is just doubling numbers, the length of the cycle (how many steps it takes to return to the start) depends entirely on the base you are using.

  • The Limit: The longest possible cycle can never be longer than half the base minus one. For example, in Base 11, the longest cycle is 5 steps. In Base 17, it's at most 8 steps.
  • The Prime Rule: The machine only reaches this maximum length if the base is a prime number (like 7, 11, 13, 17) and the number 2 has a special property in that base. It's like a lock and key: the base must be a prime, and the "key" (the number 2) must take exactly the right amount of steps to turn the lock.

If the base is a composite number (like 9 or 15), the cycle is always shorter than the maximum possible.

The AI Connection

One of the most unique parts of this paper is how it was written. The authors mention that the core ideas were first proposed by two of the co-authors, but they used an AI tool called AxiomProver to help write the formal mathematical proof.

Think of the AI as a very strict editor. The human authors wrote the story and the main ideas, and the AI checked every single logical step to ensure there were no mistakes, translating the math into a computer language (Lean) that a machine could verify. This paper is a test case for how humans and AI can work together to solve deep mathematical mysteries.

Summary

In short, this paper takes a fun number trick (Kaprekar's routine) and reveals its hidden skeleton.

  1. Messy Start: The process starts chaotic.
  2. Quick Cleanup: It settles into a stable pattern within three steps.
  3. Simple Core: Once stable, the process is just "doubling" numbers in a special mathematical world.
  4. Predictable End: This means we can now calculate exactly how long the cycles will be and how many of them exist for any odd base, simply by looking at the properties of the number 2 in that base.

It turns a "magic trick" into a predictable, elegant dance governed by simple arithmetic rules.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →