1. Introduction
Minkowski’s
$?$
-function [Reference Minkowski10] relates continued fraction expansions and binary expansions in a way that sends all rational numbers to numbers with eventually terminating binary expansions and quadratic surds to numbers with eventually periodic binary expansions. More specifically, if
$x\in (0,1)$
has the ordinary continued fraction expansion
$$ \begin{align*} x=[0;a_1,a_2,\ldots]=\cfrac{1}{a_1+\cfrac{1}{a_2+\cfrac{1}{\ddots}}}, \end{align*} $$
where the positive integers
$a_1,a_2,\ldots ,$
are the partial quotients of x, then
$?(x)$
is defined as
$$ \begin{align*}?(x):=2\sum_{n\geqslant 1}\frac{(-1)^{n+1}}{2^{a_1+\cdots+a_n}}.\end{align*} $$
It turns out that
$?(x)$
is a strictly increasing singular continuous function. Recall that a function is singular continuous if, almost everywhere, its derivative exists and is zero. In 1943, in response to the lack of any ‘simple direct construction of such functions’, Salem [Reference Salem14] presented a cohesive collection of strictly increasing singular continuous functions. One of the large classes of functions that Salem constructed in his paper can be realised as the distribution functions of probability measures associated to biased coin tosses. The graphs of each of these distribution functions is the attractor of an iterated function system related to a pair of
$2\times 2$
diagonal matrices [Reference Coons, Evans, Groth and Mañibo6], and the related measures are special cases of what are now called ghost measures [Reference Coons, Evans and Mañibo7]. This relationship to ghost measures provides results that allow one to prove the singular continuity of these functions via properties of a pair of matrices: the maximal Lyapunov exponent of this pair of matrices is strictly less than half the value of the spectral radius of the sum matrix [Reference Coons, Evans, Gohlke and Mañibo5, Proposition 3]. Later in his paper, Salem gave special attention to Minkowski’s
$?$
-function as one of his examples that did not fall in this class of probability measures. He noted that its ‘singularity is by no means obvious’.
In this short note, we show that Minkowski’s
$?$
-function is not as far from this class as previously believed by giving a new proof of Minkowski’s result. Our proof follows, similarly to Salem’s class described above, by associating a pair of
$3\times 3$
matrices to
$?(x)$
and comparing the maximal Lyapunov exponent with the spectral radius of the sum matrix.
2. The relationship between
$?(x)$
and Stern’s diatomic sequence
Stern’s diatomic sequence
$s(n)$
is defined initially by
$s(0)=0$
and
$s(1)=1$
, and then for
$n\geqslant 1$
, by the recursions
Stern’s sequence can be used to list the rational numbers in
$[0,1]$
, via what is known as the Stern–Brocot tree [Reference Brocot4, Reference Stern15]. Here, the kth level of the Stern–Brocot tree is composed of the finite increasing sequence of rationals
Though slightly different,
$F_k(n)$
is reminiscent of the kth level of the Farey tree and, similarly, in the limit as k goes to infinity,
$F_k(n)$
produces all of the rational numbers in
$[0,1]$
. It turns out that the points
$(n/2^k,F_k(n))$
induce a strictly increasing continuous function
$\Phi :[0,1]\to [0,1]$
, that is,
$\Phi ({n}/{2^k})=F_k(n)$
for all
$k\geqslant 0$
and
$n\in \{0,1,\ldots ,2^k\}$
. The function
$\Phi (x)$
is a somewhat well-known object, which turns out to be precisely the inverse function of Minkowski’s
$?$
-function, a result that has been proved several times and is readily available in the literature. One convenient easy-to-read version was given by Northshield [Reference Northshield11, Section 6]. We have collected the necessary results from Northshield’s paper and record them in the following proposition. The proofs of these results are elementary and we encourage the interested reader to consult [Reference Northshield11].
Proposition 2.1 (Northshield).
The function
$\Phi :[0,1]\to [0,1]$
is a strictly increasing continuous function satisfying
for all
$k\geqslant 0$
and
$n\in \{0,1,\ldots ,2^k-1\}$
. Moreover,
$\Phi ^{-1}(x)=\ ?(x)$
.
Since
$\Phi (x)$
is a strictly increasing continuous function on
$[0,1]$
, it is differentiable almost everywhere on
$[0,1]$
. Moreover, using straightforward measure-theoretic arguments, if
$\Phi (x)$
is singular continuous, then so is
$\Phi ^{-1}(x)=\ ?(x)$
(see, for example, [Reference Berg and Krüppel3, Proposition 3.1]). Another way to see that the inverse of a strictly increasing singular continuous function is also singular continuous is via the length of the graph. The curve of the graphs of such functions that go from
$(0,0)$
to
$(1,1)$
necessarily (and sufficiently) have length equal to
$2$
(see [Reference Dovgoshei and Martio8]). Thus, to prove our main result for Minkowski’s
$?$
-function, we need only show that
$\Phi (x)$
is singular continuous.
To this end, let us suppose that
$\xi \in (0,1)$
is an irrational number for which
$\Phi '(\xi )$
exists; the set of such
$\xi $
has full Lebesgue measure in
$[0,1]$
. Note that
$\lfloor 2^n\xi \rfloor $
is the unique integer in
$\{0,1,\ldots ,2^n-1\}$
for which
$\lfloor 2^n\xi \rfloor /2^n<\xi <(\lfloor 2^n\xi \rfloor +1)/2^n$
. Since this derivative exists,
$$ \begin{align} \Phi'(\xi)=\lim_{n\to\infty}\frac{\Phi(\frac{\lfloor 2^n\xi\rfloor+1}{2^n})-\Phi(\frac{\lfloor 2^n\xi\rfloor}{2^n})}{\frac{\lfloor 2^n\xi\rfloor+1}{2^n}-\frac{\lfloor 2^n\xi\rfloor}{2^n}} =\lim_{n\to\infty}\frac{2^n}{s(2^n+\lfloor 2^n\xi\rfloor)s(2^n+\lfloor 2^n\xi\rfloor+1)}. \end{align} $$
If we can show that for almost all of these
$\xi $
, the limit (2.1) is equal to zero, then we are done. This is exactly what we will show.
We are led to study the asymptotic behaviour of the sequence
$s(n)s(n+1)$
.
3. The structure and growth of
$s(n)s(n+1)$
The recursions defining Stern’s sequence, when applied to
$f(n):=s(n)s(n+1)$
, yield the recurrences
and
These recurrences allow us to represent the values
$f(n)$
as matrix products.
Lemma 3.1. Let f be defined as above,
$$ \begin{align*}\mathbf{A}_0:=\begin{pmatrix}1&0&1\\2&1&1\\0&0&1\end{pmatrix} \quad\mbox{and}\quad\mathbf{A}_1:=\begin{pmatrix}1&1&0\\0&1&0\\2&1&1\end{pmatrix}.\end{align*} $$
If the binary expansion of n is
$(n)_2=i_s\cdots i_1i_0$
, then
$f(n)=(1\ 0\ 0) \mathbf {A}_{i_0}\mathbf {A}_{i_1}\cdots \mathbf {A}_{i_s}(0\ 1\ 0)^T.$
Proof. This follows directly from the recurrences satisfied by f, noting that
$$ \begin{align*}\begin{pmatrix}f(2n)\\ s(2n+1)^2\\ s(2n)^2\end{pmatrix}=\begin{pmatrix}1&0&1\\2&1&1\\0&0&1\end{pmatrix}\begin{pmatrix}f(n)\\ s(n+1)^2\\ s(n)^2\end{pmatrix}\quad \mbox{and}\quad \begin{pmatrix}f(2n+1)\\ s(2n+2)^2\\ s(2n+1)^2\end{pmatrix}=\begin{pmatrix}1&1&0\\0&1&0\\2&1&1\end{pmatrix}\begin{pmatrix}f(n)\\ s(n+1)^2\\ s(n)^2\end{pmatrix}.\end{align*} $$
The vector
$(0\ 1\ 0)^T=(f(0)\ s(0+1)^2\ s(n)^2)^T$
is the vector of initial values and the vector
$(1\ 0\ 0)$
pulls off the top entry of the product, which is the value of the function f.
Remark 3.2. Sequences whose values can be given by matrix representations as in Lemma 3.1 are well-studied objects in theoretic computer science known as k-regular sequences, where k indicates the inherent dependence on base-k expansions. In our example, the value of k is 2. Regular sequences are the generalisation of automatic sequences to include certain unbounded sequences. For details and information concerning regular sequences, see Allouche and Shallit’s seminal paper [Reference Allouche and Shallit1], and for details in the context of automatic sequences, see their monograph [Reference Allouche and Shallit2].
The invariant subspaces of
$\mathbf {A}_0$
and
$\mathbf {A}_1$
are different, so as a pair, they are irreducible. Since these matrices are also nonnegative, the almost everywhere behaviour of their products is defined by the (maximal) Lyapunov exponent of the pair. The Lyapunov exponent of a finite set of
$d\times d$
matrices,
$\mathcal {M}:=\{\mathbf {M}_1,\mathbf {M}_2,\ldots , \mathbf {M}_{k}\}$
, is given by the value
$\log \bar {\rho }$
, where
$$ \begin{align*} \bar{\rho}=\bar{\rho}(\mathcal{M}):=\lim_{n\to\infty}\bigg(\prod_{1\leqslant i_1,i_2,\ldots,i_{n}\leqslant k}\| \mathbf{M}_{i_1}\mathbf{ M}_{i_2}\cdots\mathbf{M}_{i_{n}}\|^{{1}/{n}}\bigg)^{1/k^n}, \end{align*} $$
where
$\|\cdot \|$
is any (submultiplicative) matrix norm. Here, all nonzero entries of almost all sequences of products of
$\mathbf {A}_0$
and
$\mathbf {A}_1$
have the same asymptotic growth exponent—the (maximal) Lyapunov exponent (see [Reference Protasov12]). In particular, for Lebesgue-almost all
$x\in [0,1)$
and any
$i,j\in \{1,\ldots ,d\}$
,
where the base-k expansion of x is
$(x)_k=0.w_1w_2\cdots $
and
$c_{\xi }(n)$
is subexponential in n.
Protasov and Jungers [Reference Protasov and Jungers13] determined an efficient way to effectively bound the (maximal) Lyapunov exponent of nonnegative matrices—we only use their lower bound. For any
$m\in \mathbb {N}$
and any positive vector
$v:=(v_1,v_2,\ldots ,v_d)^T\in \mathbb {R}_{>0}^d$
, define
$$ \begin{align*} \beta_m(v):=\min_{j=1,\ldots,d}\bigg(-\log(v_j)+\mathbb{E}\bigg\{\log\bigg(\sum_{i=1}^d a_{ij}v_i\bigg):\mathbf{ M}\in\mathcal{M}^m\bigg\}\bigg), \end{align*} $$
where
$\mathcal {M}^m$
is the set of products of m elements of
$\mathcal {M}$
and
$\mathbb {E}$
denotes expectation. The following result can be found from Protasov and Jungers [Reference Protasov and Jungers13, (12)].
Proposition 3.3 (Protasov and Jungers).
Let
$\mathcal {M}$
be a set of
$k\geqslant 1$
nonnegative
$d\times d$
matrices. Then,
In particular,
$\log \bar {\rho }\geqslant \beta _m(v)$
for any single positive real vector v. In what follows, for convenience, we will use
$v=(1,1,1)^T$
.
Lemma 3.4. The (maximal) Lyapunov exponent of the matrices
$\mathbf {A}_0$
and
$\mathbf {A}_1$
, defined in Lemma 3.1, satisfies
$\log \bar {\rho }(\mathbf {A}_0,\mathbf {A}_1)>\log 2.$
Proof. We apply Proposition 3.3 with
$v=(1,1,1)^T$
and
$k=2$
. For
$\mathcal {A}:=\{\mathbf {A}_0,\mathbf {A}_1\}$
,
$$ \begin{align*}\mathcal{A}^2=\left\{ \begin{pmatrix} 1&0&2\\ 4&1&4\\0&0&1\end{pmatrix}, \begin{pmatrix} 3&1&2\\ 2&1&1\\4&1&4\end{pmatrix}, \begin{pmatrix} 3&2&1\\ 4&4&1\\2&1&1\end{pmatrix}, \begin{pmatrix} 1&2&0\\ 0&1&0\\4&4&1\end{pmatrix}\right\} .\end{align*} $$
Inspecting the columns in order,
4. A new proof of the singularity of
$?(x)$
Recall, the singularity of
$?(x)$
follows if the limit (2.1) is zero for almost all
${\xi \in [0,1]}$
.
For Lebesgue-almost every
$\xi \in [0,1]$
, (3.1) gives
where
$c_{\xi }(n)$
grows subexponentially in n and
$(\xi )_k=0.i_1i_2\cdots $
in base k. By Lemma 3.4,
$\bar {\rho }(\mathbf {A}_0,\mathbf {A}_1)>2$
. Thus, for Lebesgue-almost all
$\xi \in [0,1]$
,
$$ \begin{align*}\Phi'(\xi)=\lim_{n\to\infty}\frac{2^n}{c_{\xi}(n)\cdot\bar{\rho}(\mathbf{A}_0,\mathbf{A}_1)^n}=0.\end{align*} $$
That is, the limit (2.1) is zero for almost all
$\xi $
, which finishes the proof.
Remark 4.1. While we have given a new proof of the singular continuity of
$?(x)$
that almost everywhere,
$?'(x)$
exists and equals zero, there is finer information known about the existence and values of this derivative. Dushistova et al. [Reference Dushistova, Kan and Moshchevitin9] gave necessary and sufficient conditions for the derivative of
$?(x)$
to be equal to zero or infinity. In their proofs, they exploit the relation to the Stern–Brocot tree to get upper and lower bounds for the difference quotient of
$?(x)$
. One additional point of interest in their results is the genuine gap (optimal in their context) between the conclusions of the derivative being zero or infinity.






