Well-definedness of the classical Hofstadter Q-sequence
Determine whether the classical Hofstadter Q-sequence defined by Q(1)=1, Q(2)=1, and Q(n)=Q(n−Q(n−1))+Q(n−Q(n−2)) for n≥3 is well-defined for all integers n≥1; equivalently, prove that the recursive arguments n−Q(n−1) and n−Q(n−2) remain positive for all n≥3.
References
We prove that the perturbed Hofstadter-type sequence defined by
Q(1)=1,\quad Q(2)=1,\quad Q(n)=Q(n-Q(n-1))+Q(n-Q(n-2))+(-1)n
is well-defined for all $n\ge1$, i.e. all recursive arguments remain positive âa property that remains open for the classical Hofstadter $Q$-sequence.
— A Finite-State Proof of the Well-Definedness of a Perturbed Hofstadter Sequence
(2603.29622 - Mantovanelli, 31 Mar 2026) in Abstract