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

Institutions

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
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

Aperiodicity and exact power-of-two visits in an XOR-reversal recurrence

Zixuan He
Zenodo (CERN European Organization for Nuclear Research)
semigroups and automata theory
preprint

Aperiodicity and exact power-of-two visits in an XOR-reversal recurrence

Zixuan He
preprint en

Abstract

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.

Zenodo (CERN European Organization for Nuclear Research)
University of Glasgow (GB)
semigroups and automata theory
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