Natural densities modulo 32 for van Doorn's binary recurrence
How often does van Doorn's binary recurrence visit an individual residue modulo \(32\)? For \(a_1=1\) and \(a_n=a_{n-1}+a_{\lfloor n/2\rfloor}\) for integers \(n\ge2\), the paper proves that every odd class and every class congruent to \(2\) modulo \(4\) has the same natural density. For every residue \(x\) modulo \(32\), \[\lim_{N\to\infty}\frac1N\#\{1\le n\le N:a_n\equiv x\pmod{32}\}=\begin{cases}0,&4\mid x,\\1/24,&4\nmid x.\end{cases}\] The limit runs over all positive integer prefix lengths. The recurrence gives \((1-z)A(z)=z+(1+z)A(z^2)\) for \(A(z)=\sum_{n\ge1}a_nz^n\). Working over \(R=\mathbb Z/32\mathbb Z\), a state \((p,q)\) represents \((p(z)A(z)+q(z))/(1-z)^5\), with \(p,q\in R[z]\) of degree at most five, allowing zero. Start at \(((1-z)^5,0)\) and read the bits of \(n\) from least to most significant. For \(b\in\{0,1\}\), let \(S_b(\sum_{j\ge0}f_jz^j)=\sum_{j\ge0}f_{2j+b}z^j\). The transition replaces \(p,q\) by \[p'=\frac{S_b[p(1+z)^7]}{1-z},\qquad q'=\frac{S_b[zp(1+z)^6+q(1-z)(1+z)^6]}{1-z}.\] These are polynomial divisions in \(R[z]\), and the output \(o(p,q)=q(0)\) returns \(a_n\bmod32\). In the resulting 60-state machine, independent fair low bits give a limiting state law \(\pi\). For every finite high-bit word \(w\), the transition \(T_w\) preserves its output distribution, \((o\circ T_w)_*\pi=o_*\pi\), where the star denotes pushforward. The four closed classes yield the claimed frequencies, and histogram invariance gives uniform error over aligned binary blocks. Decomposing an arbitrary prefix into such blocks yields the full limit. The identity \(a_n=b(2n)/2\) for \(n\ge1\), where \(b(m)\) counts partitions of \(m\) into powers of two, also makes these densities frequencies of the classes \(b(2n)\equiv2x\pmod{64}\). Van Doorn, §§4 and 6, question on odd residues modulo 32. For \(a_1=1\) and \(a_n=a_{n-1}+a_{\lfloor n/2\rfloor}\) for integers \(n\ge2\), does \(\{n\ge1:a_n\equiv x\pmod{32}\}\) have a natural density for every odd residue \(x\), and what is that density? Each of the sixteen odd classes has density \(1/24\) over all positive integer prefix lengths. The theorem also gives density \(1/24\) for the eight classes congruent to \(2\) modulo \(4\) and zero for the eight multiples of four.
Authors
- Zixuan He
Institutions
- University of Glasgow (GB)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-12-01
- DOI
- https://doi.org/10.5281/zenodo.24700418
- Primary Topic
- Analytic Number Theory Research
- Type
- preprint