Kaprekar dynamics: papers, verification code and data
Authors/Creators
Description
Version 1.2 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 A common arrival-time law for five-digit Kaprekar dynamics (R. Galyavin, 2026), with its LaTeX source and ancillary bundle. With five digit slots and a growing base B, the number of steps needed to reach a cycle, divided by B, converges through all integer bases to one explicit continuous law; along each residue class of B modulo 3 the limiting time is independent of the terminal cycle, whose weights depend on that class. The paper also determines the exact basin of the even-base two-cycle, proves that the maximum arrival time is B/3 + √B/3 + O(1), and identifies the overshoot behind the square-root term. Its finite integer-affine checks are supplied with executable encodings and are also verified in Lean 4.
From earlier versions: Cycles of the four-digit Kaprekar map in even bases (version 1.0), which classifies all four-digit cycles in every even base, with a Lean 4 proof; and Arrival times for the four-digit Kaprekar map in even bases (version 1.1), which gives the exact arrival-time distributions and limit laws, 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.
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 with build instructions. 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
(1.0 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:117d3d2879f04943c14d06ad1ac77280
|
2.0 kB | Preview Download |
|
md5:a2363d7351a614c42bfd16e2b2ddb7d1
|
1.1 kB | Download |
Additional details
Related works
- Is supplemented by
- Software: https://github.com/galyavin/kaprekar-dynamics (URL)
- References
- Journal article: arXiv:2606.20439 (arXiv)