betaFeedback

WorksMathematics

Generalized Markov numbers and plane lattices

Abstract

We give new explicit constructions of lattice rules in the two-dimensional square and torus. It is well-known that uniformly distributed lattices (in the sense of low-discrepancy) arise from continued fractions with bounded partial denominators. We demonstrate how integers solutions of the generalized Markov equation x2+y2+z2=kxyz−k+3x^2+y^2+z^2 = kxyz-k+3 give rise to such lattices.

Introduction and statement of the main result

A Markov triple (x,y,z)∈N3(x,y,z) \in\mathbb{N}^3 is a solution in the positive integers of the Markov equation

x2+y2+z2=3xyz(1)x^2+y^2+z^2=3xyz \tag*{(1)}

A Markov number is a natural number m∈Nm \in\mathbb{N} which appears as a member of a Markov triple. The Markov numbers below 1000 are 1, 2, 5, 13, 29, 34, 89, 169, 194, 233, 433, 610, 985. The relevance of these numbers can be traced back to the works of Markov [21], Hurwitz [17] and Frobenius [11] in their studies on Diophantine approximation and binary quadratic forms. A modern account, also describing several other appearances of the Markov numbers all throughout mathematics, is given in Aigner’s book [1].

In this paper, we will consider a generalization of the above equation. For any k∈N∖{1,2}k \in\mathbb{N} \setminus\{1,2\} consider the kk-Markov equation

x2+y2+z2=kxyz−k+3(2)x^2+y^2+z^2=kxyz-k+3 \tag*{(2)}

We are interested in the positive integer solutions (x,y,z)∈N3(x,y,z) \in\mathbb{N}^3 of this equation. It is straight forward to check that if (x,y,z)∈N3(x,y,z) \in\mathbb{N}^3 is a solution of (2), then so is

(kyz−x,y,z).(3)(kyz-x,y,z). \tag*{(3)}

This is called the Vieta involution or mutation of (x,y,z)(x,y,z). In fact, this operation together with the symmetry of the kk-Markov equation can be used to generate all solutions.

Theorem 1. Let k∈N∖{1,2}k \in\mathbb{N} \setminus\{1,2\}. Every positive integer solution (x,y,z)∈N3(x,y,z) \in\mathbb{N}^{3} of the kk-Markov equation (2) can be obtained by repeatedly applying the Vieta involution (3) and variable permutation to the triple (1,1,1)(1,1,1).

The proof follows two main steps: Firstly, that all solutions (x,y,z)∈N3(x,y,z) \in\mathbb{N}^{3} with y=zy=z are given by (1,1,1)(1,1,1) and (k−1,1,1)(k-1,1,1). And secondly, that every solution (x,y,z)∈N3(x,y,z) \in\mathbb{N}^{3} with x>y>zx>y>z can be reduced (in the sense of max⁡{x,y,z}>max⁡{kyz−x,y,z}\max\{x,y,z\}>\max\{kyz-x,y,z\}) by applying the Vieta involution (3). We omit the details here but refer to [13] where the details are explained for a different but similar generalization of the Markov equation (1).

Noting that a triple of integers is pairwise coprime if and only if the same holds for its Vieta involution (3), this immediately leads to the following corollary.

Corollary 2. Let k∈N∖{1,2}k \in\mathbb{N} \setminus\{1,2\}. Every positive integer solution (x,y,z)∈N3(x,y,z) \in\mathbb{N}^{3} of the kk-Markov equation (2) consists of pairwise coprime numbers, i.e. gcd⁡(x,y)=gcd⁡(x,z)=gcd⁡(y,z)=1\gcd(x,y)=\gcd(x,z)=\gcd(y,z)=1.

We also note the following result on the number of solutions of (2) up to a given bound.

Theorem 3. Let k∈N∖{1,2}k \in\mathbb{N} \setminus\{1,2\}. For R∈NR \in\mathbb{N} one has

#{(x,y,z)∈{1,…,R}3:x2+y2+z2=kxyz−k+3}≍(log⁡R)2.\#\{(x,y,z) \in\{1,\ldots,R\}^{3}: x^{2}+y^{2}+z^{2}=kxyz-k+3\} \asymp(\log R)^{2}.

The proof of this result and further background can be found in [12].

Assume now that (N,a,b)∈N3(N,a,b) \in\mathbb{N}^{3}, N>a≥bN>a\geq b is a solution of (2). By Corollary 2, there is a unique number g∈{1,…,N−1}g \in\{1,\ldots,N-1\} with gcd⁡(g,N)=1\gcd(g,N)=1 and ag≡b(modN)ag \equiv b \pmod{N}. This number gg is called the characteristic value of the triple (N,a,b)(N,a,b). Our main result is concerned with the continued fraction expansion of the quotient g/Ng/N.

Theorem 4. Let k∈N∖{1,2}k \in\mathbb{N} \setminus\{1,2\}. If (N,a,b)∈N3(N,a,b) \in\mathbb{N}^{3}, N>a≥bN>a\geq b is a solution of the kk-Markov equation (2) with characteristic value gg, then the continued fraction expansion

gN=[0;c1,…,cn]=1c1+1c2+1⋱+1cn\frac{g}{N}=[0;c_{1},\ldots,c_{n}]=\frac{1}{c_{1}+\frac{1}{c_{2}+\frac{1}{\ddots+\frac{1}{c_{n}}}}}

consists of partial denominators ci∈{1,…,k−1}c_i \in\{1,\ldots,k-1\} for all i∈{1,…,n}i \in\{1,\ldots,n\}.

The bound of k−1k-1 is sharp. In fact, our methods even give more precise structural results on the partial denominators cic_i, see § 3.2.

The case of the classical Markov equation (1) is worth considering on its own. The connection between Markov numbers and continued fraction expansions only consisting of ones and twos is well-known [1], also see [7]. For us relevant is the following, which may be compared to [7 Theorem C].

Theorem 5. Let (N,a,b)∈N3(N,a,b) \in\mathbb{N}^{3}, N>a≥bN>a\geq b be a solution of the Markov equation (1) with N≥5N\geq5. Let 1≤g<N/21\leq g<N/2 be the unique integer with ag≡±b(modN)ag\equiv\pm b \pmod{N}. Then

gN=[0;c1,c2,…,cn]\frac{g}{N}=[0;c_{1},c_{2},\ldots,c_{n}]

with n∈Nn \in\mathbb{N} even, ci∈{1,2}c_i \in\{1,2\}, c1=cn=2c_1=c_n=2, ci=cn+1−ic_i=c_{n+1-i} for all i∈{1,…,n}i \in\{1,\ldots,n\} and c2i=c2i+1c_{2i}=c_{2i+1} for all i∈{1,…,n/2−1}i \in\{1,\ldots,n/2-1\}.

Thus, the continued fraction expansion is symmetric and, except for the initial and final 22, comes in blocks of (1,1)(1,1) and (2,2)(2,2). This property does not hold for the corresponding fractions g/Ng/N generated from the kk-Markov equations for k>3k>3. The proof is given in Section 3.1.

Remark 6. To put the results in context, recall that Zaramba’s conjecture from [28, p. 76] asks for the existence of a number CC with the property such that for any N∈N∖{1}N \in\mathbb{N} \setminus\{1\} there exists a g∈{1,…,N−1}g \in\{1,\ldots,N-1\} with gcd⁡(g,N)=1\gcd(g,N)=1 such that the continued fraction coefficients of g/Ng/N are bounded by CC. In fact, Zaremba conjectured that this holds already for C=5C=5 (which would be the smallest possible choice for general NN). So far there exist only partial answers. The conjecture is true when NN is a Fibonacci number (even with C=1C=1). Niederreiter [23] proved that Zaremba’s conjecture holds true if NN is of the form 2m2^m or 3m3^m, in which case one may even choose C=3C=3, or of the form 5m5^m, where CC can be chosen equal to 44. Niederreiter’s proof provides an effective construction of gg with the desired properties. Bourgain and Kontorovich [6] and Huang [16] proved that Zaremba’s conjecture holds true for a set of denominators NN of density 11.

Disclosure on AI usage. The main results (Theorems 4 and 5) were found and proven by the authors without AI assistance. Only the second part of the proof in Appendix § 4 was aided by the shared Austrian cloud platform Academic-AI, GPT-5.6 Sol.

Applications to discrepancy theory

Before coming to the proofs of Theorems 4 and 5, let us discuss some of their applications. Given a triple (N,a,b)∈N3(N,a,b) \in\mathbb{N}^3, N>a≥bN>a\ge b with gcd⁡(N,a)=gcd⁡(N,b)=1\gcd(N,a)=\gcd(N,b)=1, the associated two-dimensional (rank-one) lattice is given by

PN;a,b:={({ajN},{bjN}):j=0,1,…,N−1},(4)\mathcal{P}_{N;a,b}:=\left\{\left(\left\{\frac{aj}{N}\right\},\left\{\frac{bj}{N}\right\}\right):j=0,1,\ldots,N-1\right\}, \tag*{(4)}

where {x}=x−⌊x⌋\{x\}=x-\lfloor x\rfloor denotes the fractional part. The vector (a,b)(a,b) is called the generating vector of the lattice PN;a,b\mathcal{P}_{N;a,b}. Different generating vectors may yield the same lattice. In fact, if g∈{1,…,N−1}g \in\{1,\ldots,N-1\} is such that ag≡b(modN)ag \equiv b \pmod{N} (and then also gcd⁡(g,N)=1\gcd(g,N)=1), then we may normalize PN;a,b=PN;1,g\mathcal{P}_{N;a,b}=\mathcal{P}_{N;1,g}, where the latter lattice has the generating vector (1,g)(1,g). Rank-one lattices form the basis for important classes of quasi-Monte Carlo integration rules, which are known as lattice rules. A general introduction to lattice rules can be found in the books [9, 24, 27].

It is desirable to construct lattices which fill out the space [0,1)2[0,1)^2 (either interpreted as the unit square or the two-dimensional torus) as uniformly as possible. Multiple measures of uniformity have been proposed in this context, perhaps the most widely used being discrepancy. We briefly describe the main aspects.

For x=(x1,x2)\boldsymbol{x}=(x_1,x_2), y=(y1,y2)\boldsymbol{y}=(y_1,y_2) in [0,1)2[0,1)^2 with x≤y\boldsymbol{x}\le\boldsymbol{y} componentwise, consider the box [x,y]=[x1,y1)×[x2,y2)⊆[0,1)2[\boldsymbol{x},\boldsymbol{y}]=[x_1,y_1)\times[x_2,y_2)\subseteq[0,1)^2. For an NN-element point set P⊆[0,1)2\mathcal{P}\subseteq[0,1)^2, its local discrepancy function is given by

ΔP(x,y):=#(P∩[x,y))N−∣[x,y]∣\Delta_{\mathcal{P}}(\boldsymbol{x},\boldsymbol{y}):=\frac{\#(\mathcal{P}\cap[\boldsymbol{x},\boldsymbol{y}))}{N}-|[\boldsymbol{x},\boldsymbol{y}]|

(where ∣A∣|A| denotes the Lebesgue measure of a measurable A⊆[0,1)2A \subseteq[0,1)^2) and its (extreme) discrepancy is given by

DN(P):=sup⁡[x,y)⊆[0,1)2∣ΔP(x,y)∣.D_N(\mathcal{P}) := \sup_{[\mathbf{x},\mathbf{y})\subseteq[0,1)^2} |\Delta_{\mathcal{P}}(\mathbf{x},\mathbf{y})|.

Via the Koksma–Hlawka inequality and its generalizations, this quantity is related to the worst-case error of the quasi-Monte Carlo integration algorithm over [0,1)2[0,1)^2, see, for example, [9, 10, 19, 20, 24].

It is known, due to the celebrated result of Schmidt [26], that there is a universal constant κ>0\kappa> 0 such that

DN(P)≥κlog⁡NN.D_N(\mathcal{P}) \ge\kappa\frac{\log N}{N}.

for all NN-point sets P⊆[0,1)2\mathcal{P} \subseteq[0,1)^2. While the points of P\mathcal{P} can be chosen in any way, the extra structure of lattices as in (4) makes them particularly popular [9]. In fact, lattices attaining Schmidt’s bound in an asymptotic sense can be constructed via continued fractions. Consider the lattice PN;1,g\mathcal{P}_{N;1,g} with normalized generating vector (1,g)(1,g) and the associated continued fraction expansion g/N=[0;c1,…,cn]g/N = [0;c_1,\ldots,c_n]. Setting

K(gN):=max⁡i=1,…,nci,\mathcal{K}\left(\frac{g}{N}\right) := \max_{i=1,\ldots,n} c_i,

one obtains (see [24 equation (5.39)] and the subsequent discussion)

DN(PN;1,g)≤1N(∑i=1nci+1)=O(K(gN)log⁡NN).D_N(\mathcal{P}_{N;1,g}) \le\frac{1}{N}\left(\sum_{i=1}^{n} c_i+1\right) = O\left(\mathcal{K}\left(\frac{g}{N}\right)\frac{\log N}{N}\right).

Thus, a sequence of lattices is of optimal order for discrepancy if the partial denominators of the associated fractions g/Ng/N stay bounded. From Theorem 4 we thus obtain the optimality of lattices of the form PN;a,b\mathcal{P}_{N;a,b} where (N,a,b)(N,a,b), N>a≥bN>a\ge b is a solution of (2), see Theorem 7 below.

The quantity K(g/N)\mathcal{K}(g/N) may be used to bound other quantities related to the equidistribution properties of PN;1,g\mathcal{P}_{N;1,g}, including their Zaremba index, figure of merit or RR-value, see [9, 24] for details.

Other notions of discrepancy, which have become more popular in recent years, include the star, extreme and periodic L2L_2-discrepancy. Here, the L∞L_\infty-norm in the definition of DN(P)D_N(\mathcal{P}) is replaced by the L2L_2-norms

L2,Nstar(P):=(∫y∈[0,1)2ΔP(0,y)2 dy)1/2,L^{\mathrm{star}}_{2,N}(\mathcal{P}) := \left(\int_{\mathbf{y}\in[0,1)^2} \Delta_{\mathcal{P}}(\mathbf{0},\mathbf{y})^2\,\mathrm{d}\mathbf{y}\right)^{1/2},
L2,Nextr(P):=(∬x,y∈[0,1)2x≤yΔP(x,y)2 d(x,y))1/2L^{\mathrm{extr}}_{2,N}(\mathcal{P}) := \left(\iint_{\substack{\mathbf{x},\mathbf{y}\in[0,1)^2\\ \mathbf{x}\le\mathbf{y}}} \Delta_{\mathcal{P}}(\mathbf{x},\mathbf{y})^2\,\mathrm{d}(\mathbf{x},\mathbf{y})\right)^{1/2}

and

L2,Nper(P):=(∬x,y∈[0,1)2ΔP(x,y)2 d(x,y))1/2.L^{\mathrm{per}}_{2,N}(\mathcal{P}) := \left(\iint_{\mathbf{x},\mathbf{y}\in[0,1)^2} \Delta_{\mathcal{P}}(\mathbf{x},\mathbf{y})^2\,\mathrm{d}(\mathbf{x},\mathbf{y})\right)^{1/2}.

respectively. For star discrepancy, one looks at the local discrepancy function of boxes [0,y)[\mathbf{0},\mathbf{y}) anchored in 0\mathbf{0}. In the case of periodic L2L_2-discrepancy, one considers the local discrepancy of periodic boxes [x,y)=[x1,y1)×[x2,y2)[x,\mathbf{y})=[x_1,y_1)\times[x_2,y_2) with [x,y)[x,y) for general x,y∈[0,1)x,y\in[0,1) being given possibly with wrap-around

[x,y)={[x,y)if x<y,[0,y)∪[x,1)if x≥y.[x,y)= \begin{cases} [x,y) & \text{if }x<y,\\ [0,y)\cup[x,1) & \text{if }x\ge y. \end{cases}

As pointed out in [15], periodic L2L_2-discrepancy is also equivalent to the notion of diaphony in the sense of Zinterhof [29].

Similar to above, it is known that there is a universal constant κ>0\kappa>0 with

min⁡{L2,N⋆(P),L2,Nper(P)}≥L2,Nextr(P)≥κlog⁡NN\min\{L^{\star}_{2,N}(\mathcal{P}),L^{\mathrm{per}}_{2,N}(\mathcal{P})\}\ge L^{\mathrm{extr}}_{2,N}(\mathcal{P})\ge\kappa\frac{\sqrt{\log N}}{N}

for all NN-point sets P\mathcal{P} in [0,1)2[0,1)^2, see [15, 25]. Furthermore, for lattices the notions of extreme and periodic L2L_2-discrepancy are equivalent and even related by the equality

L2,Nper(PN;1,g)2=4L2,Nextr(PN;1,g)2+1+N218N4.L^{\mathrm{per}}_{2,N}(\mathcal{P}_{N;1,g})^2=4L^{\mathrm{extr}}_{2,N}(\mathcal{P}_{N;1,g})^2+\frac{1+N^2}{18N^4}.

see [15, 22]. It is again known that the periodic (and thus also extreme) L2L_2-discrepancy of PN;1,g\mathcal{P}_{N;1,g} is essentially determined by the continued fraction g/N=[0;c1,…,cn]g/N=[0;c_1,\ldots,c_n] via

L2,Nper(PN;1,g)≍1N(∑k=1nck2)1/2(5)L^{\mathrm{per}}_{2,N}(\mathcal{P}_{N;1,g})\asymp\frac{1}{N}\left(\sum_{k=1}^{n}c_k^2\right)^{1/2} \tag*{(5)}

(see Appendix § 4). As above, we may use Theorem 4 for lattices PN;a,b\mathcal{P}_{N;a,b} generated from solutions of (2).

The situation for star L2L_2-discrepancy is somewhat different, where instead one has

L2,N⋆(PN;1,g)≍1N(∑k=1nck2+(∑k=1n(−1)kck)2)1/2.L^{\star}_{2,N}(\mathcal{P}_{N;1,g})\asymp\frac{1}{N}\left(\sum_{k=1}^{n}c_k^2+\left(\sum_{k=1}^{n}(-1)^kc_k\right)^2\right)^{1/2}.

see [2] or [5 Proposition 8]. If the lattice PN;1,g\mathcal{P}_{N;1,g} is given with NN and gg as in Theorem 5, i.e. from solutions of the classical Markov equation (1), we see that the alternating sum does not contribute to the asymptotic behavior of L2,N⋆(PN;1,g)L^{\star}_{2,N}(\mathcal{P}_{N;1,g}).

We summarize the situation for discrepancy in the L∞L_\infty- and L2L_2-sense in the following theorem. Plots of the periodic L2L_2-discrepancy for these classes of point sets are shown in Figure 1.

Plot of the periodic $L_2$-discrepancy normalized by a factor of $N/\sqrt{\log N}$

Figure 1. Plot of the periodic L2L_2-discrepancy normalized by a factor of N/log⁡NN/\sqrt{\log N} of the lattices PN;a,bP_{N;a,b} generated from the positive integer solutions (N,a,b)(N,a,b) up to N<1030N < 10^{30} of the kk-Markov equation for k=3,…,8k = 3,\ldots,8. The periodic L2L_2-discrepancy was calculated with an algorithm described in [18].

Theorem 7. Let k∈N∖{1,2}k\in\mathbb{N}\setminus\{1,2\}. If (N,a,b)∈N3(N,a,b)\in\mathbb{N}^3, N>a≥bN>a\ge b is a solution of the kk-Markov equation (2), then

DN(PN;a,b)≍log⁡NNandL2,Nper(PN;a,b)≍L2,Nextr(PN;a,b)≍log⁡NN.D_N(\mathcal{P}_{N;a,b})\asymp\frac{\log N}{N} \quad\text{and}\quad L^{\mathrm{per}}_{2,N}(\mathcal{P}_{N;a,b})\asymp L^{\mathrm{extr}}_{2,N}(\mathcal{P}_{N;a,b})\asymp\frac{\sqrt{\log N}}{N}.

with implicit constants only depending on kk. If k=3k=3, i.e. (N,a,b)(N,a,b) is a solution of the Markov equation (1), one also has

L2,N⋆(PN;a,b)≍log⁡NN.L^{\star}_{2,N}(\mathcal{P}_{N;a,b})\asymp\frac{\sqrt{\log N}}{N}.

Remark 8. While classical constructions of lattices via rational approximations of quadratic irrationals (including Fibonacci lattices [14]) or the method of Niederreiter [23] yield O(log⁡R)O(\log R) many lattices of optimal order below a given bound N≤RN\le R, by Theorem 3 the construction via solutions of (2) yields O((log⁡R)2)O((\log R)^2) many.

Tree structures

Solutions of the Markov equation and its generalizations are most conveniently analyzed by looking at associated trees. We start with the case of the classical Markov equation (1) (see [1] for further details) and then adapt this to the case of the more general kk-Markov equation (2).

For future reference, let us state the following basic result on continued fractions.

Lemma 9. Let p,q∈Np, q \in\mathbb{N} with gcd⁡(p,q)=1\gcd(p,q) = 1 and let c1,…,cn∈Nc_1,\ldots,c_n \in\mathbb{N} for some n∈Nn \in\mathbb{N}. Then the continued fraction expansion p/q=[0;c1,…,cn]p/q = [0;c_1,\ldots,c_n] is equivalent to the matrix factorization

(∗p∗q)=(011c1)⋯(011cn).\begin{pmatrix} * & p \\ * & q \end{pmatrix} = \begin{pmatrix} 0 & 1 \\ 1 & c_1 \end{pmatrix} \cdots \begin{pmatrix} 0 & 1 \\ 1 & c_n \end{pmatrix}.

Proof. Let the convergents of [0;c1,…,cn][0;c_1,\ldots,c_n] be denoted by pk/qk=[0;c1,…,ck]p_k/q_k = [0;c_1,\ldots,c_k]. Initializing p−1=1p_{-1} = 1, p0=0p_0 = 0, q−1=0q_{-1} = 0 and q0=1q_0 = 1, they satisfy the recurrence relations

pk=ckpk−1+pk−2andqk=ckqk−1+qk−2p_k = c_k p_{k-1} + p_{k-2} \quad\text{and}\quad q_k = c_k q_{k-1} + q_{k-2}

for k∈{1,…,n}k \in\{1,\ldots,n\}. In matrix notation this can be rewritten as

(011c1)=(p0p1q0q1)\begin{pmatrix} 0 & 1 \\ 1 & c_1 \end{pmatrix} = \begin{pmatrix} p_0 & p_1 \\ q_0 & q_1 \end{pmatrix}

and then inductively

(011c1)⋯(011ck−1)(011ck)=(pk−2pk−1qk−2qk−1)(011ck)=(pk−1pkqk−1qk).\begin{pmatrix} 0 & 1 \\ 1 & c_1 \end{pmatrix} \cdots \begin{pmatrix} 0 & 1 \\ 1 & c_{k-1} \end{pmatrix} \begin{pmatrix} 0 & 1 \\ 1 & c_k \end{pmatrix} = \begin{pmatrix} p_{k-2} & p_{k-1} \\ q_{k-2} & q_{k-1} \end{pmatrix} \begin{pmatrix} 0 & 1 \\ 1 & c_k \end{pmatrix} = \begin{pmatrix} p_{k-1} & p_k \\ q_{k-1} & q_k \end{pmatrix}.

Thus p/q=[0;c1,…,cn]p/q=[0;c_1,\ldots,c_n] is equivalent to

[∗p∗q]=[011c1]⋯[011cn].\begin{bmatrix} * & p \\ * & q \end{bmatrix}=\begin{bmatrix} 0 & 1 \\ 1 & c_1 \end{bmatrix}\cdots\begin{bmatrix} 0 & 1 \\ 1 & c_n \end{bmatrix}.

where p=pnp=p_n, q=qnq=q_n (and the starred entries are pn−1p_{n-1} and qn−1q_{n-1}).

Classical Markov equation k=3k=3

The structures that will be introduced in this section are depicted in Figure 2.

The Markov, Cohn and word tree

Figure 2. The Markov, Cohn and word tree, all being connected by Theorems 10 and 12. Below each shown Markov triple (ℓ,m,r)(\ell,m,r) we note the canonical characteristic value uu as in (6).

The Markov tree is a rooted tree whose nodes are positive integer solution triples of the Markov equation (1). The root is given by (1,5,2)(1,5,2). For any node (ℓ,m,r)(\ell,m,r) we define its left child to be (ℓ,3ℓm−r,m)(\ell,3\ell m-r,m) and its right child to be (m,3mr−ℓ,r)(m,3mr-\ell,r). By Theorem 1, up to permutation of the variables every solution (x,y,z)∈N3(x,y,z)\in\mathbb{N}^3 of the Markov equation (1) (except for the “singular” solutions (1,1,1)(1,1,1) and (1,1,2)(1,1,2)) appears in this tree (and, in fact, appears exactly once in this tree, see [1 Theorem 3.3]). In this way, we obtain a canonical ordering (ℓ,m,r)(\ell,m,r) of the solutions of (1) with the maximal element in the middle and thus also a canonical choice for the characteristic value u∈{1,…,m−1}u\in\{1,\ldots,m-1\} by requiring

ℓu≡r(modm).(6)\ell u\equiv r\pmod m. \tag*{(6)}

In fact, one then even has u<m/2u<m/2 (see [1 Remark 4.14]), compare with the statement of Theorem 5.

The Markov tree is often not enough to analyze the positive integer solutions of the Markov equation (1). An idea going back to Cohn [8] is to consider an associated tree of matrices. This leads to the Cohn tree, whose nodes consist of triples of matrices (X,Y,Z)∈(Z2×2)3(X,Y,Z)\in(\mathbb{Z}^{2\times2})^3. The root is given by

([01−13],[25513],[1225])\left(\begin{bmatrix}0&1\\-1&3\end{bmatrix},\begin{bmatrix}2&5\\5&13\end{bmatrix},\begin{bmatrix}1&2\\2&5\end{bmatrix}\right)

and for every node (L,M,R)(L,M,R) of this tree we define its left child to be (L,LM,M)(L,LM,M) and its right child to be (M,MR,R)(M,MR,R). The following result connects the Cohn tree to the Markov tree and is a direct consequence of [1 Theorem 4.13].

Theorem 10. Let (L,M,R)(L,M,R) be a node in the Cohn tree and let (ℓ,m,r)(\ell,m,r) be the node at the corresponding position in the Markov tree. Then ℓ,m,r\ell,m,r are the top-right entries of the matrices LL, MM, RR, respectively. Furthermore, the characteristic value uu given by (6) is the top-left entry of MM.

Lastly, define the word tree whose nodes consist of words over the alphabet {A,B}\{A,B\}. The root is given by (A,AB,B)(A,AB,B). If (λ,μ,ρ)(\lambda,\mu,\rho) is a node in this tree, then its left child (λ,λμ,μ)(\lambda,\lambda\mu,\mu) and right child (μ,μρ,ρ)(\mu,\mu\rho,\rho) are obtained by juxtaposition. The following is part of [1 Proposition 7.5].

Lemma 11. Let ω\omega be an {A,B}\{A,B\}-word appearing in some node of the word tree. Then either ω=A\omega=A or ω=B\omega=B or ω=AσB\omega=A\sigma B for some (possibly empty) {A,B}\{A,B\}-palindrome σ\sigma, i.e. an {A,B}\{A,B\}-word which reads the same forwards as backwards.

Associate any word ω\omega appearing in the word tree to a matrix T(ω)T(\omega) according to

T(A):=[01−13],T(B):=[1225],T(AB):=[25513](7)T(A) := \begin{bmatrix} 0 & 1 \\ -1 & 3 \end{bmatrix}, \quad T(B) := \begin{bmatrix} 1 & 2 \\ 2 & 5 \end{bmatrix}, \quad T(AB) := \begin{bmatrix} 2 & 5 \\ 5 & 13 \end{bmatrix} \tag*{(7)}

and if ω=AσB\omega= A\sigma B with the nonempty palindrome σ=γ1⋯γℓ\sigma= \gamma_1 \cdots\gamma_\ell, γi∈{A,B}\gamma_i \in\{A,B\} as in Lemma 11, then

T(ω):=[01−13][0112]Γ1⋯Γℓ[0112]=[0135]Γ1⋯Γℓ[0112]T(\omega) := \begin{bmatrix} 0 & 1 \\ -1 & 3 \end{bmatrix}\begin{bmatrix} 0 & 1 \\ 1 & 2 \end{bmatrix}\Gamma_1 \cdots\Gamma_\ell\begin{bmatrix} 0 & 1 \\ 1 & 2 \end{bmatrix} = \begin{bmatrix} 0 & 1 \\ 3 & 5 \end{bmatrix}\Gamma_1 \cdots\Gamma_\ell\begin{bmatrix} 0 & 1 \\ 1 & 2 \end{bmatrix}

where

Γi=[0111]2=[1112] if γi=A, and Γi=[0112]2=[1225] if γi=B.\Gamma_i = \begin{bmatrix} 0 & 1 \\ 1 & 1 \end{bmatrix}^{2} = \begin{bmatrix} 1 & 1 \\ 1 & 2 \end{bmatrix} \text{ if } \gamma_i = A,\ \text{and}\ \Gamma_i = \begin{bmatrix} 0 & 1 \\ 1 & 2 \end{bmatrix}^{2} = \begin{bmatrix} 1 & 2 \\ 2 & 5 \end{bmatrix} \text{ if } \gamma_i = B.

We have the following connection between the word tree and the Cohn tree.

Theorem 12. Let (λ,μ,ρ)(\lambda,\mu,\rho) be a node in the word tree. Then (T(λ),T(μ),T(ρ))(T(\lambda),T(\mu),T(\rho)) is the node at the corresponding position in the Cohn tree.

Proof. We proceed by induction on the nodes in the word tree. The relation

(T(A),T(AB),T(B))=([01−13],[25513],[1225])(T(A),T(AB),T(B)) = \left(\begin{bmatrix} 0 & 1 \\ -1 & 3 \end{bmatrix},\begin{bmatrix} 2 & 5 \\ 5 & 13 \end{bmatrix},\begin{bmatrix} 1 & 2 \\ 2 & 5 \end{bmatrix}\right)

between the roots of the trees is (7). Let (λ,μ,ρ)(\lambda,\mu,\rho) be a node in the word tree and assume that (L,M,R)=(T(λ),T(μ),T(ρ))(L,M,R) = (T(\lambda),T(\mu),T(\rho)) is the corresponding node in the Cohn tree. Let λ=AσλB,μ=AσμB,ρ=AσρB\lambda= A\sigma_\lambda B,\mu= A\sigma_\mu B,\rho= A\sigma_\rho B with {A,B}\{A,B\}-palindromes σλ,σμ,σρ\sigma_\lambda,\sigma_\mu,\sigma_\rho (the cases where λ=A\lambda= A or ρ=B\rho= B need to be considered separately, but can be treated in an analogous manner). The left child is given by (λ,λμ,μ)=(AσλB,AσλBAσμB,AσμB)(\lambda,\lambda\mu,\mu) = (A\sigma_\lambda B,A\sigma_\lambda BA\sigma_\mu B,A\sigma_\mu B) and, since

T(λμ)=T(λ)[0112]−1[0112]2[0111]2[1235]−1T(μ)=T(λ)T(μ),T(\lambda\mu) = T(\lambda)\begin{bmatrix} 0 & 1 \\ 1 & 2 \end{bmatrix}^{-1}\begin{bmatrix} 0 & 1 \\ 1 & 2 \end{bmatrix}^{2}\begin{bmatrix} 0 & 1 \\ 1 & 1 \end{bmatrix}^{2}\begin{bmatrix} 1 & 2 \\ 3 & 5 \end{bmatrix}^{-1}T(\mu) = T(\lambda)T(\mu),

its associated matrices (T(λ),T(λμ),T(μ))=(T(λ),T(λ)T(μ),T(μ))(T(\lambda),T(\lambda\mu),T(\mu)) = (T(\lambda),T(\lambda)T(\mu),T(\mu)) form the left child of (L,M,R)(L,M,R) in the Cohn tree. An analogous calculation gives the same conclusion for the right child (μ,μρ,ρ)(\mu,\mu\rho,\rho), proving the claim. □\square

We are now ready to look at the continued fraction expansion of the quotients associated to a solution of the Markov equation (1).

Proof of Theorem 5. Let (N,a,b)(N,a,b) be as in the statement, let (ℓ,m,r)(\ell,m,r) be the corresponding node of the Markov tree with canonical characteristic value u=gu = g (see (6)) and let (L,M,R)(L,M,R) be the corresponding node of the Cohn tree. By Theorem 10, Lemma 11 and Theorem 12 it holds that

M=[um∗∗]=[01−13][011c1]⋯[011cn],M = \begin{bmatrix} u & m \\ * & * \end{bmatrix} = \begin{bmatrix} 0 & 1 \\ -1 & 3 \end{bmatrix}\begin{bmatrix} 0 & 1 \\ 1 & c_1 \end{bmatrix}\cdots\begin{bmatrix} 0 & 1 \\ 1 & c_n \end{bmatrix},

where n∈Nn \in\mathbb{N} is even and ci∈{1,2}c_i \in\{1,2\} with c1=cn=2c_1 = c_n = 2, ci=cn+1−ic_i = c_{n+1-i} for all i∈{1,…,n}i \in\{1,\ldots,n\} and c2i=c2i+1c_{2i} = c_{2i+1} for all i∈{1,…,n/2−1}i \in\{1,\ldots,n/2-1\}. From this factorization and Lemma 9 it follows that g/N=u/m=[0;c1,…,cn]g/N = u/m = [0;c_1,\ldots,c_n], as desired. □\square

Generalized Markov equation k>3k > 3

It remains to show Theorem 4 for k>3k > 3. To do so, we extend the notions for the classical Markov equation from the previous section now to the generalized one. This needs some adjustment.

The kk-Markov tree is a rooted tree whose nodes consist of solution triples of the kk-Markov equation (2). The root is given by the solution (1,k2−k−1,k−1)(1,k^2-k-1,k-1). Any node (ℓ,m,r)(\ell,m,r) has a left child (ℓ,kℓm−r,m)(\ell,k\ell m-r,m) and a right child (m,kmr−ℓ,r)(m,kmr-\ell,r). Except for (1,1,1)(1,1,1) and (1,k−1,1)(1,k-1,1), every positive integer solution of (2) is represented in this tree (by Theorem 1). Furthermore, we obtain a natural ordering of a solution triple (ℓ,m,r)(\ell,m,r) with its maximal element in the middle. If we use the notation (ℓ,m,r)(\ell,m,r) we will always assume the ordering obtained from the kk-Markov tree. The unique number u∈{1,…,m−1}u \in\{1,\ldots,m-1\} with

ℓu≡r(modm)(8)\ell u \equiv r \pmod{m} \tag*{(8)}

is the canonical characteristic value of the triple (ℓ,m,r)(\ell,m,r), compare with the paragraph before Theorem 4.

The kk-matrix tree has triples of matrices (X,Y,Z)∈(Z2×2)3(X,Y,Z) \in(\mathbb{Z}^{2 \times2})^3 as nodes. The root is given by

([1001],[1k−1kk2−k−1],[1k−21k−1]).\left( \begin{bmatrix}1&0\\0&1\end{bmatrix}, \begin{bmatrix}1&k-1\\k&k^2-k-1\end{bmatrix}, \begin{bmatrix}1&k-2\\1&k-1\end{bmatrix} \right).

If (L,M,R)(L,M,R) is a node in this tree, then its left child will be given by

(LT,LT[01−1k]M,[−1101]M).\left( L^{\mathsf{T}}, L^{\mathsf{T}}\begin{bmatrix}0&1\\-1&k\end{bmatrix}M, \begin{bmatrix}-1&1\\0&1\end{bmatrix}M \right).

and its right child by

(M[−1011],M[0−11k]RT,RT).\left( M\begin{bmatrix}-1&0\\1&1\end{bmatrix}, M\begin{bmatrix}0&-1\\1&k\end{bmatrix}R^{\mathsf{T}}, R^{\mathsf{T}} \right).

The following lemma collects some basic properties of these triples and the proof is a simple inductive argument.

Lemma 13. Let

(L,M,R)=([ℓ11ℓ12ℓ21ℓ22],[m11m12m21m22],[r11r12r21r22]).(L,M,R)=\left( \begin{bmatrix}\ell_{11}&\ell_{12}\\\ell_{21}&\ell_{22}\end{bmatrix}, \begin{bmatrix}m_{11}&m_{12}\\m_{21}&m_{22}\end{bmatrix}, \begin{bmatrix}r_{11}&r_{12}\\r_{21}&r_{22}\end{bmatrix} \right).

be a node of the kk-matrix tree. One then has det⁡L=1\det L=1, det⁡M=−1\det M=-1, det⁡R=1\det R=1 and the relations

m12ℓ22−m22ℓ12=r22andm21r22−m22r21=ℓ22.m_{12}\ell_{22}-m_{22}\ell_{12}=r_{22} \quad\text{and}\quad m_{21}r_{22}-m_{22}r_{21}=\ell_{22}.

Furthermore, the triple (ℓ22,m22,r22)(\ell_{22},m_{22},r_{22}) is the node at the corresponding position in the kk-Markov tree.

Lastly, define the extended word tree (not depending on the choice of kk) whose nodes consist of triples (υ,ν,ω)(\upsilon,\nu,\omega) of (possibly empty) words υ,ν,ω\upsilon,\nu,\omega over the alphabet {A,B,Bˉ,C}\{A,B,\bar{B},C\}. The root of this tree is given by (ε,AB,B)(\varepsilon,AB,B), where ε\varepsilon denotes the empty word. To define the left and right child of each node we need some auxiliary operations.

  • (i) The flip operator (⋅)⊤(\cdot)^{\top}, which reverses the order of the letters in an {A,B,Bˉ,C}\{A,B,\bar{B},C\}-word and, in addition, turns every BB into Bˉ\bar{B} and vice versa. Some examples:

(ABˉCBBCˉ)⊤=CBˉBCBA,(BˉAACBˉ)⊤=BCAAB.(A\bar{B}CBB\bar{C})^{\top}=C\bar{B}BCBA,\qquad(\bar{B}AAC\bar{B})^{\top}=BCAAB.
  • (ii) The initial modifier (⋅)θ(\cdot)^{\theta}, which changes the first letter of an {A,B,Bˉ,C}\{A,B,\bar{B},C\}-word according to A↔BA\leftrightarrow B and C↔BˉC\leftrightarrow\bar{B}. Some examples:

(ABˉCBBCˉ)θ=BBˉCBBC,(BˉAACBˉ)θ=CAACBˉ.(A\bar{B}CBB\bar{C})^{\theta}=B\bar{B}CBBC,\qquad(\bar{B}AAC\bar{B})^{\theta}=CAAC\bar{B}.
  • (iii) The final modifier (⋅)ϕ(\cdot)^{\phi}, which changes the last letter of an {A,B,Bˉ,C}\{A,B,\bar{B},C\}-word according to A↔BˉA\leftrightarrow\bar{B} and C↔BC\leftrightarrow B. Some examples:

(ABˉCBBCˉ)ϕ=ABˉCBBB,(BˉAACBˉ)ϕ=BˉAACA.(A\bar{B}CBB\bar{C})^{\phi}=A\bar{B}CBBB,\qquad(\bar{B}AAC\bar{B})^{\phi}=\bar{B}AACA.

We point out that ε=ε⊤=εθ=εϕ\varepsilon=\varepsilon^{\top}=\varepsilon^{\theta}=\varepsilon^{\phi}. Each of these operations is an involution. If (ν,ν,ω)(\nu,\nu,\omega) is a triple in the extended word tree, then its left child is defined as (ν⊤,ν⊤Aνθ,νθ)(\nu^{\top},\nu^{\top}A\nu^{\theta},\nu^{\theta}) and its right child as (νϕ,νϕAω⊤,ω⊤)(\nu^{\phi},\nu^{\phi}A\omega^{\top},\omega^{\top}). Thus, the word in the middle of such a triple is always the concatenation of the words on the left and the one on the right with an interposed AA. The following structural result follows immediately from the recursive definition of the nodes in the tree.

Lemma 14. Let (λ,μ,ρ)(\lambda,\mu,\rho) be a node in the extended word tree. Then there are (possibly empty) {A,B,Bˉ,C}\{A,B,\bar{B},C\}-words σλ\sigma_{\lambda}, σμ\sigma_{\mu} and σρ\sigma_{\rho}, such that (λ,μ,ρ)(\lambda,\mu,\rho) is equal to either one of

(AσλA,AσμB,BσρB),(AσλC,AσμBˉ,BˉσρBˉ) or (CσλA,CσμBˉ,BσρBˉ).(A\sigma_{\lambda}A,A\sigma_{\mu}B,B\sigma_{\rho}B),(A\sigma_{\lambda}C,A\sigma_{\mu}\bar{B},\bar{B}\sigma_{\rho}\bar{B})\text{ or }(C\sigma_{\lambda}A,C\sigma_{\mu}\bar{B},B\sigma_{\rho}\bar{B}).

Here we use the convention that ε\varepsilon is of the type AσλAA\sigma_{\lambda}A, BB is of the type BσρBB\sigma_{\rho}B and Bˉ\bar{B} is of the type BˉσρBˉ\bar{B}\sigma_{\rho}\bar{B}.

Proof. We proceed by induction on the nodes in the extended word tree. The root (ε,AB,B)(\varepsilon,AB,B) is of the form (AσλA,AσμB,BσρB)(A\sigma_{\lambda}A,A\sigma_{\mu}B,B\sigma_{\rho}B) with the above mentioned convention. By definition, a node of the form (AσλA,AσμB,BσρB)(A\sigma_{\lambda}A,A\sigma_{\mu}B,B\sigma_{\rho}B) has the left and right child

(Aσλ⊤A,Aσλ⊤AABσμB,BσμB)(A\sigma_{\lambda}^{\top}A,A\sigma_{\lambda}^{\top}AAB\sigma_{\mu}B,B\sigma_{\mu}B)

and

(AσμC,AσμCABˉσρ⊤Bˉ,Bσρ⊤Bˉ),(A\sigma_{\mu}C,A\sigma_{\mu}CA\bar{B}\sigma_{\rho}^{\top}\bar{B},B\sigma_{\rho}^{\top}\bar{B}),

respectively, both being one of the types in the statement. The corresponding compatibilities for (AσλC,AσμBˉ,BˉσρBˉ)(A\sigma_{\lambda}C,A\sigma_{\mu}\bar{B},\bar{B}\sigma_{\rho}\bar{B}) and (CσλA,CσμBˉ,BσρBˉ)(C\sigma_{\lambda}A,C\sigma_{\mu}\bar{B},B\sigma_{\rho}\bar{B}) are checked in an analogous way. □

Associate to every letter in {A,B,Bˉ,C}\{A,B,\bar{B},C\} the matrices

Pk(A):=[011k−1],P_k(A):=\begin{bmatrix}0&1\\1&k-1\end{bmatrix},
Pk(B):=[0111][011k−2]=[1k−21k−1],P_k(B):=\begin{bmatrix}0&1\\1&1\end{bmatrix}\begin{bmatrix}0&1\\1&k-2\end{bmatrix}=\begin{bmatrix}1&k-2\\1&k-1\end{bmatrix},
Pk(Bˉ):=[011k−2][0111]=[11k−2k−1],P_k(\bar{B}):=\begin{bmatrix}0&1\\1&k-2\end{bmatrix}\begin{bmatrix}0&1\\1&1\end{bmatrix}=\begin{bmatrix}1&1\\k-2&k-1\end{bmatrix},
Pk(C):=[0111][011k−3][0111]=[k−3k−2k−2k−1].P_k(C):=\begin{bmatrix}0&1\\1&1\end{bmatrix}\begin{bmatrix}0&1\\1&k-3\end{bmatrix}\begin{bmatrix}0&1\\1&1\end{bmatrix}=\begin{bmatrix}k-3&k-2\\k-2&k-1\end{bmatrix}.

and to every word ω=γ1…γℓ\omega= \gamma_1 \ldots\gamma_\ell, γi∈{A,B,Bˉ,C}\gamma_i \in\{A, B, \bar{B}, C\} the matrix

Pk(ω):=Pk(γ1)…Pk(γℓ),P_k(\omega) := P_k(\gamma_1) \ldots P_k(\gamma_\ell),

with Pk(ε)=[1001]P_k(\varepsilon) = \begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix}.

Lemma 15. For any {A,B,Bˉ,C}\{A, B, \bar{B}, C\}-word ω\omega it holds that

Pk(ω⊤)=Pk(ω)⊤,Pk(ωθ)=[−1101]Pk(ω),Pk(ωϕ)=Pk(ω)[−1011].P_k(\omega^\top) = P_k(\omega)^\top,\qquad P_k(\omega^\theta) = \begin{bmatrix} -1 & 1 \\ 0 & 1 \end{bmatrix} P_k(\omega),\qquad P_k(\omega^\phi) = P_k(\omega) \begin{bmatrix} -1 & 0 \\ 1 & 1 \end{bmatrix}.

Proof. The relation for the flip operator is immediate from the definition. As for the other two relations, it suffices to note that

Pk(A)Pk(B)−1=Pk(B)Pk(A)−1=Pk(C)Pk(Bˉ)−1=Pk(Bˉ)Pk(C)−1=[−1101]P_k(A)P_k(B)^{-1} = P_k(B)P_k(A)^{-1} = P_k(C)P_k(\bar{B})^{-1} = P_k(\bar{B})P_k(C)^{-1} = \begin{bmatrix} -1 & 1 \\ 0 & 1 \end{bmatrix}

and

Pk(A)−1Pk(Bˉ)=Pk(Bˉ)−1Pk(A)=Pk(C)−1Pk(B)=Pk(B)−1Pk(C)=[−1011],P_k(A)^{-1}P_k(\bar{B}) = P_k(\bar{B})^{-1}P_k(A) = P_k(C)^{-1}P_k(B) = P_k(B)^{-1}P_k(C) = \begin{bmatrix} -1 & 0 \\ 1 & 1 \end{bmatrix},

corresponding to the letter changes of the initial and final modifiers, respectively. □

The following result connects the extended word tree and the kk-matrix tree.

Theorem 16. If (λ,μ,ρ)(\lambda,\mu,\rho) is a node in the extended word tree, then (Pk(λ),Pk(μ),Pk(ρ))(P_k(\lambda), P_k(\mu), P_k(\rho)) is the corresponding node in the kk-matrix tree.

Proof. We proceed by induction on the nodes in the extended word tree. The root (ε,AB,B)(\varepsilon, AB, B) has the associated matrices

Pk(ε)=[1001],P_k(\varepsilon) = \begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix},
Pk(AB)=[011k−1][1k−21k−1]=[1k−1kk2−k−1],P_k(AB) = \begin{bmatrix} 0 & 1 \\ 1 & k-1 \end{bmatrix} \begin{bmatrix} 1 & k-2 \\ 1 & k-1 \end{bmatrix} = \begin{bmatrix} 1 & k-1 \\ k & k^2-k-1 \end{bmatrix},
Pk(B)=[1k−21k−1],P_k(B) = \begin{bmatrix} 1 & k-2 \\ 1 & k-1 \end{bmatrix},

which are the matrices in the root of the kk-matrix tree. Assume now that the statement holds for the triple (λ,μ,ρ)(\lambda,\mu,\rho) with (L,M,R)=(Pk(λ),Pk(μ),Pk(ρ))(L,M,R) = (P_k(\lambda), P_k(\mu), P_k(\rho)). Using Lemma 15, for the left child in the extended word tree we calculate

Pk(λ⊤)=L⊤,P_k(\lambda^\top) = L^\top,
Pk(λ⊤Aμθ)=L⊤[011k−1][−1101]M=L⊤[01−1k]M,P_k(\lambda^\top A\mu^\theta) = L^\top \begin{bmatrix} 0 & 1 \\ 1 & k-1 \end{bmatrix} \begin{bmatrix} -1 & 1 \\ 0 & 1 \end{bmatrix} M = L^\top \begin{bmatrix} 0 & 1 \\ -1 & k \end{bmatrix} M,
Pk(μθ)=[−1101]M,P_k(\mu^\theta) = \begin{bmatrix} -1 & 1 \\ 0 & 1 \end{bmatrix} M,

giving the left child of (L,M,R)(L,M,R) in the kk-matrix tree. In the same way we can show the compatibility with the right child, giving the claim. □

Corollary 17. Let k∈N∖{1,2,3}k \in\mathbb{N} \setminus\{1,2,3\} and let (L,M,R)(L,M,R) be a node in the kk-matrix tree. If

M=[m11m12m21m22],M = \begin{bmatrix} m_{11} & m_{12} \\ m_{21} & m_{22} \end{bmatrix},

then 1≤m11≤m12<m221 \le m_{11} \le m_{12} < m_{22} and 1≤m11≤m21<m221 \le m_{11} \le m_{21} < m_{22}.

Proof. By Theorem 16 there is a word μ=γ1⋯γℓ\mu= \gamma_1 \cdots\gamma_\ell, γi∈{A,Bˉ,B,Cˉ}\gamma_i \in\{A, \bar{B}, B, \bar{C}\} with ℓ≥2\ell\ge2, such that M=Pk(μ)M = P_k(\mu). Then

M=Pk(γ1)⋯Pk(γℓ)=[011c1]⋯[011cn](9)M = P_k(\gamma_1) \cdots P_k(\gamma_\ell) = \begin{bmatrix} 0 & 1 \\ 1 & c_1 \end{bmatrix} \cdots\begin{bmatrix} 0 & 1 \\ 1 & c_n \end{bmatrix} \tag*{(9)}

for some ci∈Nc_i \in\mathbb{N} (and in fact ci∈{1,…,k−1}c_i \in\{1,\ldots,k-1\}) and n≥ℓ≥2n \ge\ell\ge2. Any matrix MM which is a product of at least two matrices of the type

[011c]with c∈N\begin{bmatrix} 0 & 1 \\ 1 & c \end{bmatrix} \quad\text{with } c \in\mathbb{N}

is easily seen to fulfill the inequalities in the statement.

Corollary 18. Let k∈N∖{1,2,3}k \in\mathbb{N} \setminus\{1,2,3\} and let

(L,M,R)=([ℓ11ℓ12ℓ21ℓ22],[m11m12m21m22],[r11r12r21r22]).(L,M,R) = \left(\begin{bmatrix} \ell_{11} & \ell_{12} \\ \ell_{21} & \ell_{22} \end{bmatrix}, \begin{bmatrix} m_{11} & m_{12} \\ m_{21} & m_{22} \end{bmatrix}, \begin{bmatrix} r_{11} & r_{12} \\ r_{21} & r_{22} \end{bmatrix}\right).

Then u=m12u = m_{12} is the canonical characteristic value of (ℓ22,m22,r22)(\ell_{22},m_{22},r_{22}) as in (8).

Proof. By Lemma 13 we have ℓ22m12≡r22(modm22)\ell_{22}m_{12} \equiv r_{22} \pmod{m_{22}} and by Corollary 17 we have 1≤m12<m221 \le m_{12} < m_{22}. These are the defining conditions for the canonical characteristic value.

In the same way one shows that m21m_{21} is the unique number in {1,…,m22−1}\{1,\ldots,m_{22}-1\} with

r22m21≡ℓ22(modm22).(10)r_{22}m_{21} \equiv\ell_{22} \pmod{m_{22}}. \tag*{(10)}

In particular m12m21≡1(modm22)m_{12}m_{21} \equiv1 \pmod{m_{22}}.

With all these results at hand, we are now in a position to analyze the continued fraction expansion of the quotient associated to a solution of the kk-Markov equation (2).

Proof of Theorem 4. The case of k=3k = 3 is taken care of in Theorem 5, hence assume from now that k>3k > 3. Let (N,a,b)∈N3(N,a,b) \in\mathbb{N}^3, N>a≥bN > a \ge b be a solution of the kk-Markov equation (2) with characteristic value gg given as before the statement of Theorem 4. If a=ba=b, then (k−1,1,1)(k-1,1,1) (see the comment after Theorem 1) and g/N=[0;k−1]g/N = [0;k-1] fulfills the claim.

Let now N>a>bN > a > b. One of (a,N,b)(a,N,b) or (b,N,a)(b,N,a) is a node of the kk-Markov tree. In the first case, gg is also the canonical characteristic value of (a,N,b)(a,N,b) and we thus have, by Theorem 16 (see also (9)) and Corollary 18,

[∗g∗N]=[011c1]⋯[011cn]\begin{bmatrix} * & g \\ * & N \end{bmatrix} = \begin{bmatrix} 0 & 1 \\ 1 & c_1 \end{bmatrix} \cdots\begin{bmatrix} 0 & 1 \\ 1 & c_n \end{bmatrix}

for some ci∈{1,…,k−1}c_i \in\{1,\ldots,k-1\}. Thus, using Lemma 9, also g/N=[0;c1,…,cn]g/N = [0;c_1,\ldots,c_n] is of the desired form. If otherwise (b,N,a)(b,N,a) is a node of the kk-Markov tree then instead

[∗∗gN]=[011c1]⋯[011cn],\begin{bmatrix} * & * \\ g & N \end{bmatrix} = \begin{bmatrix} 0 & 1 \\ 1 & c_1 \end{bmatrix} \cdots\begin{bmatrix} 0 & 1 \\ 1 & c_n \end{bmatrix},

compare with (10). By taking the transpose, we get g/N=[0;cn,…,c1]g/N = [0;c_n,\ldots,c_1], completing the proof.

The proof of equation (5)

Although we are certain that equation (5) is known to all experts, we have not found a proof explicitly for periodic L2L_2-discrepancy in the literature. For the sake of completeness, we provide a brief justification here. All necessary background on continued fractions can be found in [1 Section 1.2].

Proof of equation 5. We write α:=g/N=[0;c1,…,cn]\alpha:= g/N = [0; c_1,\ldots,c_n]. Let pk/qk=[0;c1,…,ck]p_k/q_k = [0; c_1,\ldots,c_k] be the kk-th convergents of α\alpha. By construction, qn=Nq_n = N and pn=gp_n = g. We start with the following exact formula for the periodic L2L_2-discrepancy for lattice point sets from [15 Theorem 10], which reads

(NL2,Nper(PN;1,g))2=14qn2∑r=1qn−11sin⁡2(πr/qn)sin⁡2(πrα)+19+136qn2.\left(NL^{\mathrm{per}}_{2,N}(\mathcal{P}_{N;1,g})\right)^2 = \frac{1}{4q_n^2}\sum_{r=1}^{q_n-1}\frac{1}{\sin^2(\pi r/q_n)\sin^2(\pi r\alpha)}+\frac{1}{9}+\frac{1}{36q_n^2}.

For x∈Rx \in\mathbb{R}, let ∥x∥:=min⁡m∈Z∣x−m∣\lVert x\rVert:= \min_{m\in\mathbb{Z}} |x-m| denote the distance from xx to the nearest integer. For 1≤r<qn1 \le r < q_n, define δqn(r):=min⁡(r,qn−r)\delta_{q_n}(r) := \min(r,q_n-r). Clearly, ∥r/qn∥=δqn(r)/qn\lVert r/q_n\rVert= \delta_{q_n}(r)/q_n. From the elementary inequalities 2∥x∥≤∣sin⁡(πx)∣≤π∥x∥2\lVert x\rVert\le|\sin(\pi x)| \le\pi\lVert x\rVert for x∈Rx \in\mathbb{R}, it follows that

2δqn(r)qn≤sin⁡(πrqn)≤πδqn(r)qnand2∥rα∥≤∣sin⁡(πrα)∣≤π∥rα∥.\frac{2\delta_{q_n}(r)}{q_n} \le\sin\left(\frac{\pi r}{q_n}\right) \le\frac{\pi\delta_{q_n}(r)}{q_n} \quad\text{and}\quad 2\lVert r\alpha\rVert\le|\sin(\pi r\alpha)| \le\pi\lVert r\alpha\rVert.

Consequently

14qn2∑r=1qn−11sin⁡2(πr/qn)sin⁡2(πrα)≍∑r=1qn−11δqn(r)2∥rα∥2,\frac{1}{4q_n^2}\sum_{r=1}^{q_n-1}\frac{1}{\sin^2(\pi r/q_n)\sin^2(\pi r\alpha)} \asymp \sum_{r=1}^{q_n-1}\frac{1}{\delta_{q_n}(r)^2\lVert r\alpha\rVert^2},

with absolute implied constants.

Since δqn(qn−r)=δqn(r)\delta_{q_n}(q_n-r)=\delta_{q_n}(r) and ∥(qn−r)α∥=∥rα∥\lVert(q_n-r)\alpha\rVert=\lVert r\alpha\rVert, we may pair the terms rr and qn−rq_n-r. This way we obtain

(NL2,Nper(PN;1,g))2≍∑r=1⌊qn/2⌋1r2∥rα∥2.\left(NL^{\mathrm{per}}_{2,N}(\mathcal{P}_{N;1,g})\right)^2 \asymp \sum_{r=1}^{\lfloor q_n/2\rfloor}\frac{1}{r^2\lVert r\alpha\rVert^2}.

It remains to show that

∑r=1⌊qn/2⌋1r2∥rα∥2≍∑k=1nck2,(11)\sum_{r=1}^{\lfloor q_n/2\rfloor}\frac{1}{r^2\lVert r\alpha\rVert^2} \asymp \sum_{k=1}^{n}c_k^2, \tag*{(11)}

where the implied constants are absolute, up to the following harmless convention for the final coefficients in the finite continued fraction expansion: A rational number in (0,1)(0,1) has two finite continued fraction expansions

[0;c1,…,cn]=[0;c1,…,cn−1,1][0;c_1,\ldots,c_n]=[0;c_1,\ldots,c_n-1,1]

when cn≥2c_n\ge2. These two expansions change the sum of squares only by a controlled amount cn2≍(cn−1)2+1c_n^2\asymp(c_n-1)^2+1 and thus the asymptotic estimate is independent of this convention.

The denominators of the convergents pk/qkp_k/q_k satisfy

qk=ckqk−1+qk−2(12)q_k=c_kq_{k-1}+q_{k-2} \tag*{(12)}

(as already used in the proof of Lemma 9). Moreover, it is well-known that

pkqk−1−pk−1qk=(−1)k+1.(13)p_kq_{k-1}-p_{k-1}q_k=(-1)^{k+1}. \tag*{(13)}

The complete-quotient identity states that

α=pkβk+1+pk−1qkβk+1+qk−1,where βk+1=[ck+1;ck+2,…,cn].\alpha= \frac{p_k\beta_{k+1}+p_{k-1}}{q_k\beta_{k+1}+q_{k-1}}, \qquad\text{where } \beta_{k+1}=[c_{k+1};c_{k+2},\ldots,c_n].

Using (13) we obtain

∥qkα∥=1qkβk+1+qk−1.\lVert q_k\alpha\rVert= \frac{1}{q_k\beta_{k+1}+q_{k-1}}.

Since ck+1<βk+1<ck+1+1c_{k+1}<\beta_{k+1}<c_{k+1}+1 for k+1<nk+1<n, using the recurrence (12) it follows that

1qk+1+qk<∥qkα∥<1qk+1.\frac{1}{q_{k+1}+q_k}<\lVert q_k\alpha\rVert<\frac{1}{q_{k+1}}.

Consequently,

1qk2∥qkα∥2≳(qk+1qk)2≲ck+12.(14)\frac{1}{q_k^2\lVert q_k\alpha\rVert^2}\gtrsim\left(\frac{q_{k+1}}{q_k}\right)^2\lesssim c_{k+1}^2. \tag*{(14)}

This immediately shows the implied lower estimate in (11).

In order to prove the upper estimate, we partition the summation range of (11). For k∈{1,…,n}k\in\{1,\ldots,n\}, define the kk-th continued fraction block by

Bk:={r∈Z:qk−1≤r<qk}.B_k:=\{r\in\mathbb{Z}:q_{k-1}\le r<q_k\}.

The best-approximation property of convergents states that

0<d<qkimplies∥dα∥≥∥qk−1α∥.(15)0<d<q_k \qquad\text{implies}\qquad\lVert d\alpha\rVert\ge\lVert q_{k-1}\alpha\rVert. \tag*{(15)}

If r,s∈Bkr,s\in B_k and r≠sr\ne s, then 0<∣r−s∣<qk0<|r-s|<q_k. It follows from (15) that ∥(r−s)α∥≥∥qk−1α∥\lVert(r-s)\alpha\rVert\ge\lVert q_{k-1}\alpha\rVert. Thus the points {rα}\{r\alpha\}, r∈Bkr\in B_k are ∥qk−1α∥\lVert q_{k-1}\alpha\rVert-separated on the circle R/Z\mathbb{R}/\mathbb{Z}.

For j∈Nj\in\mathbb{N} let now

Ak,j:={r∈Bk:j∥qk−1α∥≤∥rα∥<(j+1)∥qk−1α∥}.A_{k,j}:=\{r\in B_k:j\lVert q_{k-1}\alpha\rVert\le\lVert r\alpha\rVert<(j+1)\lVert q_{k-1}\alpha\rVert\}.

The set

{x∈R/Z:j∥qk−1α∥≤∥x∥<(j+1)∥qk−1α∥}\{x\in\mathbb{R}/\mathbb{Z}:j\lVert q_{k-1}\alpha\rVert\le\lVert x\rVert<(j+1)\lVert q_{k-1}\alpha\rVert\}

is the union of at most two intervals, each of length ∥qk−1α∥\lVert q_{k-1}\alpha\rVert. Since the points {rα}\{r\alpha\}, r∈Bkr\in B_k are ∥qk−1α∥\lVert q_{k-1}\alpha\rVert-separated, it follows that #Ak,j≤2\#A_{k,j}\le2. Consequently,

∑r∈Bk1∥rα∥2≤2∥qk−1α∥2∑j=1∞1j2≲1∥qk−1α∥2.\sum_{r\in B_k}\frac{1}{\lVert r\alpha\rVert^2}\le\frac{2}{\lVert q_{k-1}\alpha\rVert^2}\sum_{j=1}^{\infty}\frac{1}{j^2}\lesssim\frac{1}{\lVert q_{k-1}\alpha\rVert^2}.

and since r≥qk−1r\ge q_{k-1} for r∈Bkr\in B_k, we thus obtain

∑qk−1≤r<qk1r2∥rα∥2≤1qk−12∑r∈Bk1∥rα∥2≲1qk−12∥qk−1α∥2.\sum_{q_{k-1}\le r<q_k}\frac{1}{r^2\lVert r\alpha\rVert^2}\le\frac{1}{q_{k-1}^2}\sum_{r\in B_k}\frac{1}{\lVert r\alpha\rVert^2}\lesssim\frac{1}{q_{k-1}^2\lVert q_{k-1}\alpha\rVert^2}.

Applying (14), with k−1k-1 in place of kk, we get

∑qk−1≤r<qk1r2∥rα∥2≲ck2.\sum_{q_{k-1}\le r<q_k}\frac{1}{r^2\lVert r\alpha\rVert^2}\lesssim c_k^2.

Summing over k=1,…,nk = 1, \ldots, n and observing that the blocks BkB_k partition the set {1,…,qn−1}\{1, \ldots, q_n-1\}, we obtain

∑r=1⌊qn/2⌋1r2∥rα∥2≤∑r=1qn−11r2∥rα∥2≲∑k=1nck2.\sum_{r=1}^{\lfloor q_n/2\rfloor} \frac{1}{r^2 \lVert r\alpha\rVert^2} \le\sum_{r=1}^{q_n-1} \frac{1}{r^2 \lVert r\alpha\rVert^2} \lesssim\sum_{k=1}^{n} c_k^2.

as desired. □

We note that number theoretic sums of the form like in (11) and generalizations beyond our concrete case are also studied in [3, 4, 14].

Authors’ Addresses:

Nicolas Nagel, Institut für Finanzmathematik und Angewandte Zahlentheorie, JKU Linz, Altenbergerstraße 69, 4040 Linz, Austria. Email: nicolas.nagel(AT)jku.at ORCiD: 0009-0004-3362-3543

Friedrich Pillichshammer, Institut für Finanzmathematik und Angewandte Zahlentheorie, JKU Linz, Altenbergerstraße 69, 4040 Linz, Austria. Email: friedrich.pillichshammer(AT)jku.at ORCiD: 0000-0001-6952-9218

References

  1. [1]M. S. Aigner, Markow’s theorem and 100 years of the uniqueness conjecture. A mathematical journey from irrational numbers to perfect matchings, Springer, Cham, 2013. 10.1007/978-3-319-00888-2
  2. [2]D. Bilyk, The L² discrepancy of irrational lattices, in: Monte Carlo and quasi-Monte Carlo methods 2012, 289–296, Springer Proc. Math. Stat., 65, Springer, Heidelberg, 2013. 10.1007/978-3-642-41095-6_11DOI
  3. [3]J. Beck, Probabilistic Diophantine approximation. Randomness in lattice point counting, Springer Monographs in Mathematics, Springer, Cham, 2014. 10.1007/978-3-319-10741-7DOI
  4. [4]B. Borda, On the theorem of Davenport and generalized Dedekind sums, J. Number Theory 172: 1-20, 2017. 10.1016/j.jnt.2016.08.016arxiv.org/abs/1606.07946
  5. [5]B. Borda, Optimal and typical L² discrepancy of 2-dimensional lattices, Ann. Mat. Pura Appl. 203(5): 2157–2184, 2024. 10.1007/s10231-024-01440-4
  6. [6]J. Bourgain, A. Kontorovich, On Zaremba’s conjecture, Ann. of Math. 180(1): 137-196, 2014. 10.4007/annals.2014.180.1.3
  7. [7]İ. Çanakçı, R. Schiffler, Snake graphs and continued fractions, European J. Combin. 86: paper no. 103081 (19 pp.), 2020. 10.1016/j.ejc.2020.103081
  8. [8]H. Cohn, Approach to Markoff’s minimal forms through modular functions, Ann. of Math. 61: 1-12, 1955. 10.2307/1969618DOI
  9. [9]J. Dick, P. Kritzer, F. Pillichshammer, Lattice rules—numerical integration, approximation, and discrepancy, Springer Series in Computational Mathematics, 58, Springer, Cham, 2022. 10.1007/978-3-031-09951-9DOI
  10. [10]J. Dick, F. Pillichshammer, Digital nets and sequences. Discrepancy theory and quasi-Monte Carlo integration, Cambridge University Press, Cambridge, 2010. 10.1017/CBO9780511761188
  11. [11]G. F. Frobenius, Über die Markoffschen Zahlen, in: Gesammelte Abhandlungen. Band III, Springer, Berlin-New York, 1968. (In German)
  12. [12]A. Gamburd, M. R. Magee, R. Ronan, An asymptotic formula for integer points on Markoff-Hurwitz varieties, Ann. of Math. 190(3): 751-809, 2019. 10.4007/annals.2019.190.3.2
  13. [13]Y. Gyoda, K. Matsushita, Generalization of Markov Diophantine equation via generalized cluster algebra, Electron. J. Combin. 30(4): paper no. 4.10 (20 pp.), 2023. https://doi.org/10.37236/11420
  14. [14]M. Haase, N. Nagel, Precise asymptotics and exact formulas for tensor product energies of Fibonacci lattices, to appear in Fibonacci Q. 10.1080/00150517.2026.2765441
  15. [15]A. Hinrichs, R. Kritzinger, F. Pillichshammer, Extreme and periodic L₂ discrepancy of plane point sets, Acta Arith. 199(2): 163-198, 2021. 10.4064/aa200520-22-12
  16. [16]S. Huang, An improvement to Zaremba’s conjecture, Geom. Funct. Anal. 25(3): 860-914, 2015. 10.1007/s00039-015-0327-6
  17. [17]A. Hurwitz, Über eine Aufgabe der unbestimmten Analysis, Arch. Math. Phys. 11(3): 185-196, 1907. (In German) 10.1007/978-3-0348-4160-3_27
  18. [18]C. Koutschan, N. Nagel, work in progress.
  19. [19]L. Kuipers, H. Niederreiter, Uniform distribution of sequences, John Wiley, New York, 1974. 10.1137/1019028
  20. [20]G. Leobacher, F. Pillichshammer, Introduction to quasi-Monte Carlo integration and applications, Second edition. Compact Textb. Math. Birkhäuser/Springer, Cham, 2026. 10.1007/978-3-032-05446-3
  21. [21]A. A. Markov, Sur les formes quadratiques binaires indéfinies, Math. Ann. 15(3-4): 381-406, 1879. (In French) 10.1007/BF02086269
  22. [22]N. Nagel, On the L₂-discrepancy of Latin hypercubes, Monatsh. Math. 207(2): 309-336, 2025. 10.1007/s00605-025-02065-2
  23. [23]H. Niederreiter, Dyadic fractions with small partial quotients, Monatsh. Math. 101(4): 309-315, 1986. 10.1007/BF01559394
  24. [24]H. Niederreiter, Random number generation and quasi-Monte Carlo methods, No. 63 in CBMS-NSF Series in Applied Mathematics, SIAM, Philadelphia, 1992. https://doi.org/10.1137/1.9781611970081
  25. [25]K. F. Roth, On irregularities of distribution, Mathematika 1: 73-79, 1954. 10.1112/S0025579300000541
  26. [26]W. M. Schmidt, Irregularities of distribution. VII, Acta Arith. 21: 45-50, 1972. 10.4064/aa-21-1-45-50
  27. [27]I. H. Sloan, S. Joe, Lattice Methods for Multiple Integration. Oxford University Press, New York and Oxford, 1994. 10.1016/0377-0427(85)90012-3

Paper details

vlnc:W_rzbcgxg7
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 9

downloads · 0

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

  • Mathematics

Not recorded for this paper

View statement
Looking for related papers…
Contents