An all-index substitution for the both-odd Aronson sequence A079259
When does an integer occur in a sequence whose membership is determined by the parity of its own terms? In the second example of §6, Cloitre, Sloane and Vandermast give the first terms of the lexicographically least infinite strictly increasing sequence of positive integers satisfying \[n\in\{a(1),a(2),\ldots\}\quad\Longleftrightarrow\quad a(n)\text{ and }a(n+1)\text{ are both odd},\qquad n\geq1. \] Lexicographic order compares two sequences at the first term where they differ. The authors invite a full study of examples given by their initial terms. For this example, an explicit substitution determines every term, the only consecutive gaps are \(1\) and \(4\), and \(a(n)-(1+\sqrt3)n\) stays bounded uniformly over all positive integers \(n\). Cloitre, Sloane and Vandermast, §6, second example, p. 13 · OEIS A079259 Define the substitution \(\tau\) by \(\tau(1)=22\) and \(\tau(2)=212\), applying it to a word by replacing each symbol in order. Form the infinite label word \[Y=2\,\tau(2)\,\tau^2(2)\,\tau^3(2)\cdots,\qquad L=1\,Y, \] where juxtaposition means concatenation and \(\tau^j\) denotes \(j\) successive applications. Replace each label \(\ell\in\{1,2\}\) in \(L\) by the binary block \(W_\ell=1^\ell000\), consisting of \(\ell\) ones followed by three zeros. The bit at position \(m\) is \(1\) exactly when \(m\) occurs in the sequence. With positions counted from \(1\), \(a(n)\) is the position of the \(n\)-th one. This gives \(1,5,6,10,11,15,19,20,24,25,\ldots\). A pair of ones within a block gives a gap of \(1\), and the three zeros between runs give a gap of \(4\). To find \(a(n)\) without expanding the word, tabulate the number of ones and total binary length for each iterated image of the two labels. Skip whole images by subtracting their one counts from the target rank and adding their lengths to the position offset, then descend through the image containing the target in the same way. This takes \(O(\log n)\) integer arithmetic operations. The link between the parity rule and the substitution is a block relation. From term index \(5\), with preceding value \(a(4)=10\), the input membership bits are read in blocks \(W_\ell\). Each block starts with a preceding even term and uses successive gaps \((1,\underbrace{4,\ldots,4}_{\ell\text{ gaps}},1,4)\), ending again at an even term. The visited integer positions, including the preceding term and excluding the final term, have membership word \(W_2W_1^{\ell-1}W_2\). Here \(W_1^0\) is the empty word. This is precisely the binary expansion of \(\tau(\ell)\). The resulting infinite sequence satisfies the parity rule at every index and is lexicographically least among the infinite sequences satisfying it. For the asymptotic error, put \(\lambda=1+\sqrt3\). For a finite label word \(P\), let \(D(P)=\sum_{\ell\in P}(\ell+3-\lambda\ell)\), counting each occurrence of a label. If \(P\) consists of the complete label blocks before the block containing the \(n\)-th one, and that one is the \(r\)-th in its block, then \[a(n)-\lambda n=D(P)+r(1-\lambda),\qquad r\in\{1,2\}. \] The discrepancy satisfies \(D(\tau(P))=(1-\sqrt3)D(P)\). Since \(|1-\sqrt3|<1\) and a prefix of \(L\) can be assembled from a bounded number of complete images at each substitution level, \(D\) is uniformly bounded on these prefixes. The formula thus gives both the exact error for a specified term and the bounded-error asymptotic law. Under the relabelling \(1\mapsto0\), \(2\mapsto1\), \(\tau\) becomes Kimberling's previously recorded substitution \(0\mapsto11\), \(1\mapsto101\). The seed-image concatenation \(Y\) differs from the ordinary fixed point \(\lim_{j\to\infty}\tau^j(2)\), although the two have the same finite contiguous label blocks. The concatenation and the binary coding together give the exact membership rule for the both-odd sequence. OEIS A026363, substitution entry · OEIS A285430
Authors
- Zixuan He
Institutions
- University of Glasgow (GB)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-12-03
- DOI
- https://doi.org/10.5281/zenodo.24766514
- Primary Topic
- semigroups and automata theory
- Type
- preprint