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

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.

Authors

Institutions

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-12-01
DOI
https://doi.org/10.5281/zenodo.24703461
Primary Topic
Analytic Number Theory Research
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

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

Yi Yu
Zenodo (CERN European Organization for Nuclear Research)
Analytic Number Theory Research
preprint

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

Yi Yu
preprint en

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.

Zenodo (CERN European Organization for Nuclear Research)
New York University (US)
Analytic Number Theory Research
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