Work

The Hofstadter Q-sequence (OEIS A005185, Erdos Problem 422): a factor-three gap lemma for irregular jumps, and infinitely many decreases

Year: 2026
Type: preprint
Abstract: Erd\H{o}s Problem 422 asks whether the Hofstadter $Q$-sequence $Q(n)=Q(n-Q(n-1))+Q(n-Q(n-2))$, $Q(1)=Q(2)=1$ (OEIS A005185), misses infinitely many positive integers. It is not even known whether the sequence is defined for all $n$. We prove two unconditional statements about any function $f:\mathbb{Z}_{>0}\to\mathbb{Z}_{>0}$ satisfying the Hofstadter $Q$ recurrence with all arguments valid (the predicate $\mathrm{IsHofstadterQ}$). Such a function is unique if it exists, and it exists exactly when A005185 is defined everywhere. (i)~Gap lemma: call $m\ge 3$ \emph{exceptional} if $f(m)-f(m-1)\notin\{0,1\}$. Then every exceptional $m$ has another exceptional index in $(m,3m]$. (ii)~Corollary: $f$ is not eventually nondecreasing, so $f(n)<f(n-1)$ for infinitely many $n$. Neither statement settles whether the sequence is defined for all $n$, whether it is surjective, or whether it misses infinitely many integers. The full problem remains open. \smallskip \noindent Status: written proof, AI-reviewed, not formalized in Lean; no human peer review. Status: written proof, AI-reviewed, not formalized in Lean; no human peer review. Who did what: produced by AI models (Claude Opus 5.5 / gpt-6.2-sol / gpt-6.2-astra) in an automated pipeline; checked by Claude Sonnet, gpt-6.2-sol (high, xhigh) and an independent Claude Opus review with a literature search. The author set up and directed the pipeline and takes responsibility for the content.
Author: Yu, Yi
Institution: New York University
Language: English
Open Access status: green
OpenAlex ID: W7241979668
Cites:
Cited by:
Related to: