Sharp linear bounds for the EKG sequence
Version 1 / Nov 23, 2026 / CC BY 4.0
Abstract
We prove that the EKG sequence satisfies for every , with equality only at and , respectively. Discovered by Jonathan Ayres, the sequence starts with and repeatedly takes the least unused positive integer sharing a factor greater than with its predecessor. This proves the sharp linear bounds conjectured by Lagarias, Rains and Sloane, who established coarse bounds at every index. Hofman and Pilipczuk proved the limits , and of on primes, their triples and the other terms, and Haver made these estimates explicit and formalized them in Lean. Our earlier second-order asymptotic also builds on Haver's work. We sharpen Haver's self-improving early-even bound with a shorter prime window and effective large-sieve constants, and control odd terms so that the analytic range meets a finite computation. Lean checks the deduction from the definition, conditional on computed premises; independent programs check those premises, and their correspondence with the formal statements was checked by reading the code. This work has not yet been reviewed by experts. The proofs, the Lean formalization, the programs and the text were produced by AI models, working under the author's direction.
Provenance statement
References
- T. Haver, The Yellowstone permutation, III: few large terms , October 22, 2026, earlier on the day of this work's first public release v1 . doi:10.5281/zenodo.23557280 (https://doi.org/10.5281/zenodo.23557280).DOI
- T. Haver, The prime frontier of the Yellowstone permutation is linear , October 22, 2026, earlier on the day of this work's first public release v1 . doi:10.5281/zenodo.23558450 (https://doi.org/10.5281/zenodo.23558450).DOI
- T. Haver, The prime frontier of the Yellowstone permutation falls behind time: limsup R(t)/t < 1 , October 23, 2026, after this work's first public release on October 22, 2026 v1 (later work). doi:10.5281/zenodo.23604646 (https://doi.org/10.5281/zenodo.23604646).DOI
- T. Haver, The Yellowstone permutation: limsup R(t)/t 0.68605, liminf , and Conjecture 7 for large n , October 23, 2026, after this work's first public release on October 22, 2026 v1 (later work). doi:10.5281/zenodo.23604811 (https://doi.org/10.5281/zenodo.23604811).DOI
- T. Haver, The Yellowstone permutation: Conjecture 7 for all n reduced to a riser law on a finite range, the normality and entry times of primes, and a run certificate , October 23, 2026, after this work's first public release on October 22, 2026 v1 (later work). doi:10.5281/zenodo.23604970 (https://doi.org/10.5281/zenodo.23604970).DOI
- P. Graham, Sharp linear bounds for the EKG sequence , version 1, first public release, October 22, 2026 (11:35 UTC): repository tag ekg-bounds-v1 (https://github.com/6/clank-lab/tree/ekg-bounds-v1/results/ekg-bounds) (commit b7da3aa ); Zenodo version 1, doi:10.5281/zenodo.23562177 (https://doi.org/10.5281/zenodo.23562177).DOI
- P. L. Chebyshev, Mémoire sur les nombres premiers, J. Math. Pures Appl. 17 (1852), 366--390.
- L. de Moura and S. Ullrich, The Lean 4 theorem prover and programming language, in Automated Deduction---CADE 28 , LNCS 12699 , Springer, 2021, pp. 625--635. doi:10.1007/978-3-030-79876-5_37 (https://doi.org/10.1007/978-3-030-79876-5_37).DOI
- P. Graham, The second-order asymptotic of the EKG sequence, version 3, October 20, 2026, manuscript and Lean sources. doi:10.5281/zenodo.23493113 (https://doi.org/10.5281/zenodo.23493113).DOI
- T. Haver, Explicit rates for the EKG sequence, version 3, October 4, 2026, manuscript and Lean sources (the Lean archive EKG-Lean4-sources-v2.zip , unchanged from version 2). doi:10.5281/zenodo.23129632 (https://doi.org/10.5281/zenodo.23129632).DOI
Show all 23 referencesShow fewer references
- P. Hofman and M. Pilipczuk, A few new facts about the EKG sequence, J. Integer Sequences 11 (2008), Article 08.4.2 (https://cs.uwaterloo.ca/journals/JIS/VOL11/Hofman/hofman1.html).link
- IEANTN contributors (T. Tao et al.), IEANTN , Lean sources, commit ec66e388e6e117c6881367f38665f310edf7cacf , 2026. Rosser--Schoenfeld Theorem 12 by Akula and contributors; Chebyshev bound by T. Tao. https://github.com/teorth/IEANTN.link
- J. C. Lagarias, E. M. Rains, and N. J. A. Sloane, The EKG sequence, Experimental Math. 11 (2002), 437--446. doi:10.1080/10586458.2002.10504486 (https://doi.org/10.1080/10586458.2002.10504486); arXiv:math/0204011v1 (https://arxiv.org/abs/math/0204011v1). Numbered locators refer to arXiv version 1 unless marked ``journal version''.arXivDOI
- LeanCert contributors, LeanCert , Lean sources, commit 6b11513512c9d27183fb4725bfc291ab38b4a6d7 , 2026. https://github.com/alerad/leancert.link
- The mathlib Community, The Lean mathematical library, in Proceedings of CPP '20 , ACM, 2020, pp. 367--381. doi:10.1145/3372885.3373824 (https://doi.org/10.1145/3372885.3373824).DOI
- H. L. Montgomery, A note on the large sieve, J. London Math. Soc. 43 (1968), 93--98. doi:10.1112/jlms/s1-43.1.93 (https://doi.org/10.1112/jlms/s1-43.1.93).DOI
- H. L. Montgomery and R. C. Vaughan, The large sieve, Mathematika 20 (1973), 119--134. doi:10.1112/S0025579300004708 (https://doi.org/10.1112/S0025579300004708).DOI
- OpenAI, math : mathematics formalizations, Lean sources, commit 1581d4cbdd69a0faf34b2089614fe2a814316a6a , 2026. https://github.com/openai/math.link
- OEIS Foundation Inc., The On-Line Encyclopedia of Integer Sequences , entry A064413 (https://oeis.org/A064413).link
- J. B. Rosser and L. Schoenfeld, Approximate formulas for some functions of prime numbers, Illinois J. Math. 6 (1962), 64--94. doi:10.1215/ijm/1255631807 (https://doi.org/10.1215/ijm/1255631807).DOI
- David L. Applegate, Hans Havermann, Robert G. Selcoe, Vladimir Shevelev, N. J. A. Sloane and Reinhard Zumkeller, The Yellowstone Permutation , arXiv:1501.01669, first posted January 7, 2015; version 2, March 8, 2015. https://arxiv.org/abs/1501.01669v2.arXiv
- Amit Kumar Basistha and Eugen J. Ionaşcu, A special sequence and primorial numbers , arXiv:2302.02838, first posted February 6, 2023; version 5, November 22, 2023. Rev. Roumaine Math. Pures Appl. 70 (2025), 235--255. https://arxiv.org/abs/2302.02838v5. https://doi.org/10.59277/rrmpa.2025.235.255.arXivDOI
- Sungsoo Na, An integer-visiting process with real multipliers: coverage and rates , version 1.0.0, October 4, 2026. https://doi.org/10.5281/zenodo.23138274.DOI
Version history
- v1 · 12 pagesSubmitted by Peter GrahamZenodo archive: https://doi.org/10.5281/zenodo.23562176. Paper text license: CC BY 4.0. The published code and data are governed by the licenses in the tagged release. Release archive folders: lean, checks, data.CurrentNov 22, 2026