Scaling in simple continued fraction
Avinash Chand Yadav

TL;DR
This paper investigates the statistical properties of simple continued fraction elements for certain irrational numbers, revealing a power-law distribution and suggesting a sample space reducing process as the underlying mechanism.
Contribution
It provides the first numerical evidence of power-law behavior in continued fraction elements and proposes a novel explanation via sample space reducing processes.
Findings
Continued fraction elements follow a power-law distribution with exponent -2.
Elements appear uncorrelated and robust to precision changes.
Sample space reducing process may explain the observed scaling.
Abstract
We consider a class of real numbers, a subset of irrational numbers and certain mathematical constants, for which the elements in the simple continued fraction appears to be random. As an illustrative example, one can consider , where 's are the continued fraction elements computed with an exact value of up to precision. We numerically compute probability distribution for the elements and observe a striking power-law behavior . The statistical analysis indicates that the elements are uncorrelated and the scaling is robust with respect to the precision. Our arguments reveal that the underlying mechanism generating such a scaling may be sample space reducing process.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Scaling in simple continued fraction
Avinash Chand Yadav
Department of Physics and Astronomical Sciences, Central University of Jammu, Samba 181 143, India
Abstract
We consider a class of real numbers, a subset of irrational numbers and certain mathematical constants, for which the elements in the simple continued fraction appears to be random. As an illustrative example, one can consider , where ’s are the continued fraction elements computed with an exact value of up to precision. We numerically compute probability distribution for the elements and observe a striking power-law behavior . The statistical analysis indicates that the elements are uncorrelated and the scaling is robust with respect to the precision. Our arguments reveal that the underlying mechanism generating such a scaling may be sample space reducing process.
I Introduction
In many systems, the observable of interest is typically a random variable satisfying probability distribution of the power-law form
[TABLE]
where is a critical exponent Newman_2005 ; Sornette_2006 ; Miguel_2018 . Striking examples have been seen in a diverse settings, ranging from city size distribution to frequency distribution of words in a typical text, and critical avalanches observed in sandpiles Bak_1996 ; Bak_1987 ; Yadav_2012 or neuronal activity Levina_2007 ; Manchanda_2013 ; Jonathan_2017 . The Eq. (1) remains unchanged under the scaling of its argument. The scale invariance implies lack of a characteristic length scale. In other words, the events of all size are possible; while the smaller size events appear more frequent, the larger size events occur rarely, but may be catastrophic.
Uncovering a peculiar system exhibiting emergent scaling as well as origin of the power-law remains a topic of continuing interest in the study of complex systems. Note that the Gaussian statistics emerge naturally as a consequence of a distinct origin that is ‘central limit theorem’. On the contrary, the occurrence of power-law may have a few different dynamical routes. The most common underlying mechanisms include: Criticality Djordje_2011 ; Knecht_2012 ; Munn_2018 ; Kinouchi_2006 , self-organized criticality Bak_1996 ; Bak_1987 ; Yadav_2012 , first passage properties for random walk Redner_2001 ; Dickman_2001 ; Avinash_2018 , preferential process Albert_1999 , multiplicative stochastic process with constraint Levy_1996 ; Takayasu_1997 ; Yamamoto_2012 ; Yamamoto_2014 , and sample space reducing (SSR) process Murtra_2015 ; Murtra_2017 ; Murtra_2018 ; Yadav_2016 ; Yadav_2017 .
For certain processes such as sentence formation to fragmentation or technological innovation to biological extinction, the sample space, the set of accessible states, dynamically evolves as a function of time. In particular, the sample space reducing stochastic process is of considerable interest, as this offers an explanation of Zipf’s law. The Eq. (1) describes the standard Zipf’s law, if is a positive integer and . However, a proper balance between SSR (relaxing) and expanding (driving) processes can explain other interesting distributions Murtra_2018 .
A power-law probability function with the critical exponent 2 has been observed in a variety of contexts with different dynamical origin. It is worthwhile to mention few examples to see a contrast. Instances include cascade size distribution for forest-fire model Drossel_1993 and number theoretic division model Luque_2008 , duration time distribution for critical branching process Zapperi_1995 , maximum velocity distribution of avalanches Goldenfeld_2012 , and size distribution for fragmentation of a discrete dimension rectangle into sticks (rectangles with unit width)Krapivsky , to name a few.
The continued fraction is one of the way for expressing real numbers. Although the continued fraction has extensively been studied in mathematics with several applications such as solution of quadratic equation and Pell’s equation, it is also a topic of interest in the studies of dynamical systems CF_Dough_Hensely ; Bosma . In this paper, we show the existence of scaling feature associated with continued fraction of a specific class of real numbers. The remarkable scaling can be viewed as a signature of Zipf’s law, and the comprehensive numerical results adequately support this claim. Our arguments plausibly offer insight that the possible dynamical origin of such scaling could be SSR.
The scaling behavior in the present context can be easily recognized: Consider to be a random variable with uniform distribution. Let the simple continued fraction of the random number be denoted as . The limiting probability is given by the so-called Gauss-Kuzmin distribution Gauss_Kuzmin
[TABLE]
The Eq. (2) is also valid for a generic real number belonging to a set (see Sec. II B). In fact, the asymptotic form of the distribution reduces to Zipf’s law, for large . Despite this simplicity, the emergence of scaling behavior has not been adequately emphasized. However, the numerical results clearly show the existence of the scaling, computed for sufficiently large that offers a reasonable statistics, especially for large .
The organisation of the paper is as follows: In Sec. II we recall the definition of continued fraction, algorithm, and interesting properties. A subsection is included here to mention relevant real numbers. The numerical results for probability distribution and spectral properties are presented in Sec. III. Section IV presents arguments that explain the emergence of scaling behavior. Finally, the paper concludes with a summary in Sec. V.
II Continued fraction
A real number can be expressed in various ways. The most common way is decimal representation. In this case, the real number looks as
[TABLE]
where is the ith digit in the decimal expression. If the real number is irrational, then the corresponding rational approximation with precision is expressed by Eq. (3).
Besides the decimal representation, a mathematically more elegant expression is continued fraction expansion:
[TABLE]
where the elements and are positive integers. When , the general continued fraction reduces to simple continued fraction (SCF). In the remaining paper, the focus is only on the SCF. Due to typographical reason, the SCF is conveniently denoted as
[TABLE]
where is the number of elements in the expansion. Truncating the SCF expansion at th step results in a convergent, which provides a rational approximation of the real number.
The SCF is slightly efficient with respect to the decimal representation. This is a consequence of Lochs’ theorem Lochs : For almost all , , as
[TABLE]
When an irrational number is terminated at finite precision, this may lead to an error in the computation of the SCF. Express in the decimal representation such that . Take such that and . The common terms in the SCF for both and are in fact the elements of the SCF for .
Let us look at possible classes of the SCF expansion with striking example(s):
- •
Class-I (Finite): . For rational numbers, the SCF expansion is finite.
- •
Class-II (Infinite with periodic or predictable pattern): , golden ratio: , and . For irrational numbers, the SCF expansion is nonterminating. In some cases, the pattern is either periodic or predictable. For , the pattern repeats with a period of 3, except that 2 is added to one of the terms in each cycle.
- •
Class-III (Infinite with random pattern): . Here, the nonterminating pattern appears irregular or random.
II.1 Algorithms for computing the SCF
For computing the SCF expansion of a real number, the commonly employed algorithms are given below:
(A1) Step-1: Start with . Step-2: Define , where is the floor function. Step-3: Replace and go to Step-2. Iterate the process recursively until . Mathematically, the algorithm can be expressed as
[TABLE]
The process terminates when .
(A2) If the real number is expressed as , the Euclidean algorithm can be applied to compute the SCF:
[TABLE]
where the quotient ’s are the elements of the SCF and ’s are remainder. The process stops if . Interestingly .
(A3) The algorithm (A2) can be alternatively interpreted geometrically: Start with a rectangle of dimension . Construct squares of size and remove them. The remaining region forms a rectangle of area . Again form squares of size and cut them. The remaining area becomes a rectangle of dimension . The procedure is repeated until no rectangle is left. Note that .
II.2 Examples of real numbers that belong to
As shown in Sec. III, the characteristics of the SCF exhibit scaling feature for certain mathematical constants. It is useful to briefly mention a few. However, it is mathematically not known if the below mentioned constants are irrational.
- •
Catalan :
[TABLE]
- •
Euler-Gamma :
[TABLE]
In this paper, our main focus is on those real numbers for which the elements of the SCF appear to be random. Basically, these numbers belong to Class-III. Let us denote the set of such real numbers as . It is noted that the set includes certain irrational numbers and some mathematical constants: , where and are real numbers.
III Numerical Results
Wolfram Mathematica software can be readily used to compute , the elements of a real number in it’s SCF representation. To compute the SCF, the following function is used in Mathematica: ContinuedFraction[], where the real number with precision is computed with a function N[. The methods of probability and statistics have been used to characterize the irregular pattern appearing in the sequence.
First we focus on the probability distribution function (PDF) . Figure 1 shows the plot of the elements with its index and the corresponding probability distribution. In order to estimate the critical exponent, more accurately, we present log binned data. In Fig. 2, the same distribution is shown as histogram, where the precision varies from to . All different curves collapse onto a single curve, indicating robustness of the PDF with respect to the precision. The same histogram is plotted in Fig. 3, with different real numbers belonging to the set . This result reveals an interesting feature that the power law is a universal behavior. Moreover, the detailed numerical results, not shown, confirm emergence of the scaling feature for irrational numbers constructed with by applying both linear [shift and scaling: ] and nonlinear operations like {}.
We also compute power spectrum implementing Fast Fourier Transform method for the sequence of the elements, obtained from the SCF of the real numbers . Flat curves shown in Fig. 4 imply the elements are uncorrelated. Moreover, introduce as the number of distinct elements appearing in the SCF. If the entry occurring at step is distinct, then set the counter on as . Thus, . Figure 5 shows the plot of that grows sublinearly: , with being growth exponent. The algebraic growth with non-trivial exponent is a signature of underlying scale-free distribution, while it may have a different form for other cases; for example, this eventually saturates for Bernoulli distribution.
IV Arguments for the scaling
In order to understand the Zipf’s law, heuristically, consider algorithm A1. Let . Note that and . Clearly . Assuming to be a random variable with uniform distribution for , and using probability chain rule, one can immediately see that .
A correspondence can be invoked between the sample space reducing stochastic process and the simple continued fraction of a real number. The SSR can be easily understood in terms of fragmentation type events: Consider a stick of size , and break it into two integer parts randomly and uniformly. Take one part, and repeat the breaking event successively. The process is iterated till the size becomes 1. The mapping is evident if the geometrical interpretation of the SCF (see algorithm A3) is viewed. Clearly, splitting a discrete rectangle into a smaller one successively, and eventually stopping when no rectangle can be formed, qualitatively describes the SSR mechanism. This mapping is useful in the sense that it can offer an explanation for the existence of Zipf’s law associated with the SCF.
Writing Eq. (8) for subscript and multiplying by , the size evolution of rectangle can be mathematically expressed as
[TABLE]
where is the area of square. Note that , and . The quantity in which we are interested is :
[TABLE]
Since is always positive, . If , it is assumed that behaves as uniformly distributed random variable. Consequently, the satisfies the power-law distribution.
V Summary
In summary, we have revealed the existence of scaling or Zipf’s law associated with the simple continued fraction of a class of real numbers that include a subset of irrational numbers and some mathematical constants. Our simple arguments offer an insight for the underlying mechanism, and it has been realized that the sample space reducing process may be responsible for the emergence of the scaling. Note that the subset of irrational numbers, for which the SCF exhibits randomness, is non-denumerable. However, a remark can be drawn regarding the universality class: The observation of power-law with critical exponent 2 represents a universal behavior.
ACKNOWLEDGMENT
ACY would like to acknowledge support through a grant ECR/2017/001702 funded by SERB, DST, Government of India.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1(1) M. E. J. Newman, Power laws, Pareto distributions and Zipf’s law, Contemp. Phys. 46 , 323 (2005).
- 2(2) D. Sornette, Critical Phenomena in Natural Sciences: Chaos, Fractals, Self-organization and Disorder: Concepts and Tools (Springer, Berlin, 2006).
- 3(3) M. A. Muñoz, Colloquium: Criticality and dynamical scaling in living systems, Rev. Mod. Phys. 90 , 031001 (2018).
- 4(4) P. Bak, How Nature Works: The Science of Self Organized Criticality (Copernicus Press, New York, 1996).
- 5(5) P. Bak, C. Tang, and K. Wiesenfeld, Self-organized criticality: An explanation of the 1 / f 1 𝑓 1/f noise, Phys. Rev. Lett. 59 , 381 (1987).
- 6(6) A. C. Yadav, R. Ramaswamy, and D. Dhar, Power spectrum of mass and activity fluctuations in a sandpile, Phys. Rev. E 85 , 061114 (2012).
- 7(7) A. Levina, J. M. Herrmann, and T. Geisel, Dynamical synapses causing self-organized criticality in neural networks, Nat. Phys. 3 , 857 (2007).
- 8(8) K. Manchanda, A. C. Yadav, and R. Ramaswamy, Scaling behavior in probabilistic neuronal cellular automata, Phys. Rev. E 87 , 012704 (2013).
