Paperlane

no. 21 · Tuesday 24 November 2026

A Dyadic Frequency Law for a Perturbed Hofstadter $Q$-Recursion

Marco Mantovanelli

math.CO · v4 · 20 pp

Abstract

We study the parity-perturbed Hofstadter $Q$-recursion defined by $$Q(1)=Q(2)=1,\qquad Q(n)=Q(n-Q(n-1))+Q(n-Q(n-2))+(-1)^n \quad(n\ge3).$$ for $n\ge3$. Cloître proved that the recursion is globally well-defined and encoded its odd- and even-indexed subsequences by binary arches and canonical plane forests. Let $F(s)=\#\{n\ge1:Q(n)=2s-1\}$, and let $ν_2(j)$ denote the exponent of $2$ in $j$. For every integer $k\ge0$, we prove the multiset identity $$ \{F(s):2^k\le s<2^{k+1}\}=\{3+ν_2(j):1\le j\le 2^k\}. $$ The proof expresses frequencies as sums of plateau lengths and folds reflected gap pairs to identify the excess frequencies $F(s)-3$ with the outdegrees of a canonical plane tree. For $k\ge2$, the maximum $k+3$ occurs at $s_k=\lceil 2^{k+2}/3\rceil$, and the second-largest frequency $k+2$ occurs at $s_k+1$. As a corollary, the sum with marks $z^{F(s)-3}$ and dyadic block weights $2^{-ku}$, multiplied by the Dirichlet eta function $η(u)$, has the Euler product of $ζ(u)$ with its factor at $2$ replaced by $(1-z2^{-u})^{-1}$. Finally, we prove that the dyadic defect $Q(2n)-2Q(n)$ attains order $n/\sqrt{\log n}$ in absolute value along a subsequence.

comments
20 pages, 4 figures; Version 4 locates the two highest frequencies in each nonsingleton dyadic block and proves that the dyadic defect attains order $n/\sqrt{\log n}$ along a subsequence. The eta-normalized marked block sum has the Euler product of $ζ(u)$ modified only at 2. We also shorten the proof of Lemma 5.2, update references, and add code checking the peak locations
fields
Combinatorics, Number Theory