alphaFeedback

WorksMathematics

The Hankel determinants of the Baum-Sweet sequence are 2-automatic

AI contributions
  • Anthropic Claude Opus
View details

Abstract

Let b be the Baum-Sweet sequence and H_n = det(b_{i+j})_{0<=i,j<n} its Hankel determinants over F_2. We prove that the sequence chi_0(n) = [H_n != 0] is 2-automatic: chi_0(n+1) is computed by an explicit automaton with 8 states reading the binary expansion of n, and the minimal automaton of chi_0 reading least significant digits first has 74 states. The same holds for the shifted determinants det(b_{i+j+1}), with the same 8-state graph and 68 states. This contrasts with Mkaouar's theorem that the partial quotients of the Baum-Sweet series are not automatic. On the way we show that Theta = t f^2, a root of Z^3 + Z + t^3 in F_2((1/t)), has all its partial quotients in {t, t^3, t^3 + t}, given by an explicit coding of the Mills-Robbins expansion, and that the linear complexity profile of b satisfies -2 <= 2L(b,N) - N <= 3 for all N, all six values occurring. The proofs reduce to finite verifications, which an ancillary script performs.

Introduction

The Baum–Sweet sequence b=(bn)n≥0b=(b_n)_{n\geq0} over F2\mathbb{F}_2 is defined by b0=1b_0=1 and, for n≥1n\geq1, bn=1b_n=1 if and only if the binary expansion of nn has no block of zeros of odd length; equivalently b2n+1=bnb_{2n+1}=b_n, b4n=bnb_{4n}=b_n, b4n+2=0b_{4n+2}=0. Its generating series f=∑n≥0bnt−nf=\sum_{n\geq0}b_nt^{-n} is the unique root in F2((t−1))\mathbb{F}_2((t^{-1})) of

tf3+f+t=0.tf^3+f+t=0.

Baum and Sweet [4] showed that all partial quotients of ff have degree 1 or 2. Mills and Robbins [8] gave the expansion explicitly (§ 3), and Mkaouar [6] proved that the sequence of partial quotients is not automatic, although it is the image of a fixed point of a non-uniform substitution on 20 letters.

For c≥0c\geq0 let Hn(c)=det⁡(bc+i+j)0≤i,j<nH_n^{(c)}=\det(b_{c+i+j})_{0\leq i,j<n} (with H0(c)=1H_0^{(c)}=1) and

χc(n)={1if Hn(c)≠0,0otherwise.\chi_c(n)= \begin{cases} 1 & \text{if } H_n^{(c)}\ne0,\\ 0 & \text{otherwise.} \end{cases}

Hankel determinants of automatic sequences have been studied since Allouche, Peyrière, Wen and Wen [2]; Hu and Han [5] proved automaticity for the reduced Hankel determinants modulo 2 of a family of ±1\pm1 sequences, and Allouche, Han and Niederreiter [1 Section 7] ask whether the Hankel determinants of a dd-automatic sequence are dd-regular or, reduced modulo some integer, dd-automatic. For the Baum–Sweet sequence and reduction modulo 2 (the determinants of the 0, 1 matrices modulo 2 are the determinants over F2\mathbb{F}_2) the answer is positive.

Theorem 1.1. For c∈{0,1}c\in\{0,1\} the sequence χc\chi_c is 2-automatic. More precisely, let AA be the automaton with states 0,…,70,\ldots,7, initial state 0, and transitions

01234567
state01234567
digit 002461765
digit 113504576
output ω0\omega_011001001
output ω1\omega_111011011

Table 1.

reading the binary expansion of nn from the most significant digit. Then χc(n+1)\chi_c(n+1) is the output ωc\omega_c of the state reached, for every n≥0n\geq0; and χc(0)=1\chi_c(0)=1. The minimal automaton of χ0\chi_0 (resp.

χ1)\chi_1) reading the most significant digit first has 15 (resp. 8) states, and the one reading the least significant digit first has 74 (resp. 68) states.

Let Θ=tf2\Theta=tf^2. From tf3+f=ttf^3+f=t one gets Θ3+Θ=t(tf3+f)2=t3\Theta^3+\Theta=t(tf^3+f)^2=t^3, so Θ\Theta is a root of Z3+Z+t3Z^3+Z+t^3 in F2((t−1))\mathbb{F}_2((t^{-1})), and f/t=1/(1+Θ)f/t=1/(1+\Theta). Since Θ=t3/(1+Θ2)\Theta=t^3/(1+\Theta^2), Θ\Theta is hyperquadratic in the sense of Lasjaunias [La00]. As in § 3 we write X=tX=t when tt is used as a partial quotient.

Theorem 1.2. Θ=[X;a1,a2,…]\Theta=[X;a_1,a_2,\ldots] with every ai∈{X,X3,X3+X}a_i\in\{X,X^3,X^3+X\}. Explicitly, cut the Mills–Robbins word Γ∞\Gamma_\infty of § 3 into blocks consisting of one letter of degree 1 or of a letter of degree 2 followed by a letter of degree 1; then ai=ψ(i-th block)a_i=\psi(i\text{-th block}), where ψ\psi maps a block of degree 1 to XX, a block beginning with X2X^2 to X3X^3, and a block beginning with X2+1X^2+1 to X3+XX^3+X.

Corollary 1.3. Let L(b,N)L(b,N) be the NN-th linear complexity of bb over F2\mathbb{F}_2. For every N≥1N\geq1, 2L(b,N)−N∈{−2,−1,0,1,2,3}2L(b,N)-N\in\{-2,-1,0,1,2,3\}, and each of these six values occurs.

This refines the bounds N/3≤L(b,N)≤(2N+1)/3N/3\leq L(b,N)\leq(2N+1)/3 of Ḿerai and Winterhof [9 Corollary 3]. Some bound ∣2L(b,N)−N∣≤C|2L(b,N)-N|\leq C follows from the boundedness of the partial quotients of f/tf/t; the point is the exact window and the fact that it is attained. Allouche, Han and Niederreiter [1 Section 7] ask for which automatic sequences the profile can be computed exactly, and Theorem 1.1 gives it by an automaton. We also obtain the transfer relation χ0(n)=χ1(n)χ1(n−1)\chi_0(n)=\chi_1(n)\chi_1(n-1) for n≥1n\geq1 (Proposition 5.2).

The proofs reduce every infinite statement to a finite one: an induction on the Mills–Robbins recursion closed by finitely many boundary words (Lemma 4.1), a transducer with finitely many configurations (Theorem 5.1), and a self-similarity of the dyadic blocks (Proposition 3.2) that a finite automaton is shown to satisfy (§ 6). The finite verifications are carried out by the ancillary script, described in § 8.

Continued fractions and Hankel determinants

For α=∑n≥1sn−1t−n∈F2((t−1))\alpha=\sum_{n\geq1}s_{n-1}t^{-n}\in\mathbb{F}_2((t^{-1})) with convergents Pj/QjP_j/Q_j, one has det⁡(si+j)0≤i,j<n≠0\det(s_{i+j})_{0\leq i,j<n}\ne0 if and only if n∈{deg⁡Qj:j≥0}n\in\{\deg Q_j:j\geq0\}; this is the classical link between Hankel determinants and the Padé table, see e.g. [1]. We apply it to

α0=∑n≥0bnt−n−1=f/t,α1=∑n≥1bnt−n=f+1,\alpha_0=\sum_{n\geq0}b_nt^{-n-1}=f/t,\qquad\alpha_1=\sum_{n\geq1}b_nt^{-n}=f+1,

so that χ0\chi_0 and χ1\chi_1 are the indicator functions of Σ0={deg⁡Qj(α0)}\Sigma_0=\{\deg Q_j(\alpha_0)\} and Σ1={deg⁡Qj(α1)}\Sigma_1=\{\deg Q_j(\alpha_1)\}. If α=[0;q1,q2,…]\alpha=[0;q_1,q_2,\ldots] then deg⁡Qj=deg⁡q1+⋯+deg⁡qj\deg Q_j=\deg q_1+\cdots+\deg q_j. By Niederreiter’s theorem [10 Theorem 1], the linear complexity of s0,…,sN−1s_0,\ldots,s_{N-1} is deg⁡Qj\deg Q_j, where jj is determined by deg⁡Qj−1+deg⁡Qj≤N<deg⁡Qj+deg⁡Qj+1\deg Q_{j-1}+\deg Q_j\leq N<\deg Q_j+\deg Q_{j+1}.

The Mills–Robbins expansion and its dyadic structure

Write T={X,X+1,X2,X2+1}T=\{X,X+1,X^2,X^2+1\} (with X=tX=t), let τ\tau exchange X↔X+1X\leftrightarrow X+1 and X2↔X2+1X^2\leftrightarrow X^2+1, and, for a word ww, let w~\widetilde{w} be its reversal. Put Γ0=X+1\Gamma_0=X+1, Γ1=X+1,X2+1\Gamma_1=X+1,X^2+1, Γ2=X+1,X2+1,X,X2,X+1\Gamma_2=X+1,X^2+1,X,X^2,X+1 and, for n≥3n\geq3,

Γn=Γn−1τ′(Γ~n−3)ΛnΓn−3,\Gamma_n=\Gamma_{n-1}\tau'(\widetilde{\Gamma}_{n-3})\Lambda_n\Gamma_{n-3},

where τ′\tau' applies τ\tau to the first letter only, and

Λn=X,X+1,X2,(X,X2)k,X+1,X,k=(2n−1−4)/3, n odd,\Lambda_n=X,X+1,X^2,(X,X^2)^k,X+1,X,\qquad k=(2^{n-1}-4)/3,\ n\ \text{odd},
Λn=X+1,X2+1,(X,X2)k,X,X2+1,X+1,k=(2n−1−5)/3, n even.\Lambda_n=X+1,X^2+1,(X,X^2)^k,X,X^2+1,X+1,\qquad k=(2^{n-1}-5)/3,\ n\ \text{even}.

Each Γn\Gamma_n is a prefix of Γn+1\Gamma_{n+1}; let Γ∞\Gamma_\infty be the limit. Mills and Robbins proved [8], see [6 p. 363], that

f=[1;X,Γ∞].f=[1;X,\Gamma_\infty].

For a word ww over TT let D(w)D(w) be the sum of the degrees of its letters, and let φ\varphi be one of the codings φ1,φ0\varphi_1,\varphi_0 defined by φε(c)=1\varphi_\varepsilon(c)=1 if deg⁡c=1\deg c=1 and φ1(c)=01\varphi_1(c)=01, φ0(c)=00\varphi_0(c)=00 if deg⁡c=2\deg c=2. Both preserve lengths: ∣φ(w)∣=D(w)|\varphi(w)|=D(w).

Lemma 3.1. D(Γn)=2n+1−1D(\Gamma_n)=2^{n+1}-1 for all n≥0n\ge0; for n≥3n\ge3, D(Λn)=2n−1+2D(\Lambda_n)=2^{n-1}+2 and Λn\Lambda_n is a palindrome.

Proof. Λn\Lambda_n has (2n+7)/3(2^n+7)/3 letters, of which (2n−1−1)/3(2^{n-1}-1)/3 have degree 2, if nn is odd, and (2n+5)/3(2^n+5)/3 letters, of which (2n−1+1)/3(2^{n-1}+1)/3 have degree 2, if nn is even; in both cases D(Λn)=2n−1+2D(\Lambda_n)=2^{n-1}+2. Since τ\tau and reversal preserve degrees, D(Γn)=D(Γn−1)+2D(Γn−3)+2n−1+2D(\Gamma_n)=D(\Gamma_{n-1})+2D(\Gamma_{n-3})+2^{n-1}+2, and induction from D(Γ0)=1D(\Gamma_0)=1, D(Γ1)=3D(\Gamma_1)=3, D(Γ2)=7D(\Gamma_2)=7 gives the claim. □

Put An=φ(Γn)A_n=\varphi(\Gamma_n), Bn=φ(Γ~n)B_n=\varphi(\widetilde{\Gamma}_n), Ln=φ(Λn)L_n=\varphi(\Lambda_n) and, for m≥5m\ge5,

Gm=Bm−3LmAm−3.G_m=B_{m-3}L_mA_{m-3}.

By the recursion, the palindromy of Λn\Lambda_n and deg⁡τ(c)=deg⁡c\deg\tau(c)=\deg c, we have An=An−1GnA_n=A_{n-1}G_n and Bn=GnBn−1B_n=G_nB_{n-1} for n≥5n\ge5, and ∣Gm∣=2m|G_m|=2^m by Lemma 3.1.

Proposition 3.2. Let ω=1φ(Γ∞)\omega=1\varphi(\Gamma_\infty) (an infinite word indexed from 0). Then, for every m≥5m\ge5, ω[2m,2m+1)=Gm\omega[2^m,2^{m+1})=G_m; moreover ω[1,2n+1)=An\omega[1,2^{n+1})=A_n for all nn. Consequently, for m≥8m\ge8, q=2m−2q=2^{m-2} and 0≤x<2m0\le x<2^m:

(R1) if x≥3q+1x\ge3q+1, then ω(2m+x)=ω(x−3q)\omega(2^m+x)=\omega(x-3q);

(R2) if q−2j+1≤x<q−2jq-2^{j+1}\le x<q-2^j with 5≤j≤m−35\le j\le m-3, then ω(2m+x)=ω(2j+x−q+2j+1)\omega(2^m+x)=\omega(2^j+x-q+2^{j+1});

(R3) if q−32≤x≤q−2q-32\le x\le q-2, then ω(2m+x)=B4[x−q+32]\omega(2^m+x)=B_4[x-q+32];

(R4) if q−1≤x≤3qq-1\le x\le3q, then ω(2m+x)=Lm[x−q+1]\omega(2^m+x)=L_m[x-q+1].

Proof. ω=1A4G5G6⋯\omega=1A_4G_5G_6\cdots with ∣1A4∣=32|1A_4|=32, and ∣Gm∣=2m|G_m|=2^m; this gives the first two assertions. In Gm=Bm−3LmAm−3G_m=B_{m-3}L_mA_{m-3} the three factors have lengths q−1q-1, 2q+22q+2, q−1q-1, which gives (R4), and (R1) since Am−3[i]=ω(i+1)A_{m-3}[i]=\omega(i+1). For m≥8m\ge8, Bm−3=Gm−3Gm−4⋯G5B4B_{m-3}=G_{m-3}G_{m-4}\cdots G_5B_4, in which GjG_j occupies the positions [q−2j+1,q−2j)[q-2^{j+1},q-2^j) and B4B_4 the positions [q−32,q−1)[q-32,q-1); with Gj=ω[2j,2j+1)G_j=\omega[2^j,2^{j+1}) this gives (R2) and (R3). □

In binary, with n=2m+xn=2^m+x, the four cases read: (R1) n=111yn=111y with y≠0y\ne0, and then ω(n)=ω(y)\omega(n)=\omega(y); (R2) n=1001a0zn=1001^a0z with ∣z∣=j≥5|z|=j\ge5, and then ω(n)=ω(1z)\omega(n)=\omega(1z); (R3) n=1001m−7wn=1001^{m-7}w with ∣w∣=5|w|=5, w≠11111w\ne11111, and then ω(n)=B4[val⁡(w)]\omega(n)=B_4[\operatorname{val}(w)]; (R4) all remaining nn, namely 1001m−21001^{m-2}, 101u101u, 110u110u and 1110m−21110^{m-2}. In (R4), LmL_m is explicit: it is φ\varphi of the palindrome Λm\Lambda_m, whose middle part φ((X,X2)k)\varphi((X,X^2)^k) is periodic of period 3.

The factors of length three

Lemma 4.1. The set FF of factors of length 3 of Γ∞\Gamma_\infty has 20 elements and is closed under reversal. In Γ∞\Gamma_\infty no two letters of degree 2 are adjacent.

Proof. Let FF be the set of factors of length 3 of Γ16\Gamma_{16}; it has 20 elements and is closed under reversal. We show Fac⁡3(Γn)⊆F\operatorname{Fac}_3(\Gamma_n)\subseteq F for all n≥3n\ge3 by induction; for 3≤n≤83\le n\le8 this is a direct check. Let n≥9n\ge9. A factor of length 3 of Γn=Γn−1τ(Γ~n−3)ΛnΓn−3\Gamma_n=\Gamma_{n-1}\tau(\widetilde{\Gamma}_{n-3})\Lambda_n\Gamma_{n-3} either lies in one of the four blocks or meets a junction. Factors of Γn−1\Gamma_{n-1} and Γn−3\Gamma_{n-3} lie in FF by induction, factors of Γ~n−3\widetilde{\Gamma}_{n-3} by closure under reversal, and factors of Λn\Lambda_n by inspection: for n≥5n\ge5, Fac⁡3(Λn)\operatorname{Fac}_3(\Lambda_n) depends only on the parity of nn, and it is contained in FF. The remaining factors are the factor of τ′(Γ~n−3)\tau'(\widetilde{\Gamma}_{n-3}) containing its first letter and the six factors meeting the three junctions. They depend only on the first two letters of Γn−3\Gamma_{n-3}, the last three letters of Γn−1\Gamma_{n-1} and of Γn−3\Gamma_{n-3}, and the first two and last two letters of Λn\Lambda_n. The first two letters of Γk\Gamma_k are X+1,X2+1X+1,X^2+1 for all k≥1k\ge1; the last three letters of Γk\Gamma_k for k≥6k\ge6 are those of Γk−3\Gamma_{k-3}, hence depend only on k mod 3k\bmod3; the ends of Λn\Lambda_n depend only on the parity of nn. So these seven factors depend only on n mod 6n\bmod6, and the six cases are checked to lie in FF. The last statement is read off FF. □

A transducer for t/f

For a matrix M=(pqrs)M=\begin{pmatrix}p&q\\r&s\end{pmatrix} over F2[t]\mathbb{F}_2[t] and a series yy write M(y)=(py+q)/(ry+s)M(y)=(py+q)/(ry+s). To compute the continued fraction of z=t/fz=t/f from f=[1;X,Γ∞]f=[1;X,\Gamma_\infty] we keep a matrix MM with z=M(y)z=M(y), where yy is the remaining tail of ff. Reading a partial quotient aa of ff replaces MM by M(a110)M\begin{pmatrix}a & 1 \\ 1 & 0\end{pmatrix}; emitting a partial quotient κ\kappa of zz replaces MM by (011κ)M\begin{pmatrix}0 & 1 \\ 1 & \kappa\end{pmatrix}M. Both preserve det⁡M\det M up to sign, hence det⁡M=t\det M=t throughout (we start from M=(0t10)M=\begin{pmatrix}0 & t \\ 1 & 0\end{pmatrix}).

If y=a+1/y′y=a+1/y' with deg⁡a≥1\deg a\ge1, deg⁡y′≥1\deg y'\ge1, then M(y)−p/r=det⁡M/(r(ry+s))M(y)-p/r=\det M/(r(ry+s)), and deg⁡(ry+s)=deg⁡(ra+s)\deg(ry+s)=\deg(ra+s) as soon as deg⁡(ra+s)≥deg⁡r\deg(ra+s)\ge\deg r. Hence, if deg⁡(ra+s)≥deg⁡r\deg(ra+s)\ge\deg r and deg⁡r+deg⁡(ra+s)>deg⁡det⁡M\deg r+\deg(ra+s)>\deg\det M for every letter aa that can follow, the polynomial part κ\kappa of p/rp/r is the polynomial part of zz, and if deg⁡κ≥1\deg\kappa\ge1 it is a correct partial quotient of zz: we emit it. We emit greedily as long as this holds for every letter allowed by FF after the last two letters read.

Theorem 5.1. Run the transducer on 1,X,Γ∞1,X,\Gamma_\infty. The triples (matrix, last two letters read, E−DE-D), where DD is the degree read in Γ∞\Gamma_\infty and EE the degree emitted, form a set of 12 configurations closed under reading every letter allowed by FF. In each of them every emission is certain, and: reading a letter of degree 1 emits exactly one partial quotient, equal to XX, X3X^3 or X3+XX^3+X according as the previous letter has degree 1, is X2X^2, or is X2+1X^2+1, after which E=D+1E=D+1; reading a letter of degree 2 emits nothing, after which E=D−1E=D-1. The first emissions are X+1X+1 (after reading XX) and XX (after reading the first letter X+1X+1 of Γ∞\Gamma_\infty).

Proof. A finite computation over the 12 configurations and the letters allowed by FF (Lemma 4.1), performed by the script.

Proof of Theorem 1.2. By Theorem 5.1, t/f=[X+1;a1,a2,…]t/f=[X+1;a_1,a_2,\ldots] with ai=ψ(i-th block)a_i=\psi(i\text{-th block}), and Θ=t/f+1=[X;a1,a2,…]\Theta=t/f+1=[X;a_1,a_2,\ldots].

Proposition 5.2. χ1=1 ⁣1 φ1(Γ∞)\chi_1=1\!1\,\varphi_1(\Gamma_\infty) and χ0=1 ⁣1 φ0(Γ∞)\chi_0=1\!1\,\varphi_0(\Gamma_\infty). Consequently χ0(n)=χ1(n)χ1(n−1)\chi_0(n)=\chi_1(n)\chi_1(n-1) for n≥1n\ge1.

Proof. α1=f+1=[0;X,Γ∞]\alpha_1=f+1=[0;X,\Gamma_\infty], so Σ1\Sigma_1 consists of 0, 1 and the numbers 1+Di1+D_i, where DiD_i is the total degree of the first ii letters of Γ∞\Gamma_\infty; this is χ1=1 ⁣1 φ1(Γ∞)\chi_1=1\!1\,\varphi_1(\Gamma_\infty). Next α0=f/t=[0;t/f]\alpha_0=f/t=[0;t/f], so Σ0\Sigma_0 consists of 0 and the cumulative degrees of the partial quotients of t/ft/f. By Theorem 5.1 these are 1 and the numbers Di+1D_i+1 for which the ii-th letter of Γ∞\Gamma_\infty has degree 1; this is χ0=1 ⁣1 φ0(Γ∞)\chi_0=1\!1\,\varphi_0(\Gamma_\infty). For the last statement: χ0(n)=1\chi_0(n)=1 means that position nn ends a letter of degree 1, χ1(n)=1\chi_1(n)=1 that it ends a letter; a letter of degree 2 is coded 01 by φ1\varphi_1, so nn ends a letter of degree 1 if and only if both nn and n−1n-1 end letters.

Remark 5.3. Equivalently, Σ1=Σ0∪(Σ0−1)\Sigma_1=\Sigma_0\cup(\Sigma_0-1) (restricted to n≥0n\ge0). One inclusion holds for every sequence: by the Desnanot–Jacobi identity Hn+1(0)Hn−1(2)=Hn(0)Hn(2)−(Hn(1))2H_{n+1}^{(0)}H_{n-1}^{(2)}=H_n^{(0)}H_n^{(2)}-(H_n^{(1)})^2, if Hn(0)=Hn+1(0)=0H_n^{(0)}=H_{n+1}^{(0)}=0 then Hn(1)=0H_n^{(1)}=0, that is Σ1⊆Σ0∪(Σ0−1)\Sigma_1\subseteq\Sigma_0\cup(\Sigma_0-1). The reverse inclusion is specific: it fails for most random binary sequences.

Proof of Theorem 1.1

By Proposition 5.2, χc(n+1)=ω(n)\chi_c(n+1)=\omega(n) with ω=1φc(Γ∞)\omega=1\varphi_c(\Gamma_\infty) for n≥0n\ge0. The word ω\omega is determined by its first 256 letters and the rules (R1)–(R4) of Proposition 3.2, since each rule expresses ω(n)\omega(n), n≥256n\ge256, through a smaller index or an explicit word. It therefore suffices to show that the output ω^(n)\widehat{\omega}(n) of A\mathcal{A} on the binary expansion of nn satisfies the same rules and agrees with ω\omega on [0,256)[0,256). Since δ(0,0)=0\delta(0,0)=0, leading zeros do not matter. Each rule is a statement about all words of a regular shape, and is checked in a finite product automaton:

  • (R1): for all yy with ∣y∣≥6|y|\ge6, y≠0y\ne0, the states reached from δ(0,111)\delta(0,111) and from 0 by reading yy have the same output (reachability in A×A×{length≤6}×{y=0?}\mathcal{A}\times\mathcal{A}\times\{\text{length}\le6\}\times\{y=0?\});

  • (R2): the same for the states reached from δ(0,1001a0)\delta(0,1001^a0), a≥0a\ge0 (a finite set of states), and from δ(0,1)\delta(0,1), by words of length at least 5;

  • (R3): ω^(1001cw)=B4[w]\widehat{\omega}(1001^c w)=B_4[w] for c≥1c\ge1 and the 31 words ww;

  • (R4): ℓm[i]\ell_m[i] depends only on the parity of mm, on i mod 3i\bmod3, and on whether ii is one of the first four or last four positions; in the regions 101u101u and 110u110u the index ii is val⁡(u)+1\operatorname{val}(u)+1 and 2∣u∣+val⁡(u)+12^{|u|}+\operatorname{val}(u)+1, so the expected value is computed by a small automaton tracking val⁡(u)\operatorname{val}(u) mod 3, the parity of ∣u∣|u| and whether u∈0∗,0∗1,0∗10u\in0^*,0^*1,0^*10 (resp. 1∗,1∗0,1∗011^*,1^*0,1^*01); the two remaining words 1001m−2,1110m−21001^{m-2},1110^{m-2} have value 1.

All these checks succeed for c=0c = 0 and c=1c = 1 (script, Part 5). Hence ω^=ω\widehat{\omega} = \omega, and χc(n+1)=ω^(n)\chi_c(n+1) = \widehat{\omega}(n) for all nn.

From A\mathcal{A} one builds an automaton Bc\mathcal{B}_c for n↦χc(n)=ω^(n−1)n \mapsto\chi_c(n) = \widehat{\omega}(n-1) whose states are the pairs (state of A\mathcal{A} on nn, state of A\mathcal{A} on n−1n-1), plus an initial state for n=0n = 0: reading a digit updates both, since 2n+1−1=2n2n+1-1 = 2n and 2n−1=2(n−1)+12n-1 = 2(n-1)+1. All automata here read the most significant digit first and accept leading zeros. Minimising Bc\mathcal{B}_c gives 15 and 8 states. For the other reading direction, the minimal automaton reading least significant digits first has one state per element of the 2-kernel {n↦χc(2kn+r):k≥0,0≤r<2k}\{n \mapsto\chi_c(2^k n + r) : k \ge0, 0 \le r < 2^k\} (by the Myhill–Nerode theorem; see [3 Section 6.6]). The kernel element of (k,r)(k,r) is the sequence n↦o(δ(σn,w))n \mapsto o(\delta(\sigma_n,w)), where σn\sigma_n is the state of Bc\mathcal{B}_c on nn and ww the kk digits of rr. Every state of Bc\mathcal{B}_c is some σn\sigma_n, so two kernel elements are equal if and only if the maps σ↦o(δ(σ,w))\sigma\mapsto o(\delta(\sigma,w)) coincide on the states of Bc\mathcal{B}_c. Enumerating these maps over all words ww gives 74 and 68. □

Proof of Corollary 1.3

By Proposition 5.2 and Theorem 5.1, the consecutive elements of Σ0={d0<d1<…}\Sigma_0 = \{d_0 < d_1 < \ldots\} differ by the degrees of the partial quotients of t/ft/f, that is by 1 or 3, both occurring. By Niederreiter’s theorem, L=L(b,N)=djL = L(b,N) = d_j with dj−1+dj≤N<dj+dj+1d_{j-1} + d_j \le N < d_j + d_{j+1}, so 2L−N≤dj−dj−1≤32L - N \le d_j - d_{j-1} \le3 and 2L−N≥1−(dj+1−dj)≥−22L - N \ge1 - (d_{j+1} - d_j) \ge-2. If dj−dj−1=3d_j - d_{j-1} = 3, the values 3, 2, 1, 0 occur on this interval of NN; if dj+1−dj=3d_{j+1} - d_j = 3, the values 1, 0, −1-1, −2-2 occur. □

Verification

The ancillary file verify_baum_sweet_hankel.py (Python 3, no dependency, exact arithmetic over F2\mathbb{F}_2, under a minute) performs all the finite checks used above: Lemma 4.1 (the set F\mathcal{F}, the base cases and the seven boundary factors of each class nn mod 6); Theorem 5.1 (the 12 configurations, the certainty of every emission, the bookkeeping of E−DE-D); and the rules (R1)–(R4) for A\mathcal{A}, the base table, the minimal automata and the kernels. It also checks the statements against first principles: the Hankel determinants by Gaussian elimination for n≤300n \le300; the continued fractions of α0\alpha_0 and α1\alpha_1 by Euclid’s algorithm, against Γ∞\Gamma_\infty and against the automaton, for n<216n < 2^{16}; and the linear complexity by the Berlekamp–Massey algorithm for N≤3000N \le3000.

Acknowledgement

Acknowledgement. Technical assistance: Claude (Anthropic).

References

  1. [1]J.-P. Allouche, G.-N. Han and H. Niederreiter, Perfect linear complexity profile and apwenian sequences, Finite Fields Appl. 68 (2020), 101761.arxiv.org/abs/2008.12160
  2. [2]J.-P. Allouche, J. Peyrière, Z.-X. Wen and Z.-Y. Wen, Hankel determinants of the Thue–Morse sequence, Ann. Inst. Fourier 48 (1998), 1–27.DOI
  3. [3]J.-P. Allouche and J. Shallit, Automatic Sequences, Cambridge University Press, 2003.
  4. [4]L. E. Baum and M. M. Sweet, Continued fractions of algebraic power series in characteristic 2, Ann. of Math. 103 (1976), 593–610.DOI
  5. [5]Y. Hu and G.-N. Han, On the automaticity of the Hankel determinants of a family of automatic sequences, Theoret. Comput. Sci. 795 (2019), 154–164.arxiv.org/abs/1806.05864
  6. [6]M. Mkaouar, Sur le développement en fraction continue de la série de Baum et Sweet, Bull. Soc. Math. France 123 (1995), 361–374.DOI
  7. [8]W. H. Mills and D. P. Robbins, Continued fractions for certain algebraic power series, J. Number Theory 23 (1986), 388–404.
  8. [9]L. Mérai and A. Winterhof, On the Nth linear complexity of automatic sequences, J. Number Theory 187 (2018), 415–429.DOI
  9. [10]H. Niederreiter, Sequences with almost perfect linear complexity profile, in Advances in Cryptology – EUROCRYPT ’87, Lecture Notes in Comput. Sci. 304, Springer, 1988, 37–51.

Paper details

vlnc:W_epug9gz2
v1 · latestHistory (1)

published · Fresh — added to the Hub within the last 30 days

added ·

Usage

views · 8

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

CC BY 4.0

Original source

  • Mathematics

Anthropic Claude Opus · View statement →

Looking for related papers…
Contents