Next Article in Journal
Optimal Operation of PV Sources in DC Grids for Improving Technical, Economical, and Environmental Conditions by Using Vortex Search Algorithm and a Matrix Hourly Power Flow
Next Article in Special Issue
Graph-Clustering Method for Construction of the Optimal Movement Trajectory under the Terrain Patrolling
Previous Article in Journal
Tail Value-at-Risk-Based Expectiles for Extreme Risks and Their Application in Distributionally Robust Portfolio Selections
Previous Article in Special Issue
The Connective Eccentricity Index of Hypergraphs
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

On the Degree Distribution of Haros Graphs

by
Jorge Calero-Sanz
1,2
1
ETSI Aeronáutica y del Espacio (ETSIAE), Universidad Politécnica de Madrid, 28040 Madrid, Spain
2
Department of Signal Theory and Communications, Telematics and Computing Systems, Rey Juan Carlos University, 28942 Fuenlabrada, Spain
Mathematics 2023, 11(1), 92; https://doi.org/10.3390/math11010092
Submission received: 1 December 2022 / Revised: 18 December 2022 / Accepted: 21 December 2022 / Published: 26 December 2022
(This article belongs to the Special Issue Advanced Graph Theory and Combinatorics)

Abstract

:
Haros graphs are a graph-theoretical representation of real numbers in the unit interval. The degree distribution of the Haros graphs provides information regarding the topological structure and the associated real number. This article provides a comprehensive demonstration of a conjecture concerning the analytical formulation of the degree distribution. Specifically, a theorem outlines the relationship between Haros graphs, the corresponding continued fraction of its associated real number, and the subsequent symbolic paths in the Farey binary tree. Moreover, an expression that is continuous and piecewise linear in subintervals defined by Farey fractions can be derived from an additional conclusion for the degree distribution of Haros graphs.

1. Introduction

The study of the structure of real numbers has been approached from a variety of perspectives [1,2,3,4]. The representation by continued fractions and the representation through the Farey tree are examples of canonical representations [5,6,7]. Recent graph-theoretical research has provided a new representation of real numbers using Haros graphs [8]. These graphs are swayed by the approach of Horizontal Visibility Graphs to the quasiperiodic route [9,10,11,12]. Furthermore, Haros graphs are similar to other structures, such as Farey graphs [13,14,15]. Haros graphs provide a graph description of the unit interval [ 0 , 1 ] establishing a one-to-one correspondence with the well-known Farey sequences F n , where
F n = p q [ 0 , 1 ] : 0 p q n , ( p , q ) = 1 .
The Haros graph set G is recursively generated from an initial graph (defined as two nodes joined by an edge) and the concatenation graph-operator ⊕ shown in Figure 1. Hence, the set G may be represented as a binary tree (see Figure 1). Since lim n F n = [ 0 , 1 ] , the bijection can be extended to the unit interval, where rational numbers are associated with finite Haros graphs, and irrational numbers correspond to infinite Haros graphs.
Consequently, a one-to-one correspondence τ exists between real numbers x [ 0 , 1 ] and Haros graphs τ ( x ) = G x G . One of the main features investigated in [8] is the degree distribution P ( k , x ) of Haros graphs G x , which is the probability that a randomly selected node in G x has degree k. The degree distribution was deemed a fruitful tool because Haros graphs are uniquely determined by the degree sequence [16], whereas the degree distribution is a marginal distribution of the degree sequence. Indeed, the degree distribution for the three initial values of k confirms:
P ( k , x < 1 / 2 ) = x , k = 2 1 2 x , k = 3 0 , k = 4 ; P ( k , x > 1 / 2 ) = 1 x , k = 2 2 x 1 , k = 3 0 , k = 4 .
In contrast to the initial values, which are related to the real number x associated with G x , the closed form of the degree distribution P ( k , x ) has only been drawn for degrees k 5 . Taking the above fact into account, this paper outlines two theorems to complete the degree distribution expression, based on two distinct approaches. Initially, a complete description of P ( k , x ) is provided only in terms of the continued fraction of x or, alternatively, in terms of the Haros graph creation process codified along the symbolic binary path. The second result demonstrates the properties of P ( k , x ) as a continuous real-valued piecewise linear function.
This paper is separated into four sections. Section 2 gives a brief overview of Haros graphs and their connections to Farey sequences, continued fractions, and the Farey binary tree. Section 3 provides the two main results: the first theorem states the closed form of P ( k , p / q ) with respect to truncations of the continued fraction of p / q , whereas a second theorem rewrites the preceding result using the position of p / q in the Farey binary tree. Section 4 concludes the work. In addition, Appendix A includes detailed proofs for the assertions in Section 3.

2. Preliminaries

The Farey binary tree is a canonical way of representing the set of rational numbers in [ 0 , 1 ] as a binary tree starting with the fractions 0 / 1 , 1 / 1 —the elements of the Farey sequence F 1 —and creating new irreducible fractions by the mediant sum of two consecutive fractions in F n :
p q r s = p + r q + s .
The binary tree representation allocates each rational number to a level k of the tree, denoted k . For instance, the three first levels consist of:
1 = 0 1 , 1 1 ; 2 = 1 2 ; 3 = 1 3 , 2 3 .
This representation is closely related to the continued fraction, a powerful technique for representing a real number in the interval [ 0 , 1 ] as
x = 1 a 1 + 1 a 2 + 1 a 3 + = [ a 1 , a 2 , a 3 , ] .
The relationship was presented in [7], and it has been established that a number with a continued fraction expression [ a 1 , a 2 , a 3 , ] is associated with a symbolic binary path in the Farey binary tree L a 1 R a 2 L a 3 , where L q is interpreted as a sequence of q symbols L (if the symbolic path is finite, the last symbol has an index a n 1 ). Therefore, since every irrational number has an infinite continued fraction, the irrational numbers are reachable through an infinite path in the Farey binary tree. Moreover, the continued fraction allows a sequence of rational so-called convergents [6] defined as:
p k = a k · p k 1 + p k 2 q k = a k · q k 1 + q k 2 ,
with initial values p 2 = 0 , q 2 = 1 , p 1 = 1 , and q 1 = 0 , where
lim k p k q k = lim k [ a 1 , , a k ] = [ a 1 , a 2 , ] = x .
As stated in the preceding section, the Haros graphs set G provides a graph-based representation of the unit interval [ 0 , 1 ] . The primary objective is to reproduce, in a graph scenario, the mediant sum—described in Equation (2)—that was utilized to construct F n [1]. The concatenation graph is depicted in Figure 1, and Flanagan et al. [17] provide a comprehensive definition. Every Haros graph G (except for the initial graph) is therefore described as G = G L G R , where G L , G R are also Haros graphs. However, just as the mediant sum only takes to two nearby fractions in Farey sequences, Haros graphs only can be concatenated if G L and G R are also adjacent.
In order to analyze the topological structure of a Haros graph, the probability distribution degree P ( k , x ) proves to be a useful instrument. Equation (1) identifies the three first values of k, although by construction P ( k , 0 ) = P ( k , 1 ) = 0 . In addition, for degrees k 5 , Theorem 2, in [8], determines that the degree values for which P ( k , x ) = 0 rely on the symbol repetition— R R or L L —in the symbolic path of the Haros graph tree to reach G x . Moreover, the same research conjectures follow for the closed form of P ( k , x ) . The aim is to provide a formal proof of this claim.
Prior to this, a brief explanation of the emergence of degrees k 5 is provided: the emergence of degrees k 5 occurs if there is a change in symbol L R or R L in the path of the Haros graph tree. Consequently, the degree it emerges, or not, is related to the level at which this symbolic change occurs. Suppose that we have covered the path L a 1 R a 2 L a k 1 . Next, the downstream of R a k generates a new degree, which had previously appeared as a boundary node before the shift in direction (the node resulting from the identification of the extreme nodes). Specifically, in the first downstream R, the degree appears in the merging node, and the number of nodes with this degree increases by one with each descent. Therefore, when we reach R a k 1 , there will be 0 + ( a k 1 ) = a k 1 nodes of that degree. In addition, the Haros graph achieved is associated with p k / q k = [ a 1 , , a k ] .
Now, in order to reach the Haros graph associated with [ a 1 , , a k , a k + 1 ] , we must descend to R and then a k + 1 1 times to L. If there were a k 1 nodes of that degree previously, a new descent will result in a k nodes. Then, performing a descent L a k + 1 1 requires concatenating the Haros graph reached by R a k with a k + 1 1 copies of the Haros graph reached by R a k 1 , so that the resultant Haros graph has ( a k 1 ) · ( a k + 1 1 ) + a k = ( a k 1 ) · ( a k + 1 ) + 1 nodes of that degree.
In other words, the emergence of the degree occurs, according to the recursive equation q n = q n 2 + a n · q n 1 , where the terms a i correspond to the continued fraction [ a k 1 , a k + 1 , , a m ] , with initial conditions q 1 = 0 , q 0 = 1 . Hence, this recursive equation converges to the denominator of the continued fraction [ a k 1 , a k + 1 , , a m ] .

3. Main Results

The first presented result provides an explicit description of the degree distribution related to the truncations of the continued fraction of p / q , the rational number associated with Haros graph G p / q :
Theorem 1. 
Let p / q [ 0 , 1 / 2 ] , with p / q = [ a 1 , , a m ] . Then, the degree distribution P ( k , p / q ) of the Haros graph G p / q is:
P k , p q = p / q , k = 2 ( q 2 p ) / q , k = 3 0 , k = 4 s ( l ) / q , f o r   v a l u e s   k = i = 1 l a i + 3 ,   w i t h   l = 1 , , m 1 , w h e r e   r ( l ) / s ( l ) = [ a l + 1 1 , , a m ] 1 / q , i f   k = i = 1 m a i + 2 0 , o t h e r w h i s e .
Proof. 
See Appendix A.1 for a complete proof. □
The theorem has several consequences: first, it unveils the whole expression for P ( k , x ) providing a large amount of topological information. Moreover, as stated in the previous section, the values k 5 are related to the continued fraction and, consequently, with the symbolic path reached in the Haros graph tree. In addition, the result reduces the computational cost for obtaining the degree distribution P ( k , p / q ) of the Haros graph G p / q . Initially, we observe that the denominator of the n-th convergent q n of p / q verifies q n ϕ n 1 , where ϕ is the Golden number [18]. Hence, as the Haros graph G p n / q n has q n + 1 nodes, its growth is exponential, but Theorem 1 uses only continued fractions [3,19].
Let us illustrate an example: consider the Haros graph G 10 / 23 , where 10 / 23 = [ a 1 , a 2 , a 3 ] = [ 2 , 3 , 3 ] . Hence, the symbolic path in the Haros graph tree is L 2 R 3 L 2 (see Figure 2 for an illustration). Numerically, its degree distribution is as follows:
P k , 10 23 = { 10 23 , k = 2 , 3 23 , k = 3 , 0 , k = 4 , 7 23 , k = 5 , 2 23 , k = 8 , 1 23 , k = 10 , 0 , otherwise .
Then, we can verify that there are m 5 , 10 / 23 = 7 nodes of degree k = 5 and that this number corresponds with the denominator of the continued fraction
[ a 2 1 , a 3 ] = [ 2 , 3 ] = 3 7 ;
moreover, there are m 8 , 10 / 23 = 2 nodes of degree k = 8 , which is the denominator of the continued fraction
[ a 3 1 ] = [ 2 ] = 1 2 .
Lastly, k = 10 corresponds with the degree of the boundary node; therefore, it only appears once.
With Theorem 1, we are able to provide a proof for the conjecture presented in [8]. Contrary to the previous finding, the subsequent theorem results in a formulation of the degree distribution relating to the number x, but the computation of P ( k , x ) for every k depends on the location of x in the subintervals given by the levels in the Farey binary tree k .
Theorem 2. 
Let p / q [ 0 , 1 / 2 ] and the associated Haros graph G p / q . Let us consider k 3 = a i b i i = 1 2 k 5 , and k 2 = p j q j j = 1 2 k 4 ; clearly, we have i = 1 , , 2 k 5 :
p 2 i 1 q 2 i 1 < a i b i < p 2 i q 2 i .
Therefore, the degree distribution of the Haros graph G p / q for degrees k 5 is:
P k , p q = { q 2 i 1 · ( p / q ) p 2 i 1 , if p / q p 2 i 1 q 2 i 1 , a i b i , i = 1 , , 2 k 5 , q 2 i · ( p / q ) + p 2 i , if p / q a i b i , p 2 i q 2 i , i = 1 , , 2 k 5 , 1 / q j , if p q = p j q j k 2 , 0 , otherwise .
Proof. 
See Appendix A.2 for a complete proof. □
The theorem can be extended from rational numbers to all real numbers. Figure 3 depicts a numerical computation of P ( k , x ) for the first values of k 5 verifying the statement of Theorem 2. Moreover, this new formulation allows the following statement to emphasize some aspects of the degree distribution P ( k , x ) as a real function over the variable x:
Corollary 1. 
The degree distribution P ( k , x ) over the variable x is a piecewise linear and continuous function, with the exception of the measure null set.
Now, let us illustrate the theorem by applying the result to the case when k = 5 . Then, it is a simple matter to confirm that if p / q ( 1 / 3 , 1 / 2 ) , then
P k = 5 , p q = 3 · p q 1 = 3 p q q .
In comparison, the continued fractions of rational numbers p / q ( 1 / 3 , 1 / 2 ) start with the term a 1 = 2 . In virtue of Theorem 1, the degree k = a 1 + 3 = 5 would have a frequency of s ( 1 ) / q , where s ( 1 ) is the denominator of [ a 2 1 , a 3 , , a m ] . Let us examine how the two expressions coincide:
p q = 1 2 + 1 a 2 + q p 2 = q 2 p p = 1 a 2 + 1 a 3 + p q 2 p 1 = 3 p q q 2 p = ( a 2 1 ) + 1 a 3 + 1 a 4 + q 2 p 3 p q = 1 ( a 2 1 ) + 1 a 3 + 1 a 4 + .
Hence, 3 p q is the denominator of the continued fraction [ a 2 1 , a 3 , , a m ] according to Theorem 1. This finding may be generalizable to all degree values k, requiring the partition of [ 0 , 1 ] by the levels k 3 and k 2 .

4. Conclusions

The topological properties of rational Haros graphs were investigated in detail. The full formulation of the degree distribution P ( k , x ) of a Haros graph G x was demonstrated. Different methods were used to prove two theorems. The first theorem unveiled the closed form of P ( k , x ) obtained by truncations of the continued fraction of x. With this result, not only did we obtain the complete expression of the degree distribution, but we also computed it more efficiently. The second theorem provided a piecewise linear and continuous expression of P ( k , x ) , except for a measure null set. This result confirmed a conjecture presented in [8] revealing that the degree distribution exhibited a self-similar behavior related to the subintervals defined by Farey fractions.

Funding

The author acknowledges funding from the Spanish Ministry of Science and Innovation under project M2505 (PID2020-113737GB-I00).

Data Availability Statement

Not applicable.

Acknowledgments

I am grateful to Bartolomé Luque and Lucas Lacasa for their guidance and advice.

Conflicts of Interest

The author declares no conflict of interest.

Appendix A

Appendix A.1. Proof of Theorem 1

Proof. 
The values k = 2 , 3 , 4 are calculated in (1), while the value k = i = 1 m a i + 2 corresponds to the degree of the boundary node, which has a frequency of 1 according to the the results of Appendix B in [8].
Let us consider the Haros graph G p / q , with p / q = [ a 1 , , a m ] . Thus, the symbolic path in the Haros graph tree is L a 1 R a 2 X a m 1 , with X = L or X = R depending on whether m is odd or even, respectively. In virtue of Theorem 2 presented in [8], it can be determined that nonzero values of the degree distribution P ( k , p / q ) correspond to the degrees k = i = 1 l a i + 3 for the values l = 1 , 2 , , m 1 . It remains, however, to determine its precise value. To accomplish this, we conduct an induction exercise on the levels of the Haros graph tree n :
At level 4 , the first Haros graph with degree k 5 is associated to 2 / 5 = [ a 1 , a 2 ] = [ 2 , 2 ] proving that
P a 1 + 3 , 2 5 = P 5 , 2 5 = 1 5 ,
the value of the denominator of the continued fraction [ a 2 1 ] = [ 2 1 ] = [ 1 ] = 1 / 1 . This level also includes the Haros graph G 1 / 4 , which fulfils the theorem because it contains only the boundary node with degree k 5 .
We assume the result holds for all levels of the Haros graph tree κ , with κ n . Let us verify that it is satisfied at level κ = n + 1 . To accomplish this, we consider an arbitrary Haros graph G p / q at level n, where p / q = [ a 1 , , a m ] . Henceforth, we demonstrate that both its left and right descendants satisfy Equation (4).
Let us suppose, without loss of generality, that the last descents that result until we reach G p / q are left descents L, as seen in Figure A1. Moreover, Cvitanovic et al. [20] showed that if p / q = [ a 1 , , a m ] , then its left descendant is expressed in a continued fraction as [ a 1 , , a m + 1 ] , whereas the right descendant has a continued fraction expression [ a 1 , , a m 1 , 2 ] .
Figure A1. Diagram of the descendants of the Haros graph G p / q , with p / q = [ a 1 , , a m ] . Let us suppose that the Haros graph G p / q contains a symbolic path that terminates in a m 1 descents to the left L (the result is analogous for descents to right R). The continued fraction for the left descendant of the Haros graph is [ a 1 , , a m + 1 ] , whereas the right descendant has a continued fraction [ a 1 , , a m 1 , 2 ] .
Figure A1. Diagram of the descendants of the Haros graph G p / q , with p / q = [ a 1 , , a m ] . Let us suppose that the Haros graph G p / q contains a symbolic path that terminates in a m 1 descents to the left L (the result is analogous for descents to right R). The continued fraction for the left descendant of the Haros graph is [ a 1 , , a m + 1 ] , whereas the right descendant has a continued fraction [ a 1 , , a m 1 , 2 ] .
Mathematics 11 00092 g0a1
Let us start by dealing with the left descendant. This case is depicted in Figure A2, which illustrates how this descendant is formed by concatenating the convergent of order m 1 of p / q with p / q itself. By setting a value l 1 , 2 , m 2 , we will be in the degree k l = i = 1 l a i + 3 . Now, it is clear that the number of nodes with degree k l in the left descendant is equal to the total of the number of nodes with that degree in its two ascendants G p m 1 / q m 1 and G p / q .
Figure A2. Diagram of the construction for the left descendant of G p / q , where p / q = [ a 1 , , a m ] . The left descendant is expressed as [ a 1 , , a m + 1 ] and is obtained by concatenating G p m 1 / q m 1 and G p / q , where p m 1 / q m 1 is the convergent of order m 1 of p / q .
Figure A2. Diagram of the construction for the left descendant of G p / q , where p / q = [ a 1 , , a m ] . The left descendant is expressed as [ a 1 , , a m + 1 ] and is obtained by concatenating G p m 1 / q m 1 and G p / q , where p m 1 / q m 1 is the convergent of order m 1 of p / q .
Mathematics 11 00092 g0a2
By induction hypothesis, the denominators of the continued fractions are the number of nodes of degree k l of its ascendants, denoted by s p / q ( l , m ) and s p / q ( l , m 1 ) , respectively. Hence, we have:
r p / q ( l , m ) s p / q ( l , m ) : = [ a l + 1 1 , , a m ] ,
and
r p / q ( l , m 1 ) s p / q ( l , m 1 ) : = [ a l + 1 1 , , a m 1 ] .
This notation also reflects that the term of Equation (A2) is the previous convergent of Equation (A1). The recursivity of the continued fractions (shown in Equation (3)) entails:
s p / q ( l , m ) = s p / q ( l , m 2 ) + a m · s p / q ( l , m 1 ) .
Denoting by s L ( l ) the number of nodes with degree k l in the left descendant, we obtain the conclusion that:
s L ( l ) = s p / q ( l , m ) + s p / q ( l , m 1 ) = s p / q ( l , m 2 ) + a m · s p / q ( l , m 1 ) + s p / q ( l , m 1 ) = s p / q ( l , m 2 ) + ( a m + 1 ) · s p / q ( l , m 1 ) ,
where the right-hand side of Equation (A4) is the denominator of the continued fraction [ a l + 1 1 , , a m + 1 ] , as we aimed to demonstrate.
The value l = m 1 is required to complete the study of the left descendant; therefore, it is necessary to check the result for the degree k m 1 = i = 1 m 1 a i + 3 . The reason for separate consideration is that G p m 1 / q m 1 does not contain the degree k m 1 . Nonetheless, this degree first appears at the level i = 1 m 1 a i + 1 of the Haros graph tree, i.e., as the boundary node of the right descendant of G p m 1 / q m 1 . The number of nodes with that degree will increase by one with each successive left descent until the Haros graph G p / q is reached. Moreover, the induction hypothesis applied to p / q determines that there are s p / q ( m 1 , m ) nodes of this degree, i.e., the denominator of
[ a m 1 ] = 1 a m 1 .
Therefore, there will be s p / q ( m 1 , m ) + 1 nodes, or equivalently, there will be a m nodes of this degree. This number is the denominator of the truncated continued fraction [ ( a m + 1 ) 1 ] = [ a m ] , thus finishing the study of the left descent.
Let us now turn our attention to the right descendant, depicted in Figure A3. In this instance, the concatenation occurs between the Haros graph G p / q and its right ancestor, i.e., the Haros graph associated with the continued fraction [ a 1 , , a m 1 ] .
Figure A3. Diagram of the construction for the right descendant of G p / q , where p / q = [ a 1 , , a m ] . The right descendant is expressed as [ a 1 , , a m + 1 ] and is obtained by concatenating the Haros graphs G p m 1 / q m 1 and G p / q , where p m 1 / q m 1 is the m 1 -th convergent of p / q .
Figure A3. Diagram of the construction for the right descendant of G p / q , where p / q = [ a 1 , , a m ] . The right descendant is expressed as [ a 1 , , a m + 1 ] and is obtained by concatenating the Haros graphs G p m 1 / q m 1 and G p / q , where p m 1 / q m 1 is the m 1 -th convergent of p / q .
Mathematics 11 00092 g0a3
Let us consider the degrees k l = i = 1 l a i + 3 , with l 1 , 2 , , m 1 . The right descendant is obtained by concatenating G p / q G a / b , where a b = [ a 1 , , a m 1 ] . Therefore, we must represent the truncations of p / q and a / b , as well as their convergents, which are indicated as follows:
r p / q ( l , m ) s p / q ( l , m ) = [ a l + 1 1 , , a m 1 , a m ] ,
and
r a / b ( l , m ) s a / b ( l , m ) = [ a l + 1 1 , , a m 1 , a m 1 ] .
It is easy to show that the continued fractions in Equations (A5) and (A6) match in all the terms with the exception of the last one; hence, all the denominators of the convergent with t m 1 , we verify that s p / q ( l , t ) = s a / b ( l , t ) . Using the induction hypothesis, the recursive Equation (3) for the convergent, and denoting by s R ( l ) the number of nodes of degree k l in the right descendant, we have:
s R ( l ) = s p / q ( l , m ) + s a / b ( l , m ) = ( s p / q ( l , m 2 ) + ( a m ) · s p / q ( l , m 1 ) ) + ( s a / b ( l , m 2 ) + ( a m 1 ) · s a / b ( l , m 1 ) ) = ( s a / b ( l , m 2 ) + ( a m ) · s a / b ( l , m 1 ) ) + ( s a / b ( l , m 2 ) + ( a m 1 ) · s a / b ( l , m 1 ) ) = 2 · s a / b ( l , m 2 ) + 2 · ( a m 1 ) · s a / b ( l , m 1 ) + s p / q ( l , m 1 ) = 2 ( s a / b ( l , m 2 ) + · ( a m 1 ) · s a / b ( l , m 1 ) ) + s a / b ( l , m 1 ) = 2 · s a / b ( l , m ) + s a / b ( l , m 1 ) ,
where the right-hand side of Equation (A7) is the denominator of the truncated continued fraction [ a l + 1 1 , , a m 1 , a m 1 , 2 ] . Finally, the right descent has a single node with degree
k = i = 1 m 1 a i + ( a m 1 ) + 3 = i = 1 m a i + 2 .
This is the merging node obtained by the concatenating the extreme nodes of p / q and a / b , in agreement with the denominator of the last truncated right descendant, which is [ 2 1 ] = [ 1 ] = 1 / 1 , thereby ending the proof. □

Appendix A.2. Proof of Theorem 2

In order to demonstrate the result, we must introduce the continuants, recursively defined polynomials stated by Euler, where:
K 0 = 1 ; K 1 ( x 1 ) = x 1 ; K n ( x 1 , , x n ) = x n · K n 1 ( x 1 , , x n 1 ) + K n 2 ( x 1 , , x n 2 ) , for n 2 .
The continuants allow us to express the continued fractions as
p q = [ a 1 , , a n ] = K n 1 ( a 2 , , a n ) K n ( a 1 , , a n ) .
In addition, two properties of the continuants must be introduced. The first generalizes the definition (A8) m , with 1 m < n as follows:
K n ( x 1 , , x n ) = K m ( x 1 , , x m ) · K n m ( x m + 1 , , x n ) + K m 1 ( x 1 , , x m 1 ) · K n m 1 ( x m + 2 , , x n ) .
The second equality was established by Muir and Metzler in [21]:
K n ( x 1 , , x n ) · K n 2 ( x 2 , , x n 1 ) K n 1 ( x 1 , , x n 1 ) · K n 1 ( x 2 , , x n ) = ( 1 ) n .
Proof. 
The intervals, where the degree distribution P ( k , p / q ) > 0 , are determined by the elements a i / b i k 3 , i.e., the Farey fractions of a certain level in the Farey tree, and their descendants located at a lower level p 2 i 1 / q 2 i 1 k 2 . Let us first establish that
a i b i = [ α 1 , , α r ] ;
then, if r is even, we obtain
p 2 i 1 q 2 i 1 = [ α 1 , , α r + 1 ] ; p 2 i q 2 i = [ α 1 , , α r 1 , 2 ] ,
whereas for r odd we have:
p 2 i q 2 i = [ α 1 , , α r + 1 ] ; p 2 i 1 q 2 i 1 = [ α 1 , , α r 1 , 2 ] .
Let us suppose, without loss of generality, the case r odd, and consider a rational number
p q p 2 i 1 q 2 i 1 = [ α 1 , , α r + 1 ] , a i b i = [ α 1 , , α r ] .
Then, the first r terms of the continued fraction are determined as follows:
p q = [ α 1 , , α r , b r + 1 , , b m ] .
Furthermore, if a i / b i = [ α 1 , , α r ] k 3 , then k = i = 1 r α i + 3 . Let us verify that the numerator of the expression q 2 i 1 · ( p / q ) p 2 i 1 stated in Theorem 2 and the term s ( r ) stated in Theorem 1 have the same value for the degree k = i = 1 r α i + 3 . Hence, applying the continuant expression in Equation (A9) to p / q and p 2 i 1 / q 2 i 1 (described in Equation (A12)), and the property presented in Equation (A10), we obtain:
q 2 i 1 · p q · p 2 i 1 = K ( α 1 , , α r + 1 ) · K ( α 2 , , α r , b r + 1 , , b m ) K ( α 1 , , α r , b r + 1 , , b m ) · K ( α 2 , , α r + 1 ) = K ( α 1 , , α r + 1 ) · K ( α 2 , , α r ) · K ( b r + 1 , , b m ) + K ( α 2 , , α r 1 ) · K ( b r + 2 , , b m ) K ( α 2 , , α r + 1 ) · K ( α 1 , , α r ) · K ( b r + 1 , , b m ) + K ( α 1 , , α r 1 ) · K ( b r + 2 , , b m ) = K ( b r + 1 , , b m ) · K ( α 1 , , α r + 1 ) · K ( α 2 , , α r ) K ( α 2 , , α r + 1 ) · K ( α 1 , , α r ) + K ( b r + 2 , , b m ) · K ( α 1 , , α r + 1 ) · K ( α 2 , , α r 1 ) K ( α 2 , , α r + 1 ) · K ( α 1 , , α r 1 ) .
Using the definition (A8) for K ( α 1 , , α r + 1 ) , we obtain:
K ( α 1 , , α r + 1 ) = K ( α 1 , , α r ) + K ( α 1 , , α r 1 ) ,
and applying the Equation (A11), we obtain the following value for the first bracket in Equation (A14):
K ( α 1 , , α r + 1 ) · K ( α 2 , , α r ) K ( α 2 , , α r + 1 ) · K ( α 1 , , α r ) = K ( α 1 , , α r ) · K ( α 2 , , α r ) + K ( α 1 , , α r 1 ) · K ( α 2 , , α r ) K ( α 2 , , α r ) · K ( α 1 , , α r ) K ( α 2 , , α r 1 ) · K ( α 1 , , α r ) = K ( α 1 , , α r 1 ) · K ( α 2 , , α r ) K ( α 2 , , α r 1 ) · K ( α 1 , , α r ) = ( 1 ) r + 1 = 1 .
In addition, for the second bracket in Equation (A14), we have:
K ( α 1 , , α r + 1 ) · K ( α 2 , , α r 1 ) K ( α 2 , , α r + 1 ) · K ( α 1 , , α r 1 ) = K ( α 1 , , α r ) · K ( α 2 , , α r 1 ) + K ( α 1 , , α r 1 ) · K ( α 2 , , α r 1 ) K ( α 2 , , α r ) · K ( α 1 , , α r 1 ) K ( α 2 , , α r 1 ) · K ( α 1 , , α r 1 ) = K ( α 1 , , α r ) · K ( α 2 , , α r 1 ) K ( α 2 , , α r ) · K ( α 1 , , α r 1 ) = ( 1 ) r = 1 .
Therefore, Equation (A14) is simplified as follows:
q 2 i 1 · p q · p 2 i 1 = K ( b r + 1 , , b m ) K ( b r + 2 , , b m ) ,
where the right-hand side is:
K ( b r + 1 , , b m ) K ( b r + 2 , , b m ) = b r + 1 · K ( b r + 2 , , b m ) + K ( b r + 3 , , b m ) K ( b r + 2 , , b m ) = ( b r + 1 1 ) · K ( b r + 2 , , b m ) + K ( b r + 3 , , b m ) = K ( b r + 1 1 , b r + 2 , , b m ) ,
i.e., it is the denominator of the truncated continued fraction [ b r + 1 1 , , b m ] , as we aimed to demonstrate. Observe that if r is even, p 2 i / q 2 i has a continued fraction expression [ α 1 , , α r + 1 ] , and the argumentation would be valid with the opposite sign q 2 i · p + q · p 2 i .
It remains to verify the result for rational numbers:
p q a i b i = [ α 1 , , α r ] , p 2 i q 2 i = [ α 1 , , α r 1 , 2 ] , .
In that case, the first r terms of the continued fraction of p / q are determined as:
p q = [ α 1 , , α r 1 , 1 , b r + 2 , , b m ] .
Reproducing the scheme of the demonstration in the last case, we obtain
q 2 i · p + q · p 2 i = K ( α 1 , , α r 1 , 2 ) · K ( α 2 , , α r 1 , 1 , b r + 2 , , b m ) + K ( α 1 , , α r 1 , 1 , b r + 2 , , b m ) · K ( α 2 , , α r 1 , 2 ) = K ( α 1 , , α r 1 , 2 ) · K ( α 2 , , α r 1 , 1 ) · K ( b r + 2 , , b m ) + K ( α 2 , , α r 1 ) · K ( b r + 3 , , b m ) + K ( α 2 , , α r 1 , 2 ) · K ( α 1 , , α r 1 , 1 ) · K ( b r + 2 , , b m ) + K ( α 1 , , α r 1 ) · K ( b r + 3 , , b m ) = K ( b r + 2 , , b m ) · K ( α 1 , , α r 1 , 2 ) · K ( α 2 , , α r ) K ( α 2 , , α r 1 , 2 ) · K ( α 1 , , α r ) + K ( b r + 3 , , b m ) · K ( α 2 , , α r 1 , 2 ) · K ( α 1 , , α r 1 ) K ( α 1 , , α r 1 , 2 ) · K ( α 2 , , α r 1 ) .
Using the definition (A8) for K ( α 1 , , α r 1 , 2 ) , we have:
K ( α 1 , , α r 1 , 2 ) = 2 · K ( α 1 , , α r 1 ) + K ( α 1 , , α r 1 ) = 2 · ( α r 1 ) · K ( α 1 , , α r 1 ) + K ( α 1 , , α r 2 ) + K ( α 1 , , α r 1 ) = 2 · ( α r ) · K ( α 1 , , α r 1 ) 2 · K ( α 1 , , α r 1 ) + 2 · K ( α 1 , , α r 2 ) + K ( α 1 , , α r 1 ) = 2 · ( α r ) · K ( α 1 , , α r 1 ) K ( α 1 , , α r 1 ) + 2 · K ( α 1 , , α r 2 ) = 2 · K ( α 1 , , α r ) K ( α 1 , , α r 1 ) .
The first bracket in Equation (A18) is now:
K ( α 1 , , α r 1 , 2 ) · K ( α 2 , , α r ) K ( α 2 , , α r 1 , 2 ) · K ( α 1 , , α r ) = 2 · K ( α 1 , , α r ) · K ( α 2 , , α r ) K ( α 1 , , α r 1 ) · K ( α 2 , , α r ) 2 · K ( α 2 , , α r ) · K ( α 1 , , α r ) + K ( α 2 , , α r 1 ) · K ( α 1 , , α r ) = K ( α 2 , , α r 1 ) · K ( α 1 , , α r ) K ( α 1 , , α r 1 ) · K ( α 2 , , α r ) = ( 1 ) r = 1 .
In addition, the second bracket requires the following equality:
K ( α 1 , , α r 1 ) = K ( α 1 , , α r ) K ( α 1 , , α r 1 ) ,
resulting in:
K ( α 2 , , α r 1 , 2 ) · K ( α 1 , , α r 1 ) K ( α 1 , , α r 1 , 2 ) · K ( α 2 , , α r 1 ) = 2 · K ( α 2 , , α r ) · K ( α 1 , , α r 1 ) K ( α 2 , , α r 1 ) · K ( α 1 , , α r 1 ) 2 · K ( α 1 , , α r ) · K ( α 2 , , α r 1 ) + K ( α 1 , , α r 1 ) · K ( α 2 , , α r 1 ) = 2 · K ( α 2 , , α r ) · K ( α 1 , , α r ) 2 · K ( α 2 , , α r ) · K ( α 1 , , α r 1 ) K ( α 2 , , α r 1 ) · K ( α 1 , , α r ) + K ( α 2 , , α r 1 ) · K ( α 1 , , α r 1 ) 2 · K ( α 1 , , α r ) · K ( α 2 , , α r ) + 2 · K ( α 1 , , α r ) · K ( α 2 , , α r 1 ) + K ( α 1 , , α r 1 ) · K ( α 2 , , α r ) K ( α 1 , , α r 1 ) · K ( α 2 , , α r 1 ) = K ( α 1 , , α r ) · K ( α 2 , , α r 1 ) K ( α 1 , , α r 1 ) · K ( α 2 , , α r ) = ( 1 ) r = 1 .
Thus, Equation (A18) is simplified as:
q 2 i · p + q · p 2 i = K ( b r + 2 , , b m ) K ( b r + 3 , , b m ) = K ( b r + 2 1 , b r + 3 , , b m ) ,
i.e., it is the denominator of the continued fraction [ b r + 2 1 , , b m ] , or equivalently, s ( r + 1 ) for k = i = 1 r 1 α i + ( α r 1 ) + 1 + 3 = i = 1 r α i + 3 , as we want to demonstrate. To conclude, if r is even, then p 2 i 1 / q 2 i 1 = [ α 1 , , α r 1 , 2 ] , and changing the sign to equality q 2 i 1 · p q · p 2 i 1 results in equivalent reasoning. □

References

  1. Hardy, G.H.; Wright, E.M.; Heath-Brown, D.R.; Silverman, J.H. An Introduction to the Theory of Numbers, 6th ed.; Oxford University Press: Oxford, UK, 2008. [Google Scholar]
  2. Niqui, M. Exact arithmetic on the Stern-Brocot tree. J. Discret. Algorithms 2007, 5, 356–379. [Google Scholar] [CrossRef] [Green Version]
  3. Vuillemin, J. Exact real computer arithmetic with continued fractions. In Proceedings of the 1988 ACM Conference on LISP and Functional Programming, Snowbird, UT, USA, 25–27 July 1988; pp. 14–27. [Google Scholar]
  4. Angell, D. Irrationality and Transcendence in Number Theory; Chapman and Hall/CRC: Boca Raton, FL, USA, 2022. [Google Scholar]
  5. Adamczewski, B.; Bugeaud, Y. On the complexity of algebraic numbers, II. Continued fractions. Acta Math. 2005, 195, 1–20. [Google Scholar] [CrossRef]
  6. Khinchin, A.Y. Continued Fractions; Translated from the Third (1961) Russian Edition. Reprint of the 1964 Translation Edition; Dover Publications: New York, NY, USA, 1997. [Google Scholar]
  7. Bonnano, C.; Isola, S. Orderings of the rationals and dynamical systems. Colloq. Math. 2009, 116, 165–189. [Google Scholar] [CrossRef]
  8. Calero-Sanz, J.; Luque, B.; Lacasa, L. Haros graphs: An exotic representation of real numbers. J. Complex Netw. 2022, 10, cnac043. [Google Scholar] [CrossRef]
  9. Lacasa, L.; Luque, B.; Ballesteros, F.; Luque, J.; Nuño, J.C. From time series to complex networks: The visibility graph. Proc. Natl. Acad. Sci. USA 2008, 105, 4972–4975. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  10. Luque, B.; Lacasa, L.; Ballesteros, F.J.; Robledo, A. Feigenbaum Graphs: A Complex Network Perspective of Chaos. PLoS ONE 2011, 6, 1–8. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  11. Luque, B.; Lacasa, L.; Ballesteros, F.J.; Robledo, A. Analytical properties of horizontal visibility graphs in the Feigenbaum scenario. Chaos Interdiscip. J. Nonlinear Sci. 2012, 22, 013109. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  12. Núnez, A.M.; Luque, B.; Lacasa, L.; Gómez, J.P.; Robledo, A. Horizontal visibility graphs generated by type-I intermittency. Phys. Rev. E 2013, 87, 052801. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  13. Jones, G.A.; Singerman, D.W.K. The modular group and generalized Farey graphs. Groups St. Andrews 1989 1991, 2, 316. [Google Scholar]
  14. Kurkofka, J. The Farey graph is uniquely determined by its connectivity. J. Comb. Theory Ser. B 2021, 151, 223–234. [Google Scholar] [CrossRef]
  15. Kurkofka, J. Ubiquity and the Farey graph. Eur. J. Comb. 2021, 95, 103326. [Google Scholar] [CrossRef]
  16. Luque, B.; Lacasa, L. Canonical horizontal visibility graphs are uniquely determined by their degree sequence. Eur. Phys. J. Spec. Top. 2017, 226, 383–389. [Google Scholar] [CrossRef] [Green Version]
  17. Flanagan, R.; Lacasa, L.; Nicosia, V. On the spectral properties of Feigenbaum graphs. J. Phys. A Math. Theor. 2019, 53, 025702. [Google Scholar] [CrossRef] [Green Version]
  18. Tsigaridas, E.P.; Emiris, I.Z. Univariate polynomial real root isolation: Continued fractions revisited. In Proceedings of the European Symposium on Algorithms, Zurich, Switzerland, 11–13 September 2006; Springer: Berlin/Heidelberg, Germany, 2006; pp. 817–828. [Google Scholar]
  19. Welch, L.; Scholtz, R. Continued fractions and Berlekamp’s algorithm. IEEE Trans. Inf. Theory 1979, 25, 19–27. [Google Scholar] [CrossRef] [Green Version]
  20. Cvitanovic, P.; Shraiman, B.; Söderberg, B. Scaling laws for mode lockings in circle maps. Phys. Scr. 1985, 32, 263. [Google Scholar] [CrossRef]
  21. Muir, T.; Metzler, W.H. A Treatise on the Theory of Determinants; Courier Corporation: New York, NY, USA, 2003. [Google Scholar]
Figure 1. Six levels of the Haros graph tree with Haros graphs G p / q associated with the corresponding rational fractions p / q (due to space constraints, only two of these are shown at the sixth level). The first level is formed by two copies of the initial graph G 0 . The graph operator merges the two nearby extreme nodes, adding a connection to the resulting graph that connects the new extreme nodes. On the left, the Haros graph G 2 / 7 is generated by concatenating G 1 / 4 (blue) and G 1 / 3 (red), i.e., G 2 / 7 = G 1 / 4 G 1 / 3 .
Figure 1. Six levels of the Haros graph tree with Haros graphs G p / q associated with the corresponding rational fractions p / q (due to space constraints, only two of these are shown at the sixth level). The first level is formed by two copies of the initial graph G 0 . The graph operator merges the two nearby extreme nodes, adding a connection to the resulting graph that connects the new extreme nodes. On the left, the Haros graph G 2 / 7 is generated by concatenating G 1 / 4 (blue) and G 1 / 3 (red), i.e., G 2 / 7 = G 1 / 4 G 1 / 3 .
Mathematics 11 00092 g001
Figure 2. Haros graph G 10 / 23 . As 10 / 23 = [ 2 , 3 , 3 ] , it is clear that the binary symbolic path to reach this Haros graph is L L R R R L L = L 2 R 3 L 3 1 . According to the boundary node convention, the extreme nodes are identified as a single boundary node, while the total number of degrees is maintained. Then, the degree sequence is [ 3 , 2 , 5 , 2 , 5 , 2 , 8 , 3 , 2 , 5 , 2 , 5 , 2 , 8 , 3 , 2 , 5 , 2 , 5 , 2 , 5 , 2 , 5 + 5 = 10 ] .
Figure 2. Haros graph G 10 / 23 . As 10 / 23 = [ 2 , 3 , 3 ] , it is clear that the binary symbolic path to reach this Haros graph is L L R R R L L = L 2 R 3 L 3 1 . According to the boundary node convention, the extreme nodes are identified as a single boundary node, while the total number of degrees is maintained. Then, the degree sequence is [ 3 , 2 , 5 , 2 , 5 , 2 , 8 , 3 , 2 , 5 , 2 , 5 , 2 , 8 , 3 , 2 , 5 , 2 , 5 , 2 , 5 , 2 , 5 + 5 = 10 ] .
Mathematics 11 00092 g002
Figure 3. The numerical computation of the degree distribution P ( k , x ) as a function of x for k = 5 , 6 , 7 , 8 , and for all Haros graphs G x with x F 1000 . The red points represent removable discontinuities, whereas the solid black lines shows the piecewise linear behavior. Due to the lack of space, only the left upper panel of P ( 5 , x ) accurately shows that the red points represent the Haros graph located in levels κ , for κ = 5 3 = 2 , i.e., the Haros graph G 1 / 2 (without nodes of degree k = 5 ), and for κ = 5 2 = 3 , i.e., the Haros graphs G 1 / 3 , G 2 / 3 , where the degree k = 5 is located at the boundary node.
Figure 3. The numerical computation of the degree distribution P ( k , x ) as a function of x for k = 5 , 6 , 7 , 8 , and for all Haros graphs G x with x F 1000 . The red points represent removable discontinuities, whereas the solid black lines shows the piecewise linear behavior. Due to the lack of space, only the left upper panel of P ( 5 , x ) accurately shows that the red points represent the Haros graph located in levels κ , for κ = 5 3 = 2 , i.e., the Haros graph G 1 / 2 (without nodes of degree k = 5 ), and for κ = 5 2 = 3 , i.e., the Haros graphs G 1 / 3 , G 2 / 3 , where the degree k = 5 is located at the boundary node.
Mathematics 11 00092 g003
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Calero-Sanz, J. On the Degree Distribution of Haros Graphs. Mathematics 2023, 11, 92. https://doi.org/10.3390/math11010092

AMA Style

Calero-Sanz J. On the Degree Distribution of Haros Graphs. Mathematics. 2023; 11(1):92. https://doi.org/10.3390/math11010092

Chicago/Turabian Style

Calero-Sanz, Jorge. 2023. "On the Degree Distribution of Haros Graphs" Mathematics 11, no. 1: 92. https://doi.org/10.3390/math11010092

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop