Parity codes from the quadratic recurrence separate all even from all large odd moduli
Parity codes from the quadratic recurrence separate all even from all large odd moduli For a seed pair \((x_1,x_2)\) modulo \(m\ge2\), take least nonnegative representatives of the recurrence \(x_{t+1}\equiv x_{t-1}-x_t^2\pmod m\). Place the first twenty parity bits \(b_t=x_t\bmod2\) in row order in a \(4\times5\) matrix \(P\). The binary code generated by \([I_4\mid P]\) has maximum possible minimum distance over seeds equal to two for every even \(m\) and four for every sufficiently large odd \(m\), including composite moduli. These are the two sides of the parity separation asked about in MathOverflow 518117. When \(m\) is even, \(b_{t+1}=b_{t-1}+b_t\) in \(\mathbb F_2\), hence \(b_{t+3}=b_t\). The first and fourth parity rows coincide, giving a weight-two codeword. With a nonzero parity seed all rows have positive weight, so the minimum equals two. For odd \(m\), write \(x_t\equiv2z_t\pmod m\) with \(0\le z_t<m\). The bit is \(b_t=\mathbf1\{z_t/m>1/2\}\), and \(z_{t+1}\equiv z_{t-1}-2z_t^2\pmod m\). For every fixed \(L\) and every binary word \(\mathbf b\) of length \(L\), uniform averaging of the two seed coordinates gives \[\lim_{\substack{m\to\infty\m\ \mathrm{odd}}}\Pr_m\{(b_1,\ldots,b_L)=\mathbf b\}=2^{-L}. \] For the linear Fourier modes, the complete average over both seeds is exactly zero at sufficiently large \(m\). For a fixed higher mode, if its polynomial in the second seed has degree \(d\ge2\) and leading coefficient \(\lambda\ne0\), independent of the first seed, \(d-1\) finite differences give a bound for the \(2^{d-1}\)-th power of the normalized complete sum by \[(d-1)\tau(M)M^{-1/(d-1)},\qquad M=m/\gcd(m,d!\lambda). \] This tends to zero without requiring \(m\) to be prime. Weyl's criterion gives Haar convergence of the normalized residue vector, and the parity-coding half-cubes have null boundary. A parity matrix made of the \(4\times4\) off-diagonal ones matrix and one zero column gives distance four. The Griesmer lower bound on block length for distance five is \(5+3+2+1=11\), above the given length nine. The fraction of distance-four seeds along odd moduli tends to \(9960/2^{20}\), from the exact count of qualifying ordered parity rows. The asymptotic result concerns sufficiently large odd moduli and allows finite exceptions such as \(m=17\).
Authors
- Zixuan He
Institutions
- University of Glasgow (GB)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-12-04
- DOI
- https://doi.org/10.5281/zenodo.24803136
- Primary Topic
- Coding theory and cryptography
- Type
- preprint