Processing math: 100%

Monday, 21 December 2020

Continued Fractions of Square Roots

It's all too easy, using online resources like WolframAlpha or SageMathCell, to extract a variety of information about continued fractions. For example, today I turned 26195 days old and this number is a member of OEIS A042431:


  A042431

Denominators of continued fraction convergents to 743.   



To confirm that 26195 is indeed a member of this sequence, I would normally use SageMathCell but others would turn to WolframAlpha and, using the latter, it can be seen in Figure 1 that 26195 is indeed a denominator in one of the convergent fractions, specifically:71402426195

Figure 1

It's easy to take for granted that the continued fraction of an irrational number that is a square root (like 743) is always periodic. A good explanation of why this is so can be found on this site. In the following, I'm reproducing the site's conversion of 5 to a continued fraction (and practising my LaTeX at the same time).
5=2+x5=(2+x)2=4+4x+x2=4+x(4+x)54=x(4+x)1=x(4+x)x=14+x Thus 5=2+14+x=2+14+14+x=2+14+14+14+x etc.
Clearly, we can write 5=[2;¯4] where the overline represents repetition. In the case of 743, we have [27;¯3,1,7,27,7,1,3,54]. The site referred to earlier goes on to develop a general algorithm for determining the periodic continued fraction of any irrational square root. The table at the end of this post lists the continued fractions of the square roots of the first 99 natural numbers (even those that aren't irrational). 

√n[ a; Period ]
√1[ 1; ]
√2[ 1; 2 ]
√3[ 1; 1, 2 ]
√4[ 2; ]
√5[ 2; 4 ]
√6[ 2; 2, 4 ]
√7[ 2; 1, 1, 1, 4 ]
√8[ 2; 1, 4 ]
√9[ 3; ]
√10[ 3; 6 ]
√11[ 3; 3, 6 ]
√12[ 3; 2, 6 ]
√13[ 3; 1, 1, 1, 1, 6 ]
√14[ 3; 1, 2, 1, 6 ]
√15[ 3; 1, 6 ]
√16[ 4; ]
√17[ 4; 8 ]
√18[ 4; 4, 8 ]
√19[ 4; 2, 1, 3, 1, 2, 8 ]
√20[ 4; 2, 8 ]
√21[ 4; 1, 1, 2, 1, 1, 8 ]
√22[ 4; 1, 2, 4, 2, 1, 8 ]
√23[ 4; 1, 3, 1, 8 ]
√24[ 4; 1, 8 ]
√25[ 5; ]
√26[ 5; 10 ]
√27[ 5; 5, 10 ]
√28[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