Submitted:
04 November 2026
Posted:
05 November 2026
You are already at the latest version
Abstract
Let s(n) be the sum of the decimal digits of n and let f(n) = n+ s(n) for odd n and f(n) = n−s(n) for even n. Our main result concerns the 2-cycles of f, which are most of itsobserved cycles. We prove that an odd a lies on a 2-cycle if and only if s(a) is odd and theaddition a+ s(a) produces exactly s(s(a))/9 carries, and we show that this required number iswithin 1/9 of the mean number of carries produced by adding s(a) to a random odd integer (a“carry balance” identity). Combining this with exchangeability of digits, an anti-concentrationlemma for carries and a local limit argument, we prove that the number of 2-cycles below Nis of exact order N/√log log N. In particular 2-cycles have density zero, so their number doesnot grow linearly in N, although numerically they make up most of the observed cycles. Wealso obtain an asymptotic formula for the 2-cycle density with error O((log D)2/√D) below10D. Combining it with an exact formula for the variance of the carry count and a sharp locallimit theorem, we prove an oscillation law: √log10 DT(D)/10D has no limit, its limit pointsform the interval [K0 726/301, K0√6] with K0 = 1/(12√11π), and the peak-to-trough ratiois √301/11 ≈1.577.Along the way we establish several exact structural facts: on multiples of nine, f is con-jugate to m → m±κ(m) with κ(m) = s(9m)/9 given by a digit formula; a general levelequation describes how the digit sum changes under each step; a conditional time-reversal iden-tity f(f(x) + 9) = x+ 9 holds whenever s(x) is even and s(f(x) + 9) = s(x); and the orbit of H·10L + x depends on H only through s(H) while it stays in one prefix block, which yieldsa cycle-counting algorithm with a rigorous error bound. We prove that an orbit is eventuallyperiodic if and only if its digit sums are bounded, and that every run of the orbit along whichthe digit sum stays constant moves it by at most O(k2), where 9k is that digit sum. Using thisand prefix lifting we give a computer-assisted proof that every orbit starting below 102224 iseventually periodic (and, for the binary analogue, every orbit starting below 23024). Whetherevery orbit is eventually periodic remains open. It would follow from a uniform quantitativestrengthening, a conjectured quadratic bound on climbs of auxiliary maps, for which we givenumerical evidence. Finally we treat every base b. In odd bases every orbit reaches 0. In every even base,including base 2 where the carry mechanism takes a different form, the structural results carryover and the 2-cycles again have density of exact order (log D)−1/2, with resonances at the base-b repunits bj−1.
Keywords:
digit sum
; carries
; Markov chain
; local limit theorem
; periodic points
; arithmetic dynamics
; computer-assisted proof
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.