Record automaticity for rationally shifted oscillating sums

Yes. For every quadratic irrational \(\xi\) and every rational offset \(\gamma\), a finite automaton reading the Ostrowski digits of \(n\) in the original parameter \(\xi\) can decide whether \(n\) is the first occurrence of a value of the walk \[W_0=0,\qquad W_n=\sum_{j=1}^{n}(-1)^{\lfloor j\xi+\gamma\rfloor}\quad(n\ge1). \] The automaton can distinguish strict upper records, where \(W_n>\max_{0\le k<n}W_k\), from strict lower records, where \(W_n<\min_{0\le k<n}W_k\). These exhaust the first occurrences at positive indices because steps of size \(1\) in either direction visit every integer between the earlier minimum and maximum. The comparison includes \(W_0\). This answers the rational-offset record question in Bruin and Fokkink, §6, pp. 13–14. For a parameter \(\rho\), write its fractional part as \([0;c_1,c_2,\ldots]\) and denote the convergent denominators by \(q_i(\rho)\), starting at \(q_0(\rho)=1\). The canonical Ostrowski digits represent \(n=\sum_{i\ge0}e_iq_i(\rho)\). They satisfy \(0\le e_0<c_1\) and \(0\le e_i\le c_{i+1}\) for \(i\ge1\), with \(e_i=c_{i+1}\) forcing \(e_{i-1}=0\). The automaton accepts the canonical digit words for the record indices, read from the most significant digit. The offset enters through a finite residue calculation. Set \(\theta=\{\xi/2\}\) and write \(\gamma=a/b\) with \(a\in\mathbb Z\) and \(b\ge1\) an integer. Since \(\xi-2\theta\) is an even integer, the step sign is \(g(j)=(-1)^{\lfloor2j\theta+\gamma\rfloor}\). For \(j\ge1\), let \(e_i\) be the \(\theta\)-Ostrowski digits of \(2bj-1\), and let \(p_i\) be the numerator of the \(i\)th convergent of \(\theta\), with \(p_0=0\). Then \[\lfloor2j\theta+\gamma\rfloor =\left\lfloor\frac{\lfloor2bj\theta\rfloor+a}{b}\right\rfloor, \qquad \lfloor2bj\theta\rfloor=\sum_i e_i p_i. \] The parity of the first expression depends only on the residue of the sum modulo \(2b\), including for negative \(a\). The convergent numerators are ultimately periodic modulo \(2b\), and fixed multiplication and addition are finite-state operations in this quadratic numeration. This gives a step automaton on padded \(\theta\) digits, with \(g(0)=(-1)^{\lfloor\gamma\rfloor}\). The same rotation supplies the uniform bound needed by the inherited record construction. The step is positive precisely when \(\{j\theta+\gamma/2\}\in[0,1/2)\). For every convergent denominator \(q\) of \(\theta\), every block of \(q\) consecutive steps has absolute sum at most \(13\). The equally spaced grid with the same starting point has a signed sum of absolute value at most \(1\). Replacing the grid by the rotation can change signs only at the at most six grid points within circular distance \(1/q\) of the two half-interval boundaries, each contributing a change of at most \(2\). To construct the upper-record test, choose a fixed low suffix of \(L\) digits beyond the continued-fraction preperiod and group the remaining digits into blocks of one period, of width \(P\). At a state \(s\) of the step automaton augmented with the digit constraint, let \(T_s(m)\) be the total and \(M_s(m)\) the largest nonempty prefix sum of the signs over legal completions with \(m\) blocks remaining, in digit order. The fixed suffix gives the starting values at \(m=0\). For a legal next block \(v\), write \(s_v\) for its successor state and put \(A_{s,v}(m)=\sum_{w<v}T_{s_w}(m-1)\), summing over earlier legal blocks. The recursion is \[T_s(m)=\sum_v T_{s_v}(m-1),\qquad M_s(m)=\max_v\{A_{s,v}(m)+M_{s_v}(m-1)\}. \] The loss relative to the current maximum increases by \(M_s(m)-A_{s,v}(m)-M_{s_v}(m-1)\ge0\) on this transition, with the final loss read from the fixed suffix. At the initial state the maximum \(M(m)\) ranges over \(g(0)+W_n\) for \(0\le n<q_{L+Pm}(\theta)\). The increments \(J(m)=M(m)-M(m-1)\) for \(m\ge1\) are ultimately periodic and bounded by some integer \(B\ge0\). Losses can be accumulated with a cap of \(B+1\) using an ultimately periodic table of capped transition losses. For each integer \(0\le d<J(m)\), keep the least padded digit word with loss \(d\). It is the first visit to \(M(m)-d\) and lies in the newly added range \([q_{L+P(m-1)}(\theta),q_{L+Pm}(\theta)-1]\). Check the finitely many indices below \(q_L(\theta)\) directly. Applying the same rule to \(-g\) gives the lower records. The return to the printed numeration preserves the integer index. The two parameters lie in the same real quadratic field. Lengthening even period blocks in the two continued fractions gives a common dominant unit \(u>1\) of norm one, so both denominator sequences can be converted to the reference basis \(U_0=1\), \(U_1=t\), \(U_{j+2}=tU_{j+1}-U_j\), where \(t=u+u^{-1}\) is an integer at least \(3\). For either parameter \(\rho\), choose a low suffix of width \(L_\rho\) and the resulting period block width \(P_\rho\). At each phase \(0\le\ell<P_\rho\), the denominator \(q_{L_\rho+P_\rho j+\ell}(\rho)\) equals \(A_\ell U_j+B_\ell U_{j+1}\), with integer coefficients fixed by matching \(j=0,1\). A digit at that position contributes to those two adjacent basis coefficients, and the low suffix contributes at \(U_0\). Finite-state normalisation puts both signed coefficient words into the same greedy representation of their integer value. Matching these representations transfers the upper- and lower-record tests to the canonical \(\xi\) digits, even when the two continued fractions have different preperiods or block widths. Frougny, §2.6, for finite-state normalisation

Authors

Institutions

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-12-04
DOI
https://doi.org/10.5281/zenodo.24804099
Primary Topic
Mathematical Dynamics and Fractals
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

Record automaticity for rationally shifted oscillating sums

Zixuan He
Zenodo (CERN European Organization for Nuclear Research)
Mathematical Dynamics and Fractals
preprint

Record automaticity for rationally shifted oscillating sums

Zixuan He
preprint en

Abstract

Yes. For every quadratic irrational \(\xi\) and every rational offset \(\gamma\), a finite automaton reading the Ostrowski digits of \(n\) in the original parameter \(\xi\) can decide whether \(n\) is the first occurrence of a value of the walk \[W_0=0,\qquad W_n=\sum_{j=1}^{n}(-1)^{\lfloor j\xi+\gamma\rfloor}\quad(n\ge1). \] The automaton can distinguish strict upper records, where \(W_n>\max_{0\le k<n}W_k\), from strict lower records, where \(W_n<\min_{0\le k<n}W_k\). These exhaust the first occurrences at positive indices because steps of size \(1\) in either direction visit every integer between the earlier minimum and maximum. The comparison includes \(W_0\). This answers the rational-offset record question in Bruin and Fokkink, §6, pp. 13–14. For a parameter \(\rho\), write its fractional part as \([0;c_1,c_2,\ldots]\) and denote the convergent denominators by \(q_i(\rho)\), starting at \(q_0(\rho)=1\). The canonical Ostrowski digits represent \(n=\sum_{i\ge0}e_iq_i(\rho)\). They satisfy \(0\le e_0<c_1\) and \(0\le e_i\le c_{i+1}\) for \(i\ge1\), with \(e_i=c_{i+1}\) forcing \(e_{i-1}=0\). The automaton accepts the canonical digit words for the record indices, read from the most significant digit. The offset enters through a finite residue calculation. Set \(\theta=\{\xi/2\}\) and write \(\gamma=a/b\) with \(a\in\mathbb Z\) and \(b\ge1\) an integer. Since \(\xi-2\theta\) is an even integer, the step sign is \(g(j)=(-1)^{\lfloor2j\theta+\gamma\rfloor}\). For \(j\ge1\), let \(e_i\) be the \(\theta\)-Ostrowski digits of \(2bj-1\), and let \(p_i\) be the numerator of the \(i\)th convergent of \(\theta\), with \(p_0=0\). Then \[\lfloor2j\theta+\gamma\rfloor =\left\lfloor\frac{\lfloor2bj\theta\rfloor+a}{b}\right\rfloor, \qquad \lfloor2bj\theta\rfloor=\sum_i e_i p_i. \] The parity of the first expression depends only on the residue of the sum modulo \(2b\), including for negative \(a\). The convergent numerators are ultimately periodic modulo \(2b\), and fixed multiplication and addition are finite-state operations in this quadratic numeration. This gives a step automaton on padded \(\theta\) digits, with \(g(0)=(-1)^{\lfloor\gamma\rfloor}\). The same rotation supplies the uniform bound needed by the inherited record construction. The step is positive precisely when \(\{j\theta+\gamma/2\}\in[0,1/2)\). For every convergent denominator \(q\) of \(\theta\), every block of \(q\) consecutive steps has absolute sum at most \(13\). The equally spaced grid with the same starting point has a signed sum of absolute value at most \(1\). Replacing the grid by the rotation can change signs only at the at most six grid points within circular distance \(1/q\) of the two half-interval boundaries, each contributing a change of at most \(2\). To construct the upper-record test, choose a fixed low suffix of \(L\) digits beyond the continued-fraction preperiod and group the remaining digits into blocks of one period, of width \(P\). At a state \(s\) of the step automaton augmented with the digit constraint, let \(T_s(m)\) be the total and \(M_s(m)\) the largest nonempty prefix sum of the signs over legal completions with \(m\) blocks remaining, in digit order. The fixed suffix gives the starting values at \(m=0\). For a legal next block \(v\), write \(s_v\) for its successor state and put \(A_{s,v}(m)=\sum_{w<v}T_{s_w}(m-1)\), summing over earlier legal blocks. The recursion is \[T_s(m)=\sum_v T_{s_v}(m-1),\qquad M_s(m)=\max_v\{A_{s,v}(m)+M_{s_v}(m-1)\}. \] The loss relative to the current maximum increases by \(M_s(m)-A_{s,v}(m)-M_{s_v}(m-1)\ge0\) on this transition, with the final loss read from the fixed suffix. At the initial state the maximum \(M(m)\) ranges over \(g(0)+W_n\) for \(0\le n<q_{L+Pm}(\theta)\). The increments \(J(m)=M(m)-M(m-1)\) for \(m\ge1\) are ultimately periodic and bounded by some integer \(B\ge0\). Losses can be accumulated with a cap of \(B+1\) using an ultimately periodic table of capped transition losses. For each integer \(0\le d<J(m)\), keep the least padded digit word with loss \(d\). It is the first visit to \(M(m)-d\) and lies in the newly added range \([q_{L+P(m-1)}(\theta),q_{L+Pm}(\theta)-1]\). Check the finitely many indices below \(q_L(\theta)\) directly. Applying the same rule to \(-g\) gives the lower records. The return to the printed numeration preserves the integer index. The two parameters lie in the same real quadratic field. Lengthening even period blocks in the two continued fractions gives a common dominant unit \(u>1\) of norm one, so both denominator sequences can be converted to the reference basis \(U_0=1\), \(U_1=t\), \(U_{j+2}=tU_{j+1}-U_j\), where \(t=u+u^{-1}\) is an integer at least \(3\). For either parameter \(\rho\), choose a low suffix of width \(L_\rho\) and the resulting period block width \(P_\rho\). At each phase \(0\le\ell<P_\rho\), the denominator \(q_{L_\rho+P_\rho j+\ell}(\rho)\) equals \(A_\ell U_j+B_\ell U_{j+1}\), with integer coefficients fixed by matching \(j=0,1\). A digit at that position contributes to those two adjacent basis coefficients, and the low suffix contributes at \(U_0\). Finite-state normalisation puts both signed coefficient words into the same greedy representation of their integer value. Matching these representations transfers the upper- and lower-record tests to the canonical \(\xi\) digits, even when the two continued fractions have different preperiods or block widths. Frougny, §2.6, for finite-state normalisation

Zenodo (CERN European Organization for Nuclear Research)
University of Glasgow (GB)
Mathematical Dynamics and Fractals
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