Aperiodicity and exact power-of-two visits in an XOR-reversal recurrence
Let \(R(m)\) reverse the ordinary unpadded binary digits of \(m\), with \(R(0)=0\). Starting at \(a_0=0,a_1=1\), use \(a_{n+2}=(a_n\oplus R(a_{n+1}))+1\), where \(\oplus\) is bitwise XOR. All adjacent states \((a_n,a_{n+1})\) are distinct, so the sequence is unbounded and has no eventual period. Each \(2^k\), \(k\ge1\), occurs exactly once, at an even index \(n_k\) with \(n_1=2\) and \(n_k<n_{k+1}\). These statements answer the periodicity and power-of-two questions in Scheuerle, OEIS A339602, Comments. The predecessor of an adjacent pair is uniquely determined when it exists, by undoing the addition and cancelling the reversed operand. Going backwards from the seed reaches a state with no predecessor. The power-of-two result uses the alternating parity pattern: reversal shortens the binary expansion of a positive even term, and the two-step update can enter a larger binary layer only at its first value.
Authors
- Zixuan He
Institutions
- University of Glasgow (GB)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-11-30
- DOI
- https://doi.org/10.5281/zenodo.24665954
- Primary Topic
- semigroups and automata theory
- Type
- preprint