paper

Almost Golomb Sequences

arXiv:2604.02404

Abstract

Golomb's sequence is the unique nondecreasing sequence of positive integers in which each appears exactly times. It satisfies the global self-referential rule , grows smoothly like a power of governed by the golden ratio, and is not -regular for any . We introduce almost Golomb sequences, obtained by truncating the cumulative sum to a fixed size sliding window : . This finite-memory truncation completely changes the nature of the sequence. The smooth power law gives way to oscillatory linear growth, and the sequence becomes -regular for every . For small values of we establish explicit denesting formulas, prove that does not converge, and reveal the combinatorial structure including a cellular automaton and a palindromic substitution. When one varies , the Golomb sequence itself reappears. We prove that the first terms of the order- sequence form a shifted copy of Golomb's sequence, and that this initial segment controls the maximum multiplicity across the whole family. For in particular, the maximal multiplicity is exactly . The sequence that was truncated returns as the law governing the family it generated.

arXiv comment49 pages. v2: Gandhar Joshi added as co-author. The two conjectures of Section 9 are now theorems, first proved by Shaoshi Zhou (Zenodo, April 2026) and independently by the authors. Walnut certifications added for r=4 and r=5