On the sum-of-digits measures and Cusick’s conjecture via stopped random walks

Dawid Tarłowski, ORCID 0000-0002-6824-4568;
Faculty of Mathematics and Computer Science, Jagiellonian University, Łojasiewicza 6, 30-348 Kraków, Poland


Abstract

Let \(s(n)\) denote the number of ones in the binary expansion of a natural number \(n\in\mathbb{N}\). For any \(t\in\mathbb{N}\) and \(d\in\mathbb{Z}\), let \(\mu_t(d)\) denote the asymptotic density of the set of those natural numbers \(n\) for which \(s(n+t)-s(n)=d\). The \(\mu_t\) are properly defined probability measures on \(\mathbb{Z}\), and the Cusick conjecture states that \(\mu_t(\mathbb{N})>\frac{1}{2}\) for any \(t\in\mathbb{N}\). We investigate the properties of the family \(\{\mu_t\}_{t\in\mathbb{N}}\) by reindexing the odd integers via a suitable partial order. This construction leads to a nonautonomous dynamics on pairs of probability measures on \(\mathbb{Z}\), which represents the process of growing a tree. The associated stopped random walk allows a transparent structural description of those measures, including their support, symmetries, variance, and an asymptotic dichotomy between the central limit theorem and the almost sure convergence. Next, we focus on the median-preserving property of this process, and show that the Cusick conjecture is a special case of a more general claim about the asymmetric evolution of the associated binary trees, which we support numerically.

1

1 Introduction↩︎

Let \(s(n)\) denote the number of ones in the binary expansion of an integer \(n\in\mathbb{N}\), namely, \[\textstyle s(n)=\sum_{k=0}^{m}n_k,\] where: \[\textstyle n=\sum_{k=0}^{m}n_k\cdot 2^k andn_k\in\{0,1\} for k=0,1,\dots,m.\]

Throughout the paper we write \(\mathbb{N}=\{0,1,2,\dots\}\) and \(\mathbb{N}^+=\{1,2,3,\dots\}\). Given any \(t\in\mathbb{N}\) and \(d\in\mathbb{Z}\), let \(\mu_t(d)\) denote the asymptotic density of the set of those natural numbers \(n\) for which \(s(n+t)-s(n)=d\), i.e. \[\label{AL} \mu_t(d)=\lim_{N\to\infty} \frac{1}{N}|\{ n< N \colon s(n+t) -s(n)=d \} |.\tag{1}\] It is well known that the limit 1 exists, and \(\mu_t\) is a properly defined probability measure on \(\mathbb{Z}\). Moreover, all the measures \(\mu_t\) have mean zero, i.e. \(\sum\limits_{k\in\mathbb{Z}}k\cdot\mu_t(k)=0\), and the following recurrence relations are satisfied: \[\label{even} \mu_{2t}(d)=\mu_t(d),\;t\in\mathbb{N},\;d\in\mathbb{Z},\tag{2}\] \[\label{odd} \mu_{2t+1}(d)=\frac{1}{2}\mu_t(d-1)+\frac{1}{2}\mu_{t+1}(d+1),\;t\in\mathbb{N},\;d\in\mathbb{Z}.\tag{3}\] For more details, see Lemma 1 in [1], Lemma 2.1 in [2]. This paper is motivated by the Cusick’s conjecture which states that \[\label{Cc} {\textstyle{\mu_t(\mathbb{N})>\frac{1}{2} for any t\in\mathbb{N}^+.}}\tag{4}\] The simplicity of the above statement is rather deceptive - the full conjecture is still open, although various results on the subject have been established ([2][8]). We briefly highlight some of them: paper [2] has shown that for any \(\varepsilon>0\) we have \(|\{t<T\colon \frac{1}{2}<\mu_t(\mathbb{N})<\frac{1}{2}+\varepsilon\}|=T-O(\frac{T}{\log T})\) (the symbol \(O(\cdot)\) stands for big \(O\) notation) which implies that the asymptotic density of the set of \(t\in\mathbb{N}\) which satisfy \(\mu_t(\mathbb{N})>\frac{1}{2}\) equals to one. In [4], a central limit theorem is established for generic sequences \((\mu_{t_k})\) arising by sampling digits of \(t_k\) from the balanced Bernoulli measure. Papers [5] and [8] have generalized this result, and additionally [8] has shown that \(\mu_t(\mathbb{N})>\frac{1}{2}\) for any \(t\) such that \((t)_2\) contains sufficiently many blocks of ones. Recently, [9] has proposed the decomposition of the characteristic functions associated to \(\mu_t\) into the sum of the corresponding components. Finally, we mention that Cusick conjecture has several equivalent formulations, see Section 3 in [2], and is connected to Tu-Deng conjecture [10],[11],[7].

A full proof of Cusick’s conjecture is likely to require a detailed structural understanding of the family \(\{\mu_t\}_{t \in \mathbb{N}}\). We will show that, after reindexing the odd integers via an appropriate partial order \(\preceq\), the family \(\{\mu_t\}_{t\in 2\mathbb{N}+1}\) corresponds to the marginal distributions of a hierarchical martingale defined by a stopped random walk, governed by an explicit recursive dynamics. For convenience we will assume that the random walk starts from zero, that is, we will work with the system of measures \(P_t\) which is related to \(\mu_{t}\) by the convolution: \(\mu_t=\mu_1\ast P_t\). First we will show that the maximal chains of the poset \((2\mathbb{N}+1,\preceq)\) determine the nonautonomous dynamics on pairs of probability measures on \(\mathbb{Z}\) which represents the growth of a planar binary tree, and next we will express it in the language of the stopped random walk. The marginal probability distributions of the associated martingale - namely the measures \(P_t\) - exhibit several rather desirable properties: the monotonicity of the span of the support, the monotonicity of the variance with the explicit bounds (Theorem 8), the symmetries, and clear asymptotic behaviour: the unbounded variance case satisfies the central limit theorem (by [5],[8]) while in the case of bounded variance the trajectories of the martingale are convergent, and the possible asymptotic distributions are exactly the measures \(\mu_{t}\) and their reflections (Theorem 10). At the end of the paper we focus on the median-preserving property of the martingale, and show that the Cusick conjecture is a special case of a more general statement concerning the asymmetric growth of the trees. In the language of binary digits: if \(P_t(\mathbb{N})>\frac{1}{2}\) for any odd \(t=(t_1t_2\dots t_n)_2\) with \(t_2=0\), then \(\mu_t(\mathbb{N})>\frac{1}{2}\) for any \(t\in\mathbb{N}\). We conjecture that the side of the tree that carries mass greater than \(\frac{1}{2}\) at the first step of the growth, remains so throughout the whole process (Conjecture 13). This last claim is supported numerically, and left open.

2 The evolution of sum of digits measures.↩︎

2.1 Order↩︎

Let us start with the sequence \(x_n=s(n+1)-s(n)\), \(n\in\mathbb{N}\), which defines measure \(\mu_1\). Let \[\tau_k=\min\{n\in\mathbb{N}\colon x_n=k\}, where k\in\mathbb{Z}_{\leq 1}=\{d\in\mathbb{Z}\colon d\leq 1\}.\] It is not difficult to establish that \(x_n\) is given by: \[\tau_k=2^{1-k} andx_{\tau_k+i}=x_ifor1\leq i <2^{1-k}, wherek\in\mathbb{Z}_{\leq 1}.\] The first elements of \(\{x_n\}_{n\in\mathbb{N}}\) are:
\[\boldsymbol{1},\;\; \boldsymbol{0}, 1, \;\;\boldsymbol{-1}, 1, 0, 1,\;\;\boldsymbol{-2}, 1, 0, 1, -1, 1, 0, 1,\;\;\boldsymbol{-3},1, 0, 1, -1, 1, 0, 1,-2, 1, 0, 1, -1, 1, 0, 1,\boldsymbol{-4},\dots\\None\]

The above sequence is an elegant representation of a geometric distribution with mean zero, more precisely, the corresponding frequencies lead to the formula: \[\label{mu1} \mu_1(k)=\left(\frac{1}{2}\right)^{2-k} fork=1,0,-1,-2,\dots\tag{5}\]

In this chapter we want to gain good insight into how the measures \(\mu_t\) evolve from \(\mu_1\). By 2 , only odd \(t\) have to be considered. To see that, we will consider an appropriate partial order on the set of odd natural numbers. We start from describing the intuition behind the above idea. Roughly speaking, equations 2 and 3 lead to the following tree-structured decomposition of a natural number \(t\) : If \(t\) is even, divide it by \(2\). If \(t\) is odd and greater than one, split \(t\) into two numbers: \(\frac{t-1}{2}\) and \(\frac{t+1}{2}\). For every number that has appeared, repeat this operation until one is reached. We will reverse time in this decomposition, and omit the even numbers, thereby obtaining a more straightforward evolution of \(\mu_t\).The initial measure \(\mu_1\) is already defined. By 2 and 3 , the \(\mu_3\) is given by:

\(\mu_3(k)=\frac{1}{2}\mu_1(k+1)+\frac{1}{2}\mu_1(k-1),\;k\in\mathbb{Z}\).

The further evolution will be analysed with use of the following order.

Definition 1. Define two maps \(L, R \colon 2\mathbb{N}+1 \to 2\mathbb{N}+1\) by \[\label{eq:left-right} L(t) = 2t - 1, \qquad R(t) = 2t + 1.\tag{6}\] We define a partial order \("\preceq"\) on \(2\mathbb{N}+1\) as follows: \(s \preceq t\) if and only if either \(s=t\), or there exists a finite sequence \(w_1, \ldots, w_n \in \{L, R\}\) such that \[\label{order-def} t =w_n \circ \cdots \circ w_1(s).\tag{7}\]

From now on we will write \[T=2\mathbb{N}+1,\] and we consider this set as equipped with \(\preceq\).

Example 1. The first four levels of \((T, \preceq)\) are depicted below.

Figure 1: image.

There is a direct relation between the representation 7 and the binary representation of an odd integer. Let \(\beta \colon \{L, R\} \to \{0, 1\}\) be a mapping defined by: \[\beta(L) = 0 and \beta(R) = 1.\]

Observation 1. The binary representation of \(t=w_k \circ \cdots \circ w_1(3)\) is given by: \[t = (1\, \beta(w_1)\, \beta(w_2) \cdots \beta(w_k)\, 1)_2.\]

To prove the above observation it is enough to show by induction that \(t =w_k \circ \cdots \circ w_1(3)\) satisfies: \[t = 2^{k+1} + \sum_{i=1}^{k} \beta(w_i)\, 2^{k+1-i} + 1.\]

Throughout the paper, the set of all finite words \(\{L,R\}^{\star}\) equipped with the standard prefix order will be identified with the set \(T\setminus\{1\}\) with the order induced from \(T\). More precisely, define: \[\{L,R\}^\star =\bigcup\limits_{n\in\mathbb{N}} \{L,R\}^n, where\{L,R\}^0:=\{\varepsilon\} \;\;\; (\varepsilon- an empty word ).\] To the elements of \(\{L,R\}^\star\) we will refer as words rather than sequences, and thus given \(w\in\{L,R\}^\star\) determined by \(w_1,\dots,w_n\in \{L,R\}\) we will write \(w=w_1 \dots w_n\) rather than \(w=(w_1,\dots,w_n)\). The length of the word \(w\) will be denoted by \(\ell(w)\). Given \(t\in T\), we will write: \(tL:=L(t)\) and \(tR:=R(t)\). More generally, given \(w_1\dots w_n\in\{L,R\}^\star\), \[tw_1\dots w_n:=w_n\circ\dots\circ w_1 (t).\] With the above notation, the following identification (a bijection) arises naturally: \[h\colon \{L,R\}^\star\longrightarrow T\setminus\{1\}, where h(\varepsilon):=3 and \] \[h\colon w_1 \dots w_n\longmapsto 3w_1\dots w_n=w_n\circ\dots\circ w_1 (3).\] We will write, for instance, \(RR=15\) and \(RRRLR=123\). With this notation, order \(\preceq\) is consistent with the standard prefix order: \(w_1w_2\dots w_n\preceq v_1v_2\dots v_m\) if and only if \(n\leq m\) and \(w_i=v_i\) for any \(i\leq n\).
Given an infinite sequence \(w=(w_1,w_2,\dots)\in\{L,R\}^{\mathbb{N}}\), we will write \[\label{www} w(-1):=1,\;w(0):=3,\;w(t):=w_1\dots w_t\in T,\;t\in\mathbb{N}^+.\tag{8}\] With the above notation, given any \(w\in\{L,R\}^{\mathbb{N}}\), the sequence \(\{w(t)\}_{t=-1}^{\infty}\) is the maximal chain in \((T,\preceq)\). We will analyze how the sequences \(w\in\{L,R\}^\mathbb{N}\) govern the evolution of: \[\{\mu_{w(t)}\}_{t=-1}^{\infty}.\]

2.2 The dynamics of \(\mu_{w(t)}\)↩︎

The set of all probability measures on \(\mathbb{Z}\) will be identified with the set \(\Delta(\mathbb{Z})\subset l^1(\mathbb{Z})\) given by: \[\Delta(\mathbb{Z})=\{\;(P(k))_{k\in\mathbb{Z}}\;\colon\;P(k)\geq 0 for all k,and\sum\limits_{k\in\mathbb{Z}}P(k)=1\}.\] Set \(\Delta(\mathbb{Z})\) is naturally equipped with the topology of pointwise convergence which coincides with the topology induced from the space \((l^1(\mathbb{Z}),||\cdot||_1)\), where \(||P||_1=\sum\limits_{k\in\mathbb{N}}|P(k)|\). The set of centered probability measures on \(\mathbb{Z}\) will be identified with the set: \[\Delta_0(\mathbb{Z})=\{\;P\in \Delta(\mathbb{Z})\colon\; \sum\limits_{k\in\mathbb{Z}}k\cdot P(k)=0\}.\] Above, by writing \(\sum\limits_{k\in\mathbb{Z}}k\cdot P(k)=0\) we implicitly assume that the first moment exists: \(\sum\limits_{k\in\mathbb{Z}}|k|\cdot P(k)<\infty\). Now, let \(\{\sigma_d\}_{d\in\mathbb{Z}}\) denote the family of shift operators: \[\sigma_d\colon \Delta(\mathbb{Z})\ni (P(k))_{k\in\mathbb{Z}}\longmapsto (P(k-d))_{k\in\mathbb{Z}}\in \Delta(\mathbb{Z}).\] We will write \[\label{SLR} \sigma_L:=\sigma_{-1} and \sigma_R:=\sigma_{1}.\tag{9}\]

Definition 2. Define the operation \(\Phi \colon \Delta_0(\mathbb{Z}) \times\Delta_0(\mathbb{Z}) \to\Delta_0(\mathbb{Z})\), by \[\Phi(\mu, \nu) = \frac{1}{2} \sigma_L(\mu) + \frac{1}{2} \sigma_R(\nu).\]

Any \(w\in\{L,R\}^\mathbb{N}\) determines the sequence \(\{\mu_{w(n)}\}_{n=-1}^{\infty}\) through the recursion based on the map \(\Phi\). For \(t=2s+1\geq 3\), define: \[\label{dee} \mu^L_{t}=\mu_{s+1} and \mu^R_{t}=\mu_{s},\tag{10}\] so we have, by 3 , \[\label{P} \mu_t=\Phi(\mu^L_t,\mu^R_t).\tag{11}\] For instance, \(\mu^L_3=\mu_2=\mu_1\), and \(\mu^R_3=\mu_1\). Fix \(w\in\{L,R\}^\mathbb{N}\). With notation 8 : \[\mu_3=\mu_{w(0)}=\Phi(\mu^L_{w(0)},\mu^R_{w(0)})=\Phi(\mu_1,\mu_1).\]

Further dynamics is governed by the two mappings: \[\Phi_L, \Phi_R\colon \Delta_0(\mathbb{Z})\times \Delta_0(\mathbb{Z}) \to \Delta_0(\mathbb{Z})\times \Delta_0(\mathbb{Z}),\] where \[\Phi_L(\mu,\nu)=(\Phi(\mu,\nu),\nu) and \Phi_R(\mu,\nu)=(\mu,\Phi(\mu,\nu)).\] Equations 2 and 3 imply that the sequence \((\mu^L_{w(n)},\mu^R_{w(n)})_{n=0}^{\infty}\) is the trajectory of the following nonautonomous dynamical system: \[\label{System} (\Delta_0(\mathbb{Z})\times \Delta_0(\mathbb{Z}), \{\Phi_{w_n}\}_{n\geq1}),\tag{12}\] see below.

Proposition 2. For any \(w=(w_1,w_2,\dots)\in\{L,R\}^\mathbb{N}\), \[(\mu^L_{w(n+1)},\mu^R_{w(n+1)})=\Phi_{w_{n+1}}\left((\mu^L_{w(n)},\mu^R_{w(n)})\right),\;n\geq 0.\] In other words, \((\mu^L_{w(n)},\mu^R_{w(n)})_{n=0}^{\infty}\) is the trajectory of 12 which starts from \((\mu_1,\mu_1)\).

Proof. Fix \(w\in\{L,R\}^\mathbb{N}\), and \(n\in\mathbb{N}\). Assume that \(w(n)=2s+1\geq 3\) so we have \(\mu^L_{w(n)}=\mu_{s+1}\) and \(\mu^R_{w(n)}=\mu_{s}\). The cases \(w_{n+1}=L\) and \(w_{n+1}=R\) are similar, and we will assume that \(w_{n+1}=L\). We have: \(w(n+1)=L(2s+1)=4s+1=(2s+1)+2s\), and hence \[\mu_{w(n+1)}^L=\mu_{2s+1}=\mu_{w(n)} and \mu_{w(n+1)}^R=\mu_s=\mu_{w(n)}^R.\] Thus, by 11 and by the definition of \(\Phi_L\), \((\mu_{w(n+1)}^L,\mu_{w(n+1)}^R)=\Phi_L(\mu_{w(n)}^L,\mu_{w(n)}^R).\) ◻

Proposition 2 allows us to write shortly: \[\mu_{w(n)}=\Phi_{w(n)}(\mu_1), n\geq 0,\] where \(\Phi_{w(n)}\colon \Delta_0(\mathbb{Z})\to \Delta_0(\mathbb{Z})\) is defined by: \[\Phi_{w(0)}(\mu)=\Phi(\mu,\mu) and\Phi_{w(n)}(\mu):=\Phi\circ\Phi_{w_n}\circ\dots\circ\Phi_{w_1}(\mu,\mu).\]

For convenience, in next sections we will focus on the probability measures: \[\label{Pt} P_{w(n)} = \Phi_{w(n)}(\delta_0),\;n\geq 0,\tag{13}\] rather than on \(\mu_{w(n)}= \Phi_{w(n)}(\mu_1)\), which is justified by Observation 3 and equation 15 . Given \(\mu,\nu\in\Delta(\mathbb{Z})\), let \(\mu\ast\nu\) denote the convolution of measures \(\mu\) and \(\nu\), i.e. : \[(\mu\ast\nu)(d)=\sum\limits_{k\in\mathbb{Z}}\mu(k)\cdot\nu(d-k)=\sum\limits_{k\in\mathbb{Z}}\mu(k)\cdot (\sigma_{k}\nu)(d).\]

Observation 3. Fix \(w\in\{L,R\}^\mathbb{N}\), and let \(\mu\in \Delta_0(\mathbb{Z})\). We have: \[\Phi_{w(n)}(\mu)=\mu\ast \Phi_{w(n)}(\delta_0),\;n\geq0.\]

Proof. Let us write \(\mu=\sum\limits_{k\in\mathbb{Z}}p_k\delta_k\). The mapping \(\Phi_{w(n)}\colon\Delta_0(\mathbb{Z})\to\Delta_0(\mathbb{Z})\), defined by compositions of linear combinations of shifts, is linear, continuous, and commutes with shifts. Hence, by \(\sigma_{k}\delta_0=\delta_k\), \[\Phi_{w(n)}\left(\sum\limits_{k\in\mathbb{Z}}p_k\delta_k\right)=\sum\limits_{k\in\mathbb{Z}}p_k\cdot\Phi_{w(n)}(\delta_k)=\sum\limits_{k\in\mathbb{Z}}p_k\cdot\Phi_{w(n)}(\sigma_{k}\delta_0)=\] \[=\sum\limits_{k\in\mathbb{Z}}p_k\cdot \sigma_{k}(\Phi_{w(n)}(\delta_0))=\sum\limits_{k\in\mathbb{Z}}\mu(k)\cdot \sigma_{k}(\Phi_{w(n)}(\delta_0))=\mu\ast\Phi_{w(n)}(\delta_0).\] ◻

Corollary 1. For any \(w\in\{L,R\}^\mathbb{N}\), by Observation 3, \(\mu_{w(n)}=\mu_1\ast P_{w(n)},\) where \(P_{w(n)}=\Phi_{w(n)}(\delta_0)\). By \(\eqref{mu1}\), \[\label{cd} \mu_{w(n)}(d)=\sum\limits_{k\leq 1} \left(\frac{1}{2}\right)^{2-k}\cdot P_{w(n)}(d-k),\;d\in\mathbb{Z}.\tag{14}\]

One may check by direct computation that the deconvolution formula is: \[\label{dc} P_{w(n)}(d)= 2\cdot\mu_{w(n)}(d+1)-\mu_{w(n)}(d+2),\;d\in\mathbb{Z}.\tag{15}\] Equations 14 and 15 allow us to switch between \(\mu_t\) and \(P_t\) when necessary. The definition of \(P_t\) given by \(\eqref{Pt}\) is consistent with the following system: \[\label{system} P_1=\delta_0,\;P_{2t}=P_t,\;P_{2t+1}=\Phi(P_{t+1},P_t),\tag{16}\] by which we may consider \(\{P_t\}_{t\in\mathbb{N}}\) instead of \(\{P_t\}_{t\in T}\) whenever convenient.

3 Growing trees↩︎

Compared to the standard dynamics behind equations 2 and 3 ( Proposition 2.5 in [4]), the recursion given by Proposition 2 represents the process of growing a tree. We will start from the natural connection between the planar binary trees, [12], and the bounded stopping times, [13]. We will show that measures \(P_{t}\) given by 13 are naturally embedded in the simple symmetric random walk \(S_n\), namely, for any \(t\in T\) there is a finite stopping time \(\tau_t\) such that \(P_t\) is the probability distribution of \(S_{\tau_t}\). A reader interested in the embedding problems related to the simple random walk is referred to [14], see also the original Skorohod embedding problem, [15].

3.1 Assumptions and notation.↩︎

Let \(\mathcal{T}\) be the smallest set satisfying:

  1. \(\bullet \in \mathcal{T}\),

  2. if \(T_-, T_+ \in \mathcal{T}\), then \([T_-, T_+] \in \mathcal{T}\).

The elements of \(\mathcal{T}\) are full planar binary trees, to which we shall refer simply as trees.. The height of a tree \(T \in \mathcal{T}\), denoted by \(|T|\), is defined by : \(|\bullet| = 0\), and \(|[T_-, T_+]| = \max\{|T_-|, |T_+|\} +1.\) The set of binary trees of height at most \(n\) will be denoted by \[\mathcal{T}_n = \{ T \in \mathcal{T}: |T| \leq n \}\]

The set \(\mathcal{T}\) is partially ordered by the following relation:

  1. \(\bullet \sqsubseteq T\) for every \(T \in \mathcal{T}\).

  2. \([S_-, S_+] \sqsubseteq [T_-, T_+]\) if and only if \(S_- \sqsubseteq T_-\) and \(S_+ \sqsubseteq T_+\).

Roughly speaking, \(S \sqsubseteq T\) iff \(S\) is obtained from \(T\) by replacing some subtrees with "\(\bullet\)" (with leaves).
From now on, assume that the triple \((\Omega, \mathcal{F}, \mathbb{P})\) is the canonical probability space with the balanced Bernoulli measure:

  • \(\Omega=\{-1,1\}^\mathbb{N}\),

  • \(\mathcal{F}\) is the \(\sigma-\)algebra of cylinder sets

  • \(\mathbb{P}=\bigotimes_{n=1}^{\infty} P_n\) is the product of \(P_n=\frac{1}{2}\delta_{-1}+\frac{1}{2}\delta_1\)

The probability distribution of a random variable \(X\colon\Omega\to\mathbb{Z}\) will be denoted by \(\mathcal{L}(X)\), that is, \(\mathcal{L}(X)\in\Delta(\mathbb{Z})\) is given by: \(\mathcal{L}(X)(d)=\mathbb{P}[X= d]\), \(d\in\mathbb{Z}\). Let \(\xi_i\colon\Omega\to\{-1,1\}\), \(i\in\mathbb{N}^+\), denote the coordinate variables: \(\xi_i(\omega)=\omega_i\), \(\omega\in\Omega\). Obviously \(\{\xi_i\}_{i=1}^\infty\) are independent, with: \[\mathbb{P}[\xi_i = +1] = \mathbb{P}[\xi_i = -1] = \tfrac{1}{2},\;i\in\mathbb{N}^+.\] The simple random walk \(\{S_n\}_{n\in\mathbb{N}}\) is defined by: \[S_0=0 and S_n=\sum\limits_{i=1}^n\xi_i, \;n\in\mathbb{N}^+.\] The natural filtration of the process \(\xi=(\xi_i)_{i\in\mathbb{N}}\) will be denoted by: \[\mathcal{F}_0 = \{\varnothing, \Omega\} and\mathcal{F}_n = \sigma(\xi_1, \ldots, \xi_n) for n \geq 1.\]

A random variable \(\tau \colon \Omega \to \{0, 1, 2, \dots\}\) is a stopping time with respect to \((\mathcal{F}_n)_{n \geq 0}\) iff \(\{\tau \leq n\} \in \mathcal{F}_n\) for every \(n \geq 0\). In other words, \(\tau \colon \{-1,1\}^{\mathbb{N}}\to \mathbb{N}\) is a stopping time if \(\tau\) is a Borel function with the following property: if \(\omega\in\{-1,1\}^\mathbb{N}\) and \(\tau(\omega) = k\), then \(\tau(\omega')=k\) for any \(\omega'\in\{-1,1\}^{\mathbb{N}}\) with \((\omega_1,\dots,\omega_k)=(\omega'_1,\dots,\omega'_k)\). For the set of stopping times bounded by \(N\in\mathbb{N}\) we will write: \[\mathcal{S}_N = \{ \tau\colon\Omega\to\mathbb{N}|\;\tau \text{ is a stopping time with } \tau \leq N \}\]

There is a natural bijection between trees \(\mathcal{T}\) and bounded stopping times, see below.

Definition 3. Given \(T \in \mathcal{T}\), define the stopping time \(\tau_T\) recursively:

  1. If \(T = \bullet\), then \(\tau_T = 0\).

  2. If \(T = [T_-, T_+]\), then \[\tau_T (\omega_1,\omega_2,\dots)= 1 + \begin{cases} \tau_{T_-}(\omega_2,\omega_3,\dots)& \text{if } \omega_1 = -1,\\[2pt] \tau_{T_+}(\omega_2,\omega_3,\dots) & \text{if } \omega_1 = +1, \end{cases}\]

For any \(n\in\mathbb{N}\), the map \(\mathcal{T}_n\ni T \mapsto \tau_T\in\mathcal{S}_n\) is a bijection between \(\mathcal{T}_n\) and \(\mathcal{S}_n\). Furthermore, by simple induction with respect to the height of a tree it is easy to show that \(S\sqsubseteq T\) implies \(\tau_S\leq\tau_T\) (the pathwise inequality: \(\tau_S(\omega)\leq\tau_T(\omega)\), \(\omega\in\Omega\)). Given a stopping time \(\tau\in \mathcal{S}_N\), the random variable \(S_{\tau}\) is given by: \[S_{\tau}=\sum\limits_{k=0}^{N}S_k\cdot 1_{\{\tau=k\}},\] where \(1_A\colon\Omega\to\{0,1\}\) stands for the characteristic function of the set \(A\in \mathcal{F}\). Finally, we note that \(\tau=\tau\circ (\xi_1,\xi_2,\dots)\), and we will often use notation: \[\tau(\xi_1,\xi_2,\dots):=\tau\circ (\xi_1,\xi_2,\dots).\]

Example 2. Let \(T = [T_-, T_+] = [\bullet, [\bullet, \bullet]]\). We have \(\tau_{T_-} = 0\), \(\tau_{T_+} = 1\), and \[\tau_T \;\;= 1 + \begin{cases} 0 & \text{if } \xi_1 = -1,\\[2pt] 1 & \text{if } \xi_1 = +1 \end{cases}.\]

In other words: \(\tau_T=1_{\{-1\}}(\xi_1)+2\cdot 1_{\{1\}}(\xi_1)\), see the illustration:

Figure 2: image.

Definition 4 (Embedding map). The embedding map \(\mathcal{E} \colon \mathcal{T}\to \Delta(\mathbb{Z})\) assigns to each tree the law of the corresponding stopped random walk: \[\mathcal{E}(T) = \mathcal{L}(S_{\tau_T}).\]

3.2 Growing trees↩︎

We will now construct the family of trees \(\{T_t\colon t\in 2\mathbb{N}+1\}\subset \mathcal{T}\) such that \(s\preceq t\) implies \(T_s\sqsubseteq T_t\), and the family \(\{P_t\colon t\in 2\mathbb{N}+1\}\) given by 13 satisfies: \[P_t=\mathcal{E}(T_t).\]

We have: \[P_1=\delta_0 and P_3=\Phi(\delta_0, \delta_0)=\frac{1}{2}\delta_{-1} + \frac{1}{2}\delta_{1},\] and \[\mathcal{E}(\bullet)=\mathcal{L}(S_0)= \delta_0=P_1 and \mathcal{E}([\bullet,\bullet])=\mathcal{L}(S_1)=P_3.\] Thus, define \(T_1 = \bullet\) and \(T_3 =[T_3^-,T_3^+]=[\bullet,\bullet]\), so \(\tau_1:=\tau_{T_1}=0\) and \(\tau_3:=\tau_{T_3}=1\) satisfy: \[P_1=\mathcal{L}(S_{\tau_1}) and P_3=\mathcal{L}(S_{\tau_3}).\]

Further construction proceeds by growing trees according to the following recursion: at each step, one subtree is left intact while the other subtree grows to become a copy of the current tree, and the successive letters from \(\{L,R\}\) determine which subtree is left intact and which one grows at each step. So far we have \[T_3=[T_3^-,T_3^+], where T_3^+=T_3^-=T_1=\bullet.\]

Recursive step. Given \(v\in T\setminus\{1\}\) and \[T_v = [T_v^-, T_v^+] \in \mathcal{T},\] define: \[\label{td} T_{vL} = [T_v,\, T_v^+], and T_{vR} = [T_v^-,\, T_v].\tag{17}\]

By the construction, if \(s\preceq t\) then \(T_s\sqsubseteq T_t\). To verify that the recursive step leads to \(\mathcal{E}(T_v) = P_{v}\), \(v\in\{L,R\}^\star\), it is enough to show that \(\mathcal{E}(T_{w(n)}) = P_{w(n)}\), \(n\in\mathbb{N}\), for any sequence \(w\in\{L,R\}^{\mathbb{N}}\). In other words, it is enough to check that 17 matches the recursion from Proposition 2.

Theorem 4. For any \(v\in\{L,R\}^{\star}\), \(\mathcal{E}(T_v) = P_{v}\). In other words: \(\mathcal{L}(S_{\tau_v}) = P_{v}\), where \(\tau_v = \tau_{T_v}\).

Proof. For \(v=\varepsilon\) and for \(P_3^L:=P_1=\mathcal{E}(T_3^-)\), \(P_3^R:=P_1=\mathcal{E}(T_3^+)\), we have \[P_3=\mathcal{E}([T^-_3,T^+_3]) andP_3=\Phi(\mathcal{E}(T_3^-),\mathcal{E}(T_3^+))=\Phi(P_3^L,P_3^R).\] Now, assume that for some \(3\preceq v\) we have: \[P_v=\mathcal{E}([T^-_v,T^+_v]) andP_v=\Phi(\mathcal{E}(T_3^-),\mathcal{E}(T_3^+))=\Phi(P_v^L,P_v^R),\] where \(P_v^L=\mathcal{E}(T_v^-)\) and \(P_v^R=\mathcal{E}(T_v^+)\) (considering the extension 16 , explicitly: \(P_{2s+1}^L=P_{s+1}\) and \(P_{2s+1}^R=P_{s}\)). Note that \(\sigma_L(\mathcal{L}(X))=\mathcal{L}(X-1)\) and \(\sigma_R(\mathcal{L}(X))=\mathcal{L}(X+1)\) for any \(r.v.\) \(X\colon\Omega\to\mathbb{Z}\), where \(\sigma_L\), \(\sigma _R\) are given by 9 . By Definition 3, for any \(T_-,T_+\in\mathcal{T}\), \[\label{e} \mathcal{E}([T_-, T_+])=\mathcal{L}(S_{\tau_{[T_-, T_+]}})= \tfrac{1}{2}\,\mathcal{L}(-1 + S_{\tau_{T_-}}) +\tfrac{1}{2}\,\mathcal{L}(1 + S_{\tau_{T_+}})=\tag{18}\] \[=\tfrac{1}{2} \sigma_L\bigl(\mathcal{E}(T_-)\bigr) + \tfrac{1}{2} \sigma_R\bigl(\mathcal{E}(T_+)\bigr)=\Phi(\mathcal{E}(T_-),\mathcal{E}(T_+)).\] Above, we have used the fact that for \(j\in \{-,+\}\) the law \(\mathcal{L}(S_{\tau_{T_j}})\) is the same as the law of \(S_{\tau_{T_j}}'=S_{\tau_{T_j}}\circ (\xi_2,\xi_3,\dots)\) which is defined by the same formula applied to the shifted sequence. As \(P_{vL}=\Phi(P_v,P_v^R)\) and \(P_{vR}=\Phi(P_v^L,P_v)\), equation 18 guarantees that \[P_{vL}=\mathcal{E}(T_{vL}) and P_{vR}=\mathcal{E}(T_{vR}).\] In other words, for any \(w\in\{L,R\}^\mathbb{N}\) the recursive step 17 matches the dynamics of the sequence \(P_{w(n)}\), \({n\in\mathbb{N}}\), that is: \(P_{w(n)W}=\Phi\circ\Phi_W(P_{w(n)}^L,P_{w(n)}^R)\), where \(W\in\{L,R\}.\) ◻

The explicit recursive description of the stopping times \(\tau_{v}(\xi_1,\xi_2,\dots)\) goes by: if \[\tau_v(\xi_1,\xi_2,\dots) = 1 + \begin{cases} \tau^L_{v}(\xi_2,\xi_3,\dots) & \text{if } \xi_1 = -1,\\[4pt] \tau^R_{v}(\xi_2,\xi_3,\dots) & \text{if } \xi_1 = +1, \end{cases}\] then: \[\label{stop} \tau_{vL}(\xi_1,\xi_2,\dots)=1 + \begin{cases} \tau_v(\xi_2,\dots)&\text{if } \xi_1= -1 \\ \tau_{v}^R(\xi_2,\dots)&\text{if } \xi_1 = +1 \end{cases},\tag{19}\] and the formula for \(\tau_{vR}\) is analogous. The construction implies that: \(T_w \sqsubseteq T_{wL}\) and \(T_w \sqsubseteq T_{wR}\), and hence: \(\tau_{w}\leq\tau_{wL} and \tau_{w}\leq\tau_{wR}\). Moreover, the height of the tree \(|T_w|=\max(\tau_w)\) increases by at most one at each step and hence \(\tau_w\leq \ell(w)+1\), where \(\ell(w)\) denotes the length of the word \(w\). The dynamics that governs the sequence \(\{T_t\}_{t\in T}\) determines a hierarchical structure exhibiting self-similarity. Let us take a look on a few pictures which illustrate the growth of \(T_{LRLL}\), a tree which determines measure \(P_{41}=P_{LRLL}\).

Example 3. The measure \(P_3 = \frac{1}{2}\delta_1 + \frac{1}{2}\delta_{-1}\) corresponds to the tree \(T_3 = [\bullet,\bullet]\) on the left. Measure \(P_5=P_{L}=\mathcal{E}(T_{L}) = \frac{1}{2}\delta_1 + \frac{1}{4}\delta_0 + \frac{1}{4}\delta_{-2}\) is represented by the tree \(T_{L}=[T_3,T_3^+]=[[\bullet,\bullet],\bullet]\) on the right. The left branch of \(T_3\) has grown to copy the \(T_3\) while the right branch of \(T_3\) has stayed intact.

Figure 3: image.

Figure 4: image.

Example 4. \(P_{11}=P_{LR}=\mathcal{E}(T_{LR}) = \frac{1}{4}\delta_2 + \frac{1}{8}\delta_1 + \frac{1}{4}\delta_0 + \frac{1}{8}\delta_{-1} + \frac{1}{4}\delta_{-2}\), where \(T_{LR} = [T_L^-,\, T_L]\).The left subtree \(T_L^- = [\bullet, \bullet]\) is left intact; the right subtree of \(T_{LR}\) is a copy of the entire tree \(T_L\). Note that the resulting measure \(P_{11}\) is symmetric around zero.

Figure 5: image.

Example 5.

\(P_{21}=P_{LRL}=\mathcal{E}(T_{LRL})= \tfrac{1}{4}\delta_2 + \tfrac{1}{4}\delta_1 + \tfrac{1}{16}\delta_0 + \tfrac{1}{4}\delta_{-1} + \tfrac{1}{16}\delta_{-2} + \tfrac{1}{8}\delta_{-3}\), where \(T_{LRL} = [T_{LR},\, T_{LR}^+] = [T_{LR},\, T_L]\).

Figure 6: image.

Example 6. Below we represent \(P_{41}=\mathcal{E}(T_{LRLL})\), where \(T_{LRLL}=[T_{LRL},T_L]\).

Figure 7: image.

4 The martingale evolution of \(P_t\)↩︎

We proceed under the notation and the assumptions of the previous sections. We have established: \(s\preceq t \Rightarrow \tau_s\leq\tau_t\), where \(P_{t}=\mathcal{L}(S_{\tau_t})\). For \(w\in\{L,R\}^\mathbb{N}\), define:\[\eta^w_t:=\tau_{w(t)}, \;\;\; t\in\mathbb{Z}_{\geq -1},\] so we have: \(\eta^w_{-1}=0\), \(\eta^w_0=1\). Define: \[\label{XM} X^w_{t}=S_{\eta^w_t},\;t\in\mathbb{Z}_{\geq -1}.\tag{20}\] When \(w\in\{L,R\}^\mathbb{N}\) is fixed, we will often write simply: \(\eta_t=\eta^w_t\) and \(X_t=X_t^w\).

4.1 Martingale property and Wald identities↩︎

Fix \(w\in\{L,R\}^\mathbb{N}\). As we have shown in the previous section, for \(0\leq s<t\) we have \[\eta_s=\tau_{w(s)}\leq\tau_{w(t)}=\eta_t\leq \ell(w_1\dots w_{t})+1=t+1,\] and thus, by Doob’s optional stopping theorem, \(X_t=S_{\eta_t}\) forms a martingale (more precisely, a martingale with respect to the stopped filtration, which forces that \(X_t\) is a martingale with respect to its natural filtration \(F_t=\sigma(X_t,\dots,X_1)\)). Additionally, by the second Wald’s identity, the variance of the measure \(P_t\) equals to the expected number of steps of the stopping time \(\tau_{t}\) which defines the measure \(P_t\) by \(P_t=\mathcal{L}(S_{\tau_t})\).

Theorem 5. For any \(w\in\{L,R\}^\mathbb{N}\), the process \(X_t=X_t^w\) given by 20 is a martingale. In particular, \(E[X_t|X_s]=X_{s}, for t\geq s.\) By Wald’s identities, \[E[X_t]=0 and D^2[X_t]=E[\eta_t].\]

Proof. We will prove briefly the second statement. Both processes \(\{S_n\}_{n\in\mathbb{N}}\) and \(\{S_n^2-n\}_{n\in\mathbb{N}}\) are martingales with respect to \(F_n=\sigma(\xi_1,\dots,\xi_n)\), and the stopping times \(\eta_t\) are bounded. Hence, by Doob’s theorems: \(E[S_{\eta_t}]=E[\xi_1]\cdot E[\eta_t]=0\), and \(E[(S_{\eta_t})^2-\eta_t]=0\), which translates into \(D^2[S_{\eta_t}]=E[\eta_t]\) ◻

4.2 Support↩︎

Given \(P\in\Delta(\mathbb{Z})\), let \(\operatorname{supp}(P)=\{d\in\mathbb{Z}\colon P(d)>0\}\). Given \(w=w_1\dots w_n\in\{L,R\}^\star\), let \[\ell_L(w)=\sum\limits_{i=1}^n 1_{\{L\}}(w_i) and\ell_R(w)=\sum\limits_{i=1}^n 1_{\{R\}}(w_i).\] We have \(\operatorname{supp}(P_{\varepsilon})=\operatorname{supp}(P_3)=\{-1,1\}\). Fix \(w\in \{L,R\}^\star\setminus\{\varepsilon\}\). We have \(\max(\tau_w)=\ell(w)+1\). Denote \(\tau_w\wedge n:=\min(\tau_w,n)\). The stopped process \(\{S_{\tau_w\wedge n}\}_{n=0}^{\ell(w)+1}\) takes at most \(|w|_R+1\) steps to the right and \(|w|_L+1\) steps to the left (this follows from the recursive definition, 17 , 19 ). Furthermore: \(\{S_{\tau_w}=|w|_R+1\}=\{\xi_1=1,\dots,\xi_{|w|_R+1}=1\}\) and \(\{S_{\tau_w}=-(|w|_L+1)\}=\{\xi_1=-1,\dots,\xi_{|w|_L+1}=-1\}.\) Hence, \[\min(\operatorname{supp}(P_{w}))=-(|w|_L+1) and \max(\operatorname{supp}(P_{w}))=|w|_R+1,\] and \[\label{PWLR} P_{w}(-(|w|_L+1))=\left(\frac{1}{2}\right) ^{|w|_L+1} and P_{w}(|w|_R+1)=\left(\frac{1}{2}\right)^{|w|_R+1}.\tag{21}\]

4.3 Symmetries.↩︎

Given \(w\in\{L,R\}^\star\), we will write \(\overline{w}\) for the word obtained from \(w\) by interchanging \(L\) and \(R\) (for example, \(\overline{LLR}=RRL\)). By simple induction with respect to the length of the word \(w\), it is easy to see that \(S_{\tau_{\omega}}\stackrel{d}{=}-S_{\tau_{\overline{\omega}}}\), and hence: \[P_w(d)=P_{\overline{w}}(-d),\;d\in\mathbb{Z}.\]

Now, given \(w=w_1\dots w_n\), let \(\overleftarrow{w}\) denote the reversed word: \(\overleftarrow{w}=w_n\dots w_1\) ( \(\overleftarrow{\varepsilon}:=\varepsilon\)). The following symmetry may be a bit surprising: \[\label{sym2} P_w(d)=P_{\overleftarrow{w}}(d),\;w\in\{L,R\}^\star,\;d\in\mathbb{Z}.\tag{22}\] The above follows from the available results: paper [16] has shown that \(\mu_{(t)_2}=\mu_{\overleftarrow{(t)}_2}\), where \(\overleftarrow{(t)}_2\) reverses the digits in the binary representation \((t)_2\). Our representation \(t=w_1\dots w_n\) inherits this reverse property by Observation 1 (also, by the deconvolution formula). In particular, we see that the mapping \(T\ni \to P_t\in\Delta_0(\mathbb{Z})\) is not injective (the map \(T\ni t\to T_t\in\mathcal{T}\) is injective). The following theorem summarizes the symmetries.

Theorem 6. For any \(w\in\{R,L\}^*\), \[P_w(d)=P_{\overline{w}}(-d) and P_w(d)=P_{\overleftarrow{w}}(d),\;d\in\mathbb{Z}.\]

Conclusion 7. The alternating word \(v^{2n} = (LR)^n\) of length \(2n\) (\(v^{2n}=LRLR...LR\)) satisfies \[\overline{v^{2n}} = \overleftarrow{v^{2n}}=(RL)^n.\] By Theorem 6, the above implies: \[P_{v^{2n}}(d)=P_{v^{2n}}(-d),\; d\in\mathbb{Z}.\]

In particular, showing \(P_{v^{2n}}(\mathbb{N})\to \frac{1}{2}\) is equivalent to \(P_{v^{2n}}(\{0\})\to 0\). The word \(v^{2n}\) plays crucial role in the variance control.

4.4 Variance analysis↩︎

Given \(P\in\Delta(\mathbb{Z})\), we will write \[E[P]=\int\limits_{\mathbb{Z}}xP(dx) and D^2[P]=\int_{\mathbb{Z}}(x-E[P])^2P(dx).\] Controlling the variance of \(\mu_t\) is a nontrivial problem, important for the analysis of the asymptotics of \(\mu_t\), see for instance [2],[4],[5],[8]. We now show that considering the poset \((T, \preceq)\) allows for very natural variance control. One of the reasons is that \((T, \preceq)\) arranges the measures \(\mu_t\) in such a way that the variance is monotone. First, note that by \(\mu_t=\mu_1\ast P_t\), we have \(D^2[\mu_t]=2+D^2[P_t]\), and we thus focus on \(P_t\). We have: \[\label{monovar} s\preceq t \Longrightarrow D^2(P_s)\leq D^2(P_{t}).\tag{23}\] Within our framework, the above is immediate: \[s\preceq t \Longrightarrow D^2(P_s)=E[\tau_s]\leq E[\tau_{t}]=D^2(P_{t}).\] The monotonicity 23 may be also concluded from the fact that for any \(\mu,\nu\in \Delta_0(\mathbb{Z})\) \[\label{variance} D^2[\Phi(\mu,\nu)]=\frac{1}{2} D^2[\mu]+\frac{1}{2} D^2[\nu]+1\tag{24}\] Define recursively: \(L^{n+1}:=L^nL\) and \(R^{n+1}:=R^nR\). Note that constant words \(L^n\) and \(R^n\) ( \(L^n= 2^{n+1}+1\), \(R^n=2^{n+2}-1\)) have the smallest variance among all \(n\)-letter words: \[\min\limits_{w\in\{L,R\}^n}D^2(P_{w})=D^2(P_{L^n})=D^2(P_{R^n}).\] By 24 , \(D^2[P_{L^{n+1}}]=\frac{1}{2}\cdot D^2[P_{L^n}]+1\), where \(D^2[P_{L^0}]:=D^2[P_{\varepsilon}]=D^2[\frac{1}{2}\delta{-1}+\frac{1}{2}\delta_1]=1\). This yields: \[\label{minD} \min\limits_{w\in \{L,R\}^k} D^2[P_w]=D^2[P_{L^k}]=D^2[P_{R^k}]=2-(\frac{1}{2})^{k}.\tag{25}\] On the other hand, quick analysis of 24 shows that the alternating word \(v^n\) ( \(v^n_{k-1}\neq v^n_{k}\) for \(1<k\leq n\)) satisfies: \[\max\limits_{w\in \{L,R\}^n} D^2[P_w] =D^2[v^n].\] By induction, one may show that: \[\; D^2[P_{v^n}] \;=\; \frac{2n}{3} \;+\; \frac{8}{9} \;+\; \frac{(-1)^{n}}{9\cdot 2^{n}},\;n\geq0, \;( v^0:=\varepsilon).\] Now, we will take a more common approach: controlling the variance by the number of blocks \(\ell_b(w)\) in the word \(w\in\{L,R\}^\star\setminus\{\varepsilon\}\). More precisely, \[\ell_b(w_1^{n_1}w_2^{n_2}...w_k^{n_k})=k, wherew_i\neq w_{i+1} andn_i>0.\] By simple induction we obtain the monotonicity: \[\label{D2} D^2[w_1^{n_1}w_2^{n_2}...w_k^{n_k}]\leq D^2[w_1^{n_1+m_1}w_2^{n_2+m_2}...w_k^{n_k+m_k}], where m_i\geq0,\;i=1,\dots,k .\tag{26}\] Again, the alternating word \(v^n\) plays the fundamental role: \(l_b(v^n)=n\) and, by 26 , \[D^2[P_{v^k}]=\min\limits_{\{w\colon l_b(w)=k\}}D^2(P_w).\]

Recall that \(\lim\limits_{n\to\infty}D^2[P_{L^n}]=\lim\limits_{n\to\infty}D^2[P_{R^n}]=2\). Now, given the alternating word \(v\in\{L,R\}^k\), from 26 , by induction with respect to \(k\), \[\label{limlim} \sup\limits_{\{w\in \{L,R\}^\star \colon \ell_b(w)=k\}}D^2[P_w]=\lim\limits_{n\to\infty} D^2[P_{v_1^nv_2^n\dots v_k^n }]=\underbrace{2 + 2 + \cdots + 2}_{k}=k\cdot 2.\tag{27}\] We summarize this subsection with the following theorem.

Theorem 8. For any \(w\in\{L,R\}^\star\), \[2-(\frac{1}{2})^{\ell(w)}\leq D^2[P_w]\leq \frac{2\ell(w)}{3} \;+\; \frac{8}{9} \;+\; \frac{(-1)^{\ell(w)}}{9\cdot 2^{\ell(w)}},\]and for any \(w\in\{L,R\}^\star\setminus\{\varepsilon\}\), \[\frac{2\ell_b(w)}{3} \;+\; \frac{8}{9} \;+\; \frac{(-1)^{\ell_b(w)}}{9\cdot 2^{\ell_b(w)}}\leq D^2[P_w]< 2\cdot \ell_b(w),\] None of the above inequalities can be improved- the weak inequalities are attained by the constant word/alternating word, and the strong inequality is given by the limit \(\eqref{limlim}\).

Remark 9. For any \(w\in\{L,R\}^\mathbb{N}\), the sequence \(\{P_{w(t)}\}_{t=-1}^{\infty}\) is a peacock,[17], that is, \(P_{w(t)}\) are marginals of a martingal. Hence, for any convex function \(\psi\colon\mathbb{Z}\to\mathbb{R}\), \[\label{r}\textstyle \int\limits_{\mathbb{Z}}\psi d P_{w(t)}\leq \int\limits_{\mathbb{Z}}\psi d P_{w(t+1)}.\tag{28}\] Due to Kellerer, [18], 28 is also sufficient for the existence of the martingale which admits \(P_{w(t)}\). Property 28 forces the monotonicity of the span of the support and the monotonicity of the variance, both in the sense of non-strict inequalities. In the case of the family \(P_{w(t)}\) the inequalities are strict, for instance, \(diam(\operatorname{supp}(P_{w(t+1)}))=diam(\operatorname{supp}(P_{w(t)}))+1\).

4.5 Asymptotic behaviour↩︎

The asymptotic behaviour of \(X^w_t\) depends on whether the variance \(D^2[X^w_t]\) is bounded or tends to infinity. It is shown in [5], [8], that the sequence \(\mu_{t_k}\) satisfies the central limit theorem (CLT) if the number of blocks in the binary representation \((t_k)_2\) goes to infinity. In this section we will put more attention to the complementary scenario \(\sup\limits_{t\in\mathbb{N}}D^2[X^w_t]<\infty\). In this setting, the martingale \(X^w_t\) is almost surely convergent.

Bounded variance. Assume that \(\sup\limits_{t\in\mathbb{N}}D^2[P_{w(t)}]<+\infty\). This is the case of the sequences \(w\in\{L,R\}^{\mathbb{N}}\) that are eventually constant. We have: \(\sup\limits_{t\in\mathbb{N}}E|X^w_t|^2<\infty\), and by Doob theorem, the almost sure limit \(X^w_{\infty}=\lim\limits_{t\to\infty}X^w_t\) exists, and equals to the \(L^2\)- norm limit. The limit can be written explicitly, and the asymptotic distributions form the family \(\{\mu_t\}_{t\in T}\cup \{\hat{\mu}_t\}\), where \(\hat{\mu}_t\) are given by the reflection: \(\hat{\mu}_t(d)=\mu_t(-d)\), \(d\in\mathbb{Z}\).

Theorem 10. For any word \(v\in\{L,R\}^{\star}\), \(\lim\limits_{n\to\infty} P_{vRL^n}= \mu_v\) and \(\lim\limits_{n\to\infty} P_{vLR^n}= \hat{\mu}_v\). Additionally: \(\lim\limits_{n\to\infty}P_{L^n}=\mu_1\) and \(\lim\limits_{n\to\infty}P_{R^n}=\hat{\mu}_1\). Hence: \[\{\mathcal{L}(X^w_{\infty})\colon w \in\{L,R\}^\mathbb{N} is eventually constant\}=\{\mu_t\}_{t\in T}\cup \{\hat{\mu}_t\}_{t\in T}.\]

Proof. We start with the constant sequences: \(w^1=R^{\infty}\) and \(w^2=L^{\infty}\). We have \[T_{R^{n+1}}=[\bullet, T_R^n],\;T_{L^{n+1}}=[ T_L^n,\bullet], where T_{R^0}=T_{L^0}=T_{\varepsilon}=[\bullet,\bullet].\] Given \(k\in\mathbb{Z}\), let \[\tau(k)=\inf\{i\in\mathbb{N}^+\colon \xi_i=k\}.\] The limits of stopping times \(\tau_{R^n}\), \(\tau_{L^n}\), are: \[\tau_{R^{\infty}}:=\lim\limits_{n\to\infty}\tau_{R^n}=\tau(-1),\;\tau_{L^{\infty}}:=\lim\limits_{n\to\infty}\tau_{L^n}=\tau(1).\] The limit \(X_\infty\) is explicit: \(X_\infty^{w_1}=S_{\tau_{R^{\infty}}}=S_{\tau(-1)} and X_\infty^{w_2}=S_{\tau_{L^{\infty}}}=S_{\tau(1)},\) and hence \[\mathcal{L}( X_{\infty}^{w_1})=\mathcal{L}(S_{\tau(-1)})=\hat{\mu_1} and \mathcal{L}( X_{\infty}^{w_2})=S_{\tau(1)}=\mu_1.\] Now, fix an arbitrary word \(v\in\{L,R\}^{\star}\). We have: \(T_v=[T_v^-,T_v^+]\), \(T_{vR}=[T_v^-,T_v]\), \(T_{vRL}=[ T_{vR} ,T_v]\). In particular: \(P_{vR}=\Phi(P_v^L,P_v)\), and: \[P_{vRL}=\Phi(P_{vR},P_v)=\frac{1}{2}\cdot \sigma_{-1}(P_{vR}) + \frac{1}{2}\cdot \sigma_{1}(P_v)=\frac{1}{4}\cdot \sigma_{-2}(P_v^L) + \frac{1}{4}\cdot \sigma_{0}(P_{v}) + \frac{1}{2}\cdot \sigma_{1}(P_{v}).\] By iterating the above, we get: \[\label{iterating} P_{vRL^n}=\frac{1}{2^{n+1}}\cdot \sigma_{-(n+1)}(P_v^L) + \sum\limits_ {i=-(n-1)}^1 \frac{1}{2^{2-i}}\cdot \sigma_{i}(P_v).\tag{29}\] The law \(\mathcal{L}(X^w_{\infty})\), where \(w=vRL^{\infty}\), is the limit of the above sum: \[\mathcal{L}(X^w_{\infty})=\sum\limits_{i=-\infty}^{1} \frac{1}{2^{2-i}}\cdot \sigma_{i}(P_v)=\mu_1 * P_{v}=\mu_{v}.\] To show \(\mathcal{L}(X_{\infty}^{w_2})=\hat{\mu_{v}}\), where \(w_2=vLR^{\infty}\), we can repeat the above reasoning, or just use the symmetry \(P_{\overline{w}}(d)=\hat{P}(d)\). ◻

Observation 11. Given \(v\in\{L,R\}^\star\), one may note that \(\tau_{vRL^n}\to \tau\) a.s., where: \[\tau = \tau(1) + \tau_v(\xi_{\tau_1+1},\xi_{\tau_1+2},\cdots)=\tau(1)+\tau_v\circ \sigma_{\tau(1)}\circ (\xi_1,\xi_2,\dots),\] where \(\sigma_{d}\) is the right shift on \(\{-1,1\}^\mathbb{N}\). In words, the stopping rule for \(\tau=\lim\limits_{n\to\infty}\tau_{vRL^n}\) is given by: wait for the first \(i\in\mathbb{N}^+\) with \(\xi_i=1\), and next switch the stopping rule to \(\tau_v\). Additionally, by the strong Markov property of \(S_n\), \[\mathcal{L}(S_{\tau})=\mathcal{L}\left(\sum\limits_{i=1}^{\tau(1)}\xi_i+\sum\limits_{i=\tau(1)+1}^{ \tau_v\circ \sigma_{\tau(1)}(\xi_1,\xi_2,\dots)}\xi_i\right)=\mathcal{L}(S_{\tau(1)}) \ast \mathcal{L}( S_{\tau_{v}})=\mu_1\ast P_{v}.\]

Unbounded variance. If \(w\in\{L,R\}^\mathbb{N}\) satisfies \(l_b(w_1\dots w_t)\to+\infty\), then, after the renormalization, the sequence \(\mu_{w(t)}\) converges weakly to the standard normal distribution: \[\frac{\mu_{w(t)}}{\sqrt{D^2[\mu_{w(t)}]}}\to N(0,1),\] see [8], [5] for more details. As \(\mu_t=\mu_1\ast P_t\), and \(D^2(\mu_1)=2<\infty\), we get: \[\frac{P_{w(t)}}{\sqrt{D^2[P_{w(t)}]}}\to N(0,1).\] We note that there are various results on the central limit theorem for martingales, [19], and stopped random walks, [20], although this topic is beyond the scope of the present paper.

5 The tree asymmetry and Cusick conjecture.↩︎

Considering the dynamics behind the equations 16 , it is natural to conjecture: \[\label{medP} P_t(\mathbb{N})\geq\frac{1}{2},\;t\in\mathbb{N}.\tag{30}\] Equivalently: \(P_t(-\mathbb{N})\geq\frac{1}{2}\), \(t\in\mathbb{N}\), by the symmetries. The proof of 30 is not obvious. It is worth to mention that conjecture 30 is presented in Section 3.4 of [2] along with numerical verification, and the authors note that 30 implies \(\mu_t(\mathbb{N})\geq\frac{1}{2}\) and \(\mu_t(-\mathbb{N})\geq\frac{1}{2}\) (Lemma 5 in [2]). Within our framework, this observation is the property of the limit: \[\mu_t(\mathbb{N})=\lim\limits_{n\to\infty}P_{tRL^n}(\mathbb{N}) and \hat{\mu}_t(\mathbb{N})=\lim\limits_{n\to\infty}P_{tLR^n}(\mathbb{N}),\] and equation 30 is equivalent to the median-preserving property of the martingale: \[\label{medPP} \mathbb{P}[X^w_t\geq 0]\geq\frac{1}{2} and \mathbb{P}[X^w_t\leq 0]\geq\frac{1}{2}, for w\in\{L,R\}^\mathbb{N},\;t\in\mathbb{N}.\tag{31}\] If the above holds true, then by our hierarchical construction the stopped random walk \(X^w_t\) splits the mass of every node of the tree in such a way that the median of the attached subtree is preserved. Hence, by 21 and by the construction:

Observation 12. If 31 holds true, then for any \(v\in\{L,R\}^\star\), for any natural \(k\leq |v|_R+1\), \(l\leq |v|_L+1\), we have: \(P_v[\mathbb{Z}_{\geq k}]\geq (\frac{1}{2})^{k+2}\) and \(P_v[\mathbb{Z}_{\leq -l}]\geq (\frac{1}{2})^{l+2}\).

The weak inequalities 30 /31 seem to be not sufficient to force the strong inequality from the Cusick problem. Based on the tree dynamics developed in this paper, we propose a natural generalization of Cusick conjecture. Fix \(w\in\{L,R\}^\mathbb{N}\). At the beginning, the tree \(T_{w(0)}=[\bullet,\bullet]\) is symmetric, and \(P_{w(0)}=\frac{1}{2}\delta_{-1}+\frac{1}{2}\delta_1\). Next, the first letter introduces the asymmetry: \[P_{L}(\mathbb{N})=\frac{3}{4}>\frac{1}{2} and P_{R}(-\mathbb{N})=\frac{3}{4}>\frac{1}{2}.\] We conjecture that the above asymmetry persists during the whole evolution process:

Conjecture 13. For any \(v\in\{L,R\}^{\star}\), \[\label{concon} P_{Lv}(\mathbb{N})>\frac{1}{2} and P_{Rv}(-\mathbb{N})>\frac{1}{2},.\qquad{(1)}\]

In words: once the tree begins to grow, one side becomes heavier than \(\frac{1}{2}\), and it remains so throughout the whole process. The Cusick conjecture is the special case of this claim:

Lemma 1. If \(P_{Lw}(\mathbb{N})>\frac{1}{2}\), \(w\in\{L,R\}^\star\), then \(\mu_v(\mathbb{N})>\frac{1}{2}\) for any \(v\in \{L,R\}^\star\).

Proof. Fix \(v\in \{L,R\}^\star\). We have \(\mu_v(\mathbb{N})=\lim\limits_{n\to\infty}P_{vRL^n}(\mathbb{N})\), and, by 29 , \[P_{vRL^n}(\mathbb{N})=(\frac{1}{2})^{n+1} \sigma_{(-n-1)}(P^L_v)(\mathbb{N})+(\frac{1}{2})^{n+1} \sigma_{(1-n)}(P_v)(\mathbb{N}) + \dots+(\frac{1}{2})^2 \sigma_{0}(P_v)(\mathbb{N})+\frac{1}{2} \sigma_{1}(P_v)(\mathbb{N}).\] Additionally: \(\sigma_{-k}(P_v)(\mathbb{N})>0\Leftrightarrow P_v(\mathbb{Z}_{\geq k})>0\Leftrightarrow k\leq \ell_R(v)+1\), and \[\max(\operatorname{supp}(P^L_v))\leq \max(\operatorname{supp}(P_v)).\] Thus, put \(k:=\ell_R(v)+2\), for which we have \(P_v(\mathbb{Z}_{\geq k})=0\), \(P^L_v(\mathbb{Z}_{\geq k})=0\), and hence \[\mu_v(\mathbb{N})=\lim\limits_{n\to\infty}P_{vRL^n}(\mathbb{N})=P_{vRL^k}(\mathbb{N}).\] By the reverse property, and by the lemma assumption, \(P_{vRL^k}(\mathbb{N})=P_{L^kR\overleftarrow{v}}(\mathbb{N})>\frac{1}{2}\). ◻

Coming back to the language of binary digits, by Observation 1:

Conclusion 14. If \(P_t(\mathbb{N})>\frac{1}{2}\) for any odd \(t=(t_1t_2\dots t_n)_2\) with \(t_2=0\), then \(\mu_t(\mathbb{N})>\frac{1}{2}\) for any \(t\in\mathbb{N}\).

Our numerical experiments support ?? (and 30 ). Let \(T[3,K]:=\{s\in T | 3\leq s\leq K\}\). For \(K=12\;000\;001\), we have verified that the global minima of the function \[V\colon T[3,K] \ni t \longmapsto \sum\limits_{d=0}^{\infty}P_t(\{d\}) \in [0,1]\] satisfy \[V(t)=\frac{1}{2}andW_1(t)=R,\] where \(t=W_1(t)...W_k(t)\in\{L,R\}^\star\). More precisely, the minimum \(V(t)=\frac{1}{2}\) is attained at \(982\) odd integers with \(3\leq t\leq12 000 001\) (and the second digit in the binary representation is always "one"). Below we list the first few minimizers. While the symmetries provide some insight, a general pattern for finding \(t\) with \(V(t)=\frac{1}{2}\) is not obvious.

3pt

Table 1: The first few words with \(V(t)=P_t(\mathbb{N})=\frac{1}{2}\)
\(\ell(w)\) \(t\) \(w(t)\) \(\ell(w)\) \(t\) \(w(t)\) \(\ell(w)\) \(t\) \(w(t)\)
0 3 \(\varepsilon\) 7 447 RLRRRRR 9 1919 RRLRRRRRR
1 7 R 7 479 RRLRRRR 9 1975 RRRLRRLRR
2 15 RR 7 495 RRRLRRR 9 1983 RRRLRRRRR
3 27 RLR 7 503 RRRRLRR 9 2015 RRRRLRRRR
3 31 RRR 7 507 RRRRRLR 9 2031 RRRRRLRRR
4 55 RLRR 7 511 RRRRRRR 9 2039 RRRRRRLRR
4 59 RRLR 8 895 RLRRRRRR 9 2043 RRRRRRRLR
4 63 RRRR 8 951 RRLRRLRR 9 2047 RRRRRRRRR
5 111 RLRRR 8 959 RRLRRRRR 9 2039 RRRRRRLRR
5 119 RRLRR 8 991 RRRLRRRR 9 2043 RRRRRRRLR
5 123 RRRLR 8 1007 RRRRLRRR 9 2047 RRRRRRRRR
5 127 RRRRR 8 1015 RRRRRLRR 10 3583 RLRRRRRRRR
6 223 RLRRRR 8 1019 RRRRRRLR 10 3807 RRLRRLRRRR
6 239 RRLRRR 8 1023 RRRRRRRR 10 3823 RRLRRRLRRR
6 247 RRRLRR 9 1791 RLRRRRRRR 10 3831 RRLRRRRLRR
6 251 RRRRLR 9 1903 RRLRRLRRR 10 3839 RRLRRRRRRR
6 255 RRRRRR 9 1911 RRLRRRLRR 10 3951 RRRLRRLRRR

References↩︎

[1]
J. Bésineau, Indépendance statistique d’ensembles liés à la fonction “somme des chiffres”, Acta Arith. 20(1972), 401–416.
[2]
M. Drmota, M. Kauers, and L. Spiegelhofer, On a conjecture of Cusick concerning the sum of digits of \(n\) and \(n + t\), SIAM J. Discrete Math. 30(2016), no. 2, 621–649.
[3]
J. Emme and A. Prikhod’ko, On the asymptotic behavior of density of sets defined by sum-of-digits function in base \(2\), Integers 17(2017), Paper No. A58, 28 pp.
[4]
J. Emme and P. Hubert, Central limit theorem for probability measures defined by sum-of-digits function in base 2, Ann. Sc. Norm. Super. Pisa Cl. Sci. (5) 19(2019), no. 2, 757–780.
[5]
Y. Hosten, É. Janvresse, and T. de la Rue, A central limit theorem for the variation of the sum of digits, Ann. Inst. H. Poincaré Probab. Statist.60(2024), no. 2, 1125–1149.
[6]
L. Spiegelhofer, A lower bound for Cusick’s conjecture on the digits of \(n + t\), Math. Proc. Cambridge Philos. Soc. 172(2022), no. 1, 139–161.
[7]
L. Spiegelhofer and M. Wallner, The Tu–Deng conjecture holds almost surely, Electron. J. Combin. 26(2019), Paper 1.28, 28 pp.
[8]
L. Spiegelhofer and M. Wallner, The binary digits of \(n + t\), Ann. Sc. Norm. Super. Pisa Cl. Sci. (5) 24(2023), 1–31.
[9]
B. Sobolewski and L. Spiegelhofer, Decomposing the sum-of-digits correlation measure, J. Number Theory 280(2026), 702–736.
[10]
T. W. Cusick, Y. Li, and P. Stǎnică, On a combinatorial conjecture, Integers11(2011), no. 2, 185–203.
[11]
Z. Tu and Y. Deng, A conjecture about binary strings and its applications on constructing Boolean functions with optimal algebraic immunity, Des. Codes Cryptogr.60(2011), 1–14.
[12]
R. P. Stanley, Enumerative combinatorics. Vol. 2, Cambridge Studies in Advanced Mathematics, vol. 62, Cambridge University Press, Cambridge, 1999,.
[13]
J. L. Doob, Stochastic Processes, John Wiley & Sons, New York, 1953.
[14]
A. M. G. Cox and J. Obłój, Classes of measures which can be embedded in the Simple Symmetric Random Walk, Electron. J. Probab. 13(2008), 1203–1228.
[15]
A.V. Skorokhod (1982), Studies in the theory of random processes (Vol. 7021). Courier Dover Publications.
[16]
J. F. Morgenbesser and L. Spiegelhofer, A reverse order property of correlation measures of the sum-of-digits function, Integers 12(2012), Paper No. A47, 5 pp.
[17]
F. Hirsch, C. Profeta, B. Roynette, and M. Yor, Peacocks and associated martingales, with explicit constructions, Bocconi & Springer Series, vol. 3, Springer, Milan, 2011.
[18]
H. G. Kellerer, Markov-Komposition und eine Anwendung auf Martingale, Math. Ann. 198(1972), 99–122.
[19]
P. Hall and C. C. Heyde, Martingale Limit Theory and Its Application, Academic Press, New York, 1980.
[20]
A. Gut, Stopped Random Walks: Limit Theorems and Applications, 2nd ed., Springer Series in Operations Research and Financial Engineering, Springer, New York, 2009.

  1. E-mail addresses: dawid.tarlowski@uj.edu.pl ; dawid.tarlowski@gmail.com↩︎