The A005811 Hankel transform for 1−x+x2/(1+x2r(x2))1-x+x^2/(1+x^2r(x^2))

About 5 years old · traced to

Let r(x)r(x) be the generating function of the Rueppel sequence, and let the Hankel transform be the sequence of determinants of successive Hankel matrices. A005811 Hankel-transform conjecture. The Hankel transform of the sequence with generating function

1−x+x21+x2r(x2)1-x+\frac{x^2}{1+x^2r(x^2)}

is given by OEIS sequence A005811 evaluated at n−1n-1. The paper supports this with initial terms and a parameterized calculation, but supplies no proof or resolution.

References

Primary source

Paul Barry, “Conjectures and results on some generalized Rueppel sequences”, arXiv:2107.00442 (2021).

Progress summary

Refreshed
Claimed progress

A submitted calculation says the stated pattern fails at its first nontrivial test and proposes a corrected version, but nobody has independently checked it.

Paul Barry’s Conjecture 15 asks whether the Hankel transform of the sequence generated by 1−x+x21+x2r(x2)1-x+\frac{x^2}{1+x^2r(x^2)} equals the values of A005811\mathrm{A005811} shifted by one index. His paper records initial terms and parameterized evidence, but no proof.

Community submission (unverified), August 25, 2026

A submitted calculation argues that the literal claim fails at n=2n=2: it reports T2+=−1T_2^+=-1 while A005811(1)=1\mathrm{A005811}(1)=1. It proposes inserting absolute values and claims the corrected identity ∣Tn+∣=A005811(n−1)|T_n^+|=\mathrm{A005811}(n-1) for n≥2n\ge2, supported by a purported general determinant argument. This submission is unverified.

Current status (as of August 2026): The original equality is challenged by an unverified counterexample, while the proposed absolute-value replacement and its proof remain unverified.

Sources

Solutions 1

CounterexampleThis solution needs a summarySee full solutionHide full solution

Counterexample and the corrected binary-run Hankel theorem

Let

r(x)=∑j≥0x2j−1,F±(x)=1−x+x21±x2r(x2),r(x)=\sum_{j\geq0}x^{2^j-1}, \qquad F_{\pm}(x)=1-x+\frac{x^2}{1\pm x^2r(x^2)},

and define

Tn±=det⁡([xi+j]F±(x))0≤i,j≤n.T_n^{\pm} =\det\bigl([x^{i+j}]F_{\pm}(x)\bigr)_{0\leq i,j\leq n}.

The literal statement

Tn+=A005811⁡(n−1)(1)T_n^+=\operatorname{A005811}(n-1) \tag{1}

is false. Indeed,

F+(x)=1−x+x2−x4+O(x6),F_+(x)=1-x+x^2-x^4+O(x^6),

so at n=2n=2 its Hankel determinant is

T2+=det⁡(1−11−11010−1)=−1,A005811⁡(1)=1.(2)T_2^+ =\det\begin{pmatrix} 1&-1&1\\ -1&1&0\\ 1&0&-1 \end{pmatrix} =-1, \qquad \operatorname{A005811}(1)=1. \tag{2}

Thus T2+≠A005811⁡(1)T_2^+\neq\operatorname{A005811}(1). The issue is a missing absolute value, not a failure of the intended binary-run pattern. The source's own displayed Hankel sequence already contains negative terms. Moreover, its asserted offset is undefined at n=0n=0, so that initial case must be handled separately.

Write ρ(m)\rho(m) for the number of runs in the ordinary binary expansion of m≥1m\geq1, with ρ(0)=0\rho(0)=0, and put

Jm=det⁡(ri+j+1)0≤i,j<m,J0=1.(3)J_m=\det(r_{i+j+1})_{0\leq i,j<m}, \qquad J_0=1. \tag{3}

We prove the following exact signed formulas:

T0+=T0−=1,T1+=T1−=0,Tn+=(−1)n−1Jn−1ρ(n−1),Tn−=−Jn−1ρ(n−1)(n≥2).(4)\boxed{ \begin{aligned} T_0^+&=T_0^-=1,\\ T_1^+&=T_1^-=0,\\ T_n^+&=(-1)^{n-1}J_{n-1}\rho(n-1),\\ T_n^-&=-J_{n-1}\rho(n-1) \qquad(n\geq2). \end{aligned}} \tag{4}

In particular, because Jm∈{−1,1}J_m\in\{-1,1\},

∣Tn+∣=∣Tn−∣=ρ(n−1)=A005811⁡(n−1)(n≥2).(5)\boxed{ |T_n^+|=|T_n^-| =\rho(n-1) =\operatorname{A005811}(n-1) \qquad(n\geq2). } \tag{5}

Consequently, the literal Conjecture 15 in Paul Barry, Conjectures and results on some generalized Rueppel sequences requires an absolute value; (5) proves its corrected intended binary-run statement for every meaningful index. It simultaneously covers the denominator with a plus sign appearing in the conjecture and the denominator with a minus sign underlying its displayed initial example.

A universal two-sign Hankel identity

For a formal power series UU, write

HN(U)=det⁡([xi+j]U(x))0≤i,j<N,H0(U)=1.\mathcal H_N(U) =\det\bigl([x^{i+j}]U(x)\bigr)_{0\leq i,j<N}, \qquad \mathcal H_0(U)=1.

Let A(x)A(x) be any formal power series with A(0)=1A(0)=1, and set

G(x)=x+1A(x2),F±(x)=1−x+x21±x2A(x2).(6)\begin{aligned} G(x)&=x+\frac1{A(x^2)},\\ F_{\pm}(x)&=1-x+\frac{x^2}{1\pm x^2A(x^2)}. \end{aligned} \tag{6}

We claim that, for every N≥3N\geq3,

HN(F+)=−HN−2(G),HN(F−)=(−1)N−2HN−2(G).(7)\boxed{ \begin{aligned} \mathcal H_N(F_+)&=-\mathcal H_{N-2}(G),\\ \mathcal H_N(F_-)&=(-1)^{N-2}\mathcal H_{N-2}(G). \end{aligned}} \tag{7}

We use the standard Hankel continued-fraction transformation

U(x)=xd1+u(x)x−xd+2W(x)⟹HN(U)=(−1)(d+12)HN−d−1(W),(8)U(x)=\frac{x^d}{1+u(x)x-x^{d+2}W(x)} \quad\Longrightarrow\quad \mathcal H_N(U) =(-1)^{\binom{d+1}{2}}\mathcal H_{N-d-1}(W), \tag{8}

where d≥0d\geq0, deg⁡u≤d\deg u\leq d, and N≥d+1N\geq d+1. This is Lemma 36 of J.-P. Allouche, G.-N. Han, and J. Shallit, On some conjectures of P. Barry, Journal of Number Theory 228 (2021), 108--132; their preprint gives the same identity.

Define

V(x)=1−x−G(x)−1x2,W±(x)=1+x−F±(x)−1x2.(9)V(x)=\frac{1-x-G(x)^{-1}}{x^2}, \qquad W_{\pm}(x)=\frac{1+x-F_{\pm}(x)^{-1}}{x^2}. \tag{9}

These are formal power series because A(0)=1A(0)=1. Straightforward substitution from (6) gives the exact identities

G(x)=11−x−x2V(x),F±(x)=11+x−x2W±(x),W+(x)=x1+2x2−x3V(−x),W−(x)=x1−2x+2x2+x3V(x).(10)\begin{aligned} G(x)&=\frac1{1-x-x^2V(x)},\\ F_{\pm}(x)&=\frac1{1+x-x^2W_{\pm}(x)},\\ W_+(x)&=\frac{x}{1+2x^2-x^3V(-x)},\\ W_-(x)&=\frac{x}{1-2x+2x^2+x^3V(x)}. \end{aligned} \tag{10}

Applying (8), first with d=0d=0 and then with d=1d=1, yields

HN(F+)=HN−1(W+)=−HN−3(V(−x)),HN(F−)=HN−1(W−)=−HN−3(−V(x)).(11)\begin{aligned} \mathcal H_N(F_+) &=\mathcal H_{N-1}(W_+)\\ &=-\mathcal H_{N-3}(V(-x)),\\ \mathcal H_N(F_-) &=\mathcal H_{N-1}(W_-)\\ &=-\mathcal H_{N-3}(-V(x)). \end{aligned} \tag{11}

For every formal series VV, diagonal conjugation and scalar multiplication give

Hj(V(−x))=Hj(V(x)),Hj(−V(x))=(−1)jHj(V(x)).(12)\mathcal H_j(V(-x))=\mathcal H_j(V(x)), \qquad \mathcal H_j(-V(x))=(-1)^j\mathcal H_j(V(x)). \tag{12}

Finally, the first equation in (10) and identity (8) imply

HN−2(G)=HN−3(V).(13)\mathcal H_{N-2}(G)=\mathcal H_{N-3}(V). \tag{13}

Equations (11)--(13) prove both identities in (7), without any assumption on AA beyond its constant coefficient.

Evaluation in the Rueppel case

Now take A=rA=r, and let

Q(x)=1r(x)=∑j≥0qjxj.Q(x)=\frac1{r(x)}=\sum_{j\geq0}q_jx^j.

Since

r(x)=1+xr(x2),r(x)=1+xr(x^2),

we have

1G(x)=1−Q(x)x=1−x−x2∑j≥0qj+3xj.(14)\frac1{G(x)}=\frac{1-Q(x)}x =1-x-x^2\sum_{j\geq0}q_{j+3}x^j. \tag{14}

The d=0d=0 case of (8) therefore gives

Hk(G)=det⁡(qi+j+3)0≤i,j<k−1.(15)\mathcal H_k(G)=\det(q_{i+j+3})_{0\leq i,j<k-1}. \tag{15}

The rectangular complementary-minor identity for reciprocal series is

det⁡(qi+j+3)0≤i,j<t=(−1)t+1det⁡(ri+j−1)0≤i,j<t+2,r−1=0.(16)\det(q_{i+j+3})_{0\leq i,j<t} =(-1)^{t+1} \det(r_{i+j-1})_{0\leq i,j<t+2}, \qquad r_{-1}=0. \tag{16}

It follows, for example, by applying the dual Jacobi--Trudi identity to the rectangular partition (t t+2)(t^{\,t+2}). Thus

Hk(G)=(−1)kHk+1(xr).(17)\mathcal H_k(G)=(-1)^k\mathcal H_{k+1}(xr). \tag{17}

Let

Dm=Hm(1−xr(x)).D_m=\mathcal H_m(1-xr(x)).

Changing only the upper-left entry in the corresponding Hankel matrix gives

Dm=(−1)mHm(xr)+(−1)m−1Jm−1.(18)D_m=(-1)^m\mathcal H_m(xr)+(-1)^{m-1}J_{m-1}. \tag{18}

Lemma 20 and Theorem 22 of the cited Allouche--Han--Shallit paper give, respectively,

sgn⁡(Dm)=(−1)m−1Jm−1,∣Dm∣=1+ρ(m−1).(19)\operatorname{sgn}(D_m)=(-1)^{m-1}J_{m-1}, \qquad |D_m|=1+\rho(m-1). \tag{19}

Substitution into (18) yields

Hm(xr)=−Jm−1ρ(m−1).(20)\mathcal H_m(xr)=-J_{m-1}\rho(m-1). \tag{20}

Therefore (17) becomes the exact signed formula

Hk(G)=(−1)k+1Jkρ(k).(21)\mathcal H_k(G)=(-1)^{k+1}J_k\rho(k). \tag{21}

The standard Rueppel determinant evaluation and parity decomposition give

Rj=det⁡(ra+b)0≤a,b<j=(−1)(j2),J2j=RjJj,J2j+1=Rj+1Jj.(22)\begin{aligned} R_j&=\det(r_{a+b})_{0\leq a,b<j} =(-1)^{\binom j2},\\ J_{2j}&=R_jJ_j,\\ J_{2j+1}&=R_{j+1}J_j. \end{aligned} \tag{22}

In particular, Jj∈{−1,1}J_j\in\{-1,1\} for every j≥0j\geq0.

Taking k=N−2=n−1k=N-2=n-1 in (7) and (21) now gives both signed identities in (4). The cases n=0,1n=0,1 follow directly from the first coefficients 1,−1,11,-1,1.

Finally, replacing the linear term −x-x by +x+x replaces F±(x)F_{\pm}(x) by F±(−x)F_{\pm}(-x). By diagonal conjugation of the Hankel matrices,

HN(F±(−x))=HN(F±(x)).(23)\mathcal H_N(F_{\pm}(-x))=\mathcal H_N(F_{\pm}(x)). \tag{23}

Therefore the corrected binary-run formula holds for all four independent choices of linear and denominator signs, even though the original unsigned equality is already refuted at n=2n=2.