On a perturbed Hofstadter Q-recursion
Pith reviewed 2026-05-13 17:00 UTC · model grok-4.3
The pith
The perturbed Hofstadter sequence is defined for every positive integer and stays within O(1/sqrt(log n)) of n/2.
A machine-rendered reading of the paper's core claim, the machinery that carries it, and where it could break.
Core claim
Adding the parity perturbation (-1)^n to the Hofstadter recurrence produces a sequence ~Q that is well-defined for every positive integer n. The values satisfy |~Q(n)/n - 1/2| = O(1/sqrt(log n)). The argument rests on the exact self-similar decomposition of the sequence into alternating arches whose frequencies are governed by the Catalan numbers.
What carries the argument
The parity-perturbed recurrence and its induced self-similar arch decomposition whose step counts follow the Catalan numbers.
If this is right
- The perturbed sequence remains defined for all positive integers with no gaps in the recursion.
- The ratio ~Q(n)/n approaches 1/2 at a rate no slower than a constant over the square root of log n.
- Conditional on two minimal properties of the arch amplitudes the scaled deviation admits the explicit lim sup 1/(3 sqrt(2 pi)).
- Numerical checks suggest the original Hofstadter sequence differs from the perturbed one by O(n/sqrt(log n)).
Where Pith is reading between the lines
- If the conjectured difference bound between Q and ~Q holds then the original sequence would inherit the same closeness to n/2.
- The arch decomposition may supply a template for proving existence in other nested recurrences that currently lack it.
- Exact determination of the arch amplitudes would remove the remaining conjectural step from the refined asymptotic.
Load-bearing premise
The recursive construction never encounters an undefined predecessor because each arch completes before the next one begins.
What would settle it
Compute ~Q(n) up to n = 2^60 and verify whether |~Q(n)/n - 1/2| * sqrt(log n) remains bounded by a fixed constant.
Figures
read the original abstract
The Hofstadter Q-sequence is a prominent example of nested recurrence. Despite decades of study, it is not even known whether Q(n) is defined for all n. Mantovanelli introduced a parity-perturbed variant $\widetilde{Q}$, obtained by adding $(-1)^n$ to the recursion, which surprisingly replaces the chaotic behaviour of Q by an exact dyadic self-similarity. In this paper we prove that $\widetilde{Q}$ is well-defined for all n and satisfies $|\widetilde{Q}(n)/n - 1/2| = O(1/\sqrt{\log n})$. The proof exploits the self-similar structure of the sequence, where alternating arches arise whose frequency combinatorics are governed by the Catalan numbers. A complementary analysis of the arch amplitudes, conditional on two minimal conjectural properties, refines the asymptotic formula to $\limsup_{n\to\infty} |\widetilde{Q}(n)/n - 1/2| \sqrt{\log_2 n} = 1/(3\sqrt{2\pi})$. Numerical experiments suggest the conjecture $Q(n) - \widetilde{Q}(n) = O(n/\sqrt{\log n})$, indicating that $\widetilde{Q}$ may serve as a tractable proxy for Q. This experimental direction will be investigated elsewhere.
Editorial analysis
A structured set of objections, weighed in public.
Referee Report
Summary. The manuscript proves that the parity-perturbed Hofstadter sequence ~Q, defined by adding (-1)^n to the standard Q-recursion, is well-defined for all n and satisfies the bound |~Q(n)/n − 1/2| = O(1/√log n). The argument proceeds by establishing an exact dyadic self-similarity in which alternating arches appear with frequencies counted by the Catalan numbers; the bound follows from a recursive decomposition of the deviation. A sharper limsup asymptotic is derived conditionally on two conjectures about arch amplitudes. Numerical experiments suggest that the difference between the original Q and ~Q is O(n/√log n).
Significance. This result is significant because it resolves the well-definedness question for a natural perturbation of the long-standing Hofstadter Q-sequence, whose own well-definedness remains open. The use of Catalan-number combinatorics to control the self-similar arches provides a clean, parameter-free derivation of the O(1/√log n) bound. The separation of the unconditional theorem from the conditional refinement is commendable. If the conjectures hold, the precise constant 1/(3√(2π)) would give a sharp description of the oscillation.
minor comments (2)
- The exact recursion and initial conditions for ~Q should be displayed explicitly in the introduction before the self-similarity argument is invoked.
- In the combinatorial analysis of arch frequencies, a short reminder of the Catalan-number identity employed would aid readers who are not specialists in the enumeration.
Simulated Author's Rebuttal
We thank the referee for the positive and accurate summary of our manuscript. The report correctly captures the main contributions: the proof that the parity-perturbed sequence ~Q is well-defined for all n, the unconditional O(1/√log n) bound obtained from the exact dyadic self-similarity whose arch frequencies are counted by Catalan numbers, and the conditional refinement of the limsup constant. We also appreciate the acknowledgment that this resolves a natural perturbation of the still-open Hofstadter Q-sequence and the note on the experimental proxy relation. No specific major comments or criticisms appear in the report.
Circularity Check
No significant circularity detected
full rationale
The central proof proceeds by exhibiting an exact dyadic self-similarity of the perturbed recurrence, with alternating arches whose frequencies are enumerated by the standard Catalan numbers; the O(1/sqrt(log n)) bound is then extracted directly from the resulting recursive decomposition of the deviation. No parameters are fitted to the target quantity, no self-citations supply load-bearing uniqueness or ansatz, and the two conjectural arch-amplitude properties are explicitly quarantined to the sharper limsup statement. The derivation therefore rests on independent combinatorial facts rather than reducing to its own inputs by construction.
Axiom & Free-Parameter Ledger
axioms (2)
- domain assumption The frequency combinatorics of the alternating arches are governed by the Catalan numbers
- standard math The perturbed recurrence defines a unique sequence for every positive integer n
Reference graph
Works this paper leans on
- [1]
-
[2]
Alkan, On a conjecture about generalizedQ-recurrence,Open Math.16(2018), 1490– 1500
A. Alkan, On a conjecture about generalizedQ-recurrence,Open Math.16(2018), 1490– 1500
work page 2018
-
[3]
B. Balamohan, A. Kuznetsov, and S. Tanny, On the behavior of a variant of Hofstadter’s Q-sequence,J. Integer Seq.10(2007), Article 07.7.1
work page 2007
-
[4]
J.M. Campbell and B. Cloitre, Meta-automatic sequences, arXiv:2602.23395, 2026
-
[5]
Dekking, On Hofstadter’s married functions,Fibonacci Quart.61(2023), 199–211
F.M. Dekking, On Hofstadter’s married functions,Fibonacci Quart.61(2023), 199–211
work page 2023
-
[6]
Fox,An Exploration of Nested Recurrences Using Experimental Mathematics, Ph.D
N. Fox,An Exploration of Nested Recurrences Using Experimental Mathematics, Ph.D. the- sis, Rutgers University, 2017
work page 2017
-
[7]
Grytczuk, Another variation on Conway’s recursive sequence,Discrete Math.282(2004), 149–161
J. Grytczuk, Another variation on Conway’s recursive sequence,Discrete Math.282(2004), 149–161
work page 2004
-
[8]
Hofstadter,Gödel, Escher, Bach: An Eternal Golden Braid, Basic Books, New York, 1979
D.R. Hofstadter,Gödel, Escher, Bach: An Eternal Golden Braid, Basic Books, New York, 1979
work page 1979
-
[9]
D.M. Jackson and F. Ruskey, Meta-Fibonacci sequences, binary trees, and extremal compact codes,Electron. J. Combin.13(2006), #R26
work page 2006
-
[10]
T.KuboandR.Vakil, OnConway’srecursivesequence,Discrete Math.152(1996), 225–252
work page 1996
-
[11]
P. Letouzey, S. Li, and W. Steiner,Generalized Hofstadter functions: geometric representa- tions and numeration systems, arXiv:2410.07063, 2024
-
[12]
Mallows, Conway’s challenge sequence,Amer
C.L. Mallows, Conway’s challenge sequence,Amer. Math. Monthly98(1991), 5–20
work page 1991
-
[13]
Mantovanelli,Dyadic self-similarity in a perturbed HofstadterQ-recursion, arXiv:2603.16111, 2026
M. Mantovanelli,Dyadic self-similarity in a perturbed HofstadterQ-recursion, arXiv:2603.16111, 2026
-
[14]
J.Shallit,The Logical Approach to Automatic Sequences: Exploring Combinatorics on Words with Walnut, London Math. Soc. Lecture Note Series 482, Cambridge University Press, 2022. 33
work page 2022
discussion (0)
Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.