The arithmetic spectrum of Kaprekar lengths

At fixed odd length n ≥ 7, earlier work by the author (doi:10.5281/zenodo.24408723) reduced the existence of macroscopic Kaprekar cycles lying entirely in the chamber C (positive pairing, no secondary breach) to the nonvanishing of a polyhedral cone Wn of gap profiles invariant under folded doubling. We compute this cone from the arithmetic of n. At a prime p, Wp is linearly isomorphic to the dual cone of an alternating walk on the cosets of ⟨−1,2⟩ in Fp×, so Wp = {0} exactly when the walk surrounds the origin. When ⟨−1,2⟩ has index two, the walk is an affine image of the alternating Legendre partial sum, whose final tested value is 1 − h(−4p). For each fixed index, the primes p ≤ x of that index with Wp ≠ {0} number o(π(x)) unconditionally, where π(x) counts all primes; the proof is a Chebotarev transfer from a random completely multiplicative function with values in a cyclic group. Assuming the Riemann hypothesis for the relevant Kummer fields, these primes have relative density zero within each index, and Wp = {0} for a density-one set of primes; at such p every cycle lying in C has absolute radius Op(1), uniformly in the base. Cycles that leave C are not addressed. By contrast, every odd composite length has Wn ≠ {0} (op. cit.); we give explicit chamber fixed points at every base of a progression, and show that among odd composites with two or three folded orbits only 9, 15 and 21 are strict. Exact certificates classify all odd lengths 7 ≤ n < 104, and 17 and 41 are the only strict index-two primes below 109.

Authors

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-11-21
DOI
https://doi.org/10.5281/zenodo.24419877
Primary Topic
Analytic Number Theory Research
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

The arithmetic spectrum of Kaprekar lengths

Rustem Galyavin
Zenodo (CERN European Organization for Nuclear Research)
Analytic Number Theory Research
preprint

The arithmetic spectrum of Kaprekar lengths

Rustem Galyavin
preprint en

Abstract

At fixed odd length n ≥ 7, earlier work by the author (doi:10.5281/zenodo.24408723) reduced the existence of macroscopic Kaprekar cycles lying entirely in the chamber C (positive pairing, no secondary breach) to the nonvanishing of a polyhedral cone Wn of gap profiles invariant under folded doubling. We compute this cone from the arithmetic of n. At a prime p, Wp is linearly isomorphic to the dual cone of an alternating walk on the cosets of ⟨−1,2⟩ in Fp×, so Wp = {0} exactly when the walk surrounds the origin. When ⟨−1,2⟩ has index two, the walk is an affine image of the alternating Legendre partial sum, whose final tested value is 1 − h(−4p). For each fixed index, the primes p ≤ x of that index with Wp ≠ {0} number o(π(x)) unconditionally, where π(x) counts all primes; the proof is a Chebotarev transfer from a random completely multiplicative function with values in a cyclic group. Assuming the Riemann hypothesis for the relevant Kummer fields, these primes have relative density zero within each index, and Wp = {0} for a density-one set of primes; at such p every cycle lying in C has absolute radius Op(1), uniformly in the base. Cycles that leave C are not addressed. By contrast, every odd composite length has Wn ≠ {0} (op. cit.); we give explicit chamber fixed points at every base of a progression, and show that among odd composites with two or three folded orbits only 9, 15 and 21 are strict. Exact certificates classify all odd lengths 7 ≤ n < 104, and 17 and 41 are the only strict index-two primes below 109.

Zenodo (CERN European Organization for Nuclear Research)
Analytic Number Theory Research
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon
The arithmetic spectrum of Kaprekar lengths — Rustem Galyavin · Zenodo (CERN European Organization for Nuclear Research) (2026) | TGRS Research Map | TGRS