There is a newer version of the record available.

Published November 18, 2026 | Version 1.3

Kaprekar dynamics: papers, verification code and data

Authors/Creators

Description

Version 1.3 of the code and data record for research on Kaprekar's routine (iterating the descending-minus-ascending digit arrangement) in arbitrary integer bases.

New in this version: the paper Majorization in odd-digit Kaprekar dynamics and the nine-digit arrival law (R. Galyavin, 2026), with its LaTeX source and ancillary bundle. For every odd number of digits, the continuous large-base map decreases the vector of successive gaps in majorization order, so every real orbit approaches a periodic orbit. For nine digits, periodicity is reached in finite time, and the initial differences, the arrival time and the terminal differences, all divided by the base, have five pairwise distinct joint limits indexed by the base modulo 5; a covariance principle under change of base explains this modulus. The nine-digit proofs use computer-assisted affine inequalities and exact lattice counts.

From earlier versions: Cycles of the four-digit Kaprekar map in even bases (version 1.0, with a Lean 4 proof); Arrival times for the four-digit Kaprekar map in even bases (version 1.1), including the fixed-point basin limits 1033/1125 and 94/125 in the bases 5·2n, against the values 3/4 and 15/16 conjectured by Devlin and Zeng; and A common arrival-time law for five-digit Kaprekar dynamics (version 1.2), with Lean 4 verification of its finite claims.

Files. Each paper as PDF and LaTeX source, with its ancillary bundle of reproduction scripts and reference results; the bundles of the cycles paper and the five-digit paper also contain Lean 4 developments. Also LICENSE.md; COMMITMENTS.txt, which lists SHA-256 digests of unreleased research materials as a priority record; and SHA256SUMS for all files.

Licenses. Text, figures and data: CC BY 4.0. Code: MIT. See LICENSE.md.

Prepared with substantial AI assistance under the author's direction and close supervision; the author takes responsibility for the contents.

Contact: rustem@galyavin.com

Files

COMMITMENTS.txt

Files (2.1 MB)

Name Size
md5:d1f76d488089ab3b751c82337d6adc65
689 Bytes Preview Download
md5:bbcc584248250268a24be4e7e5636e30
40.2 kB Preview Download
md5:e8d988bb1e129323bb0c31d39c3ccd56
162.2 kB Preview Download
md5:6f62d8e476b9d9f7098f9459fb0eaf6c
36.9 kB Download
md5:5aff7d813f7957387596942a5a304bad
59.9 kB Preview Download
md5:d726e4e3a1d826884cc093cee97592c1
136.0 kB Preview Download
md5:4f2f4b9665c1ada68483462ed9e6d740
31.5 kB Download
md5:720274ce2a88601a33d46ab3caff077b
299.8 kB Preview Download
md5:45f7117492503be307e37ff9a0025782
180.8 kB Preview Download
md5:acbfa5d7931225fc34f35e84b156848d
53.5 kB Download
md5:360b3d782db0c9f248ee06ab2d8c970c
902.1 kB Preview Download
md5:f0f7926c9a6016b79663d53a3ecfbcd4
159.7 kB Preview Download
md5:7ab20992ddeae1ddeb60a71a7adf2f7d
45.6 kB Download
md5:117d3d2879f04943c14d06ad1ac77280
2.0 kB Preview Download
md5:651eea1224b97a2dbd22e89586dd5f90
1.4 kB Download

Additional details

Related works

Is supplemented by
Software: https://github.com/galyavin/kaprekar-dynamics (URL)
References
Journal article: arXiv:2606.20439 (arXiv)