MCP
arXivarXiv
Preprint
Published: June 18, 2026
math.NT
v3

Four-digit Kaprekar dynamics in odd bases

Abstract
Start with four digits, arrange them in both descending and ascending order, subtract, and repeat. This simple process is known as the Kaprekar routine, famous in base ten for sending every nonconstant four-digit string to 61746174. We show that in every odd base B>3B>3, the four-digit Kaprekar map has an unexpectedly rigid structure. After at most three iterations, every nonconstant orbit enters an explicit triangular region TB\mathcal{T}_B, and on this region the map is conjugate to projective doubling: \[ \{[r],[s]\}\longmapsto \{[2r],[2s]\}. \] This gives a complete finite description of all nonconstant terminal cycles, including an explicit formula for their lengths and counts. In particular, the longest terminal cycle has length at most (B−1)/2(B-1)/2, and equality can occur only when BB is prime. For primes p>5p>5, equality occurs precisely when the least positive mm with 2m≡±1(modp)2^m\equiv\pm1\pmod p is m=(p−1)/2m=(p-1)/2. The results proved here were first formulated by Schwartz and Thakur. As a test case for AI-assisted formal mathematics, AxiomProver produced Lean/mathlib formalizations of these results.
0
AI overview
Reviews
Citation graph
References · 14
Structured
This preview uses generator v1; v2 is available
This explanation is currently available in Chinese. Read the Chinese explanation
Rating
No ratings yet
Rate
Community rating
—
/ 5
No ratings yet
Rating
—
Soundness
—
Presentation
—
Contribution
—
Confidence
—
Discussion
Top
Newest
Questions
Replication
Author
No comments yet — be the first