Skip to main content
Library homepage
 

Text Color

Text Size

 

Margin Size

 

Font Type

Enable Dyslexic Font
Mathematics LibreTexts

8.3: Continued fractions

This page is a draft and is under active development. 

( \newcommand{\kernel}{\mathrm{null}\,}\)

Definition: Continued fractions

A simple continued fraction is of the form, denoted by [a0,a1,], a0+1a1+1a2+,

where a0,  a1,  a2, Z. Continued fraction has been studied extensively, but we will only explore some of them in this class.

Example 8.3.1:

A simple finite continued fraction 12=[1,1]=0+11+11

A simple infinite continued fraction: Golden Ratio ϕ=1+52=[1,1,]=1+11+11+,

which can be found using x=1+11+x.

 

 

Note

Rational numbers have a simple finite continued fraction, and irrational numbers have an infinite continued fraction.

 Writing Continued Fractions

Let’s explore the process of writing continued fractions using two examples:

Example 8.3.2

Starting with the fraction 4717=2+1317

This expression indicates that 4717 is equivalent to the whole number 2 plus a fraction 1317.

Next, we can express it as 4717=2+11713

Here, we’ve written 4717 as the whole number 2 plus the reciprocal of the fraction 1713.

Continuing, we have 4717=2+11+413

Now, the continued fraction form includes the whole number 2 and a fraction where the denominator is the sum of 1 and 413.

4717=2+11+113

Here, we express 4717 as 2 plus a fraction where the denominator itself is a continued fraction.
We can further express it as 4717=2+11+13+14
The final form illustrates the continued fraction expansion of 4717 with multiple levels of nesting.

Example 8.3.3

Now, let’s consider the square root of 2: 2=1+(21)

Here, we expressed that the square root of 2 equals 1+(21). Next, we write: 2=1+11+2
In this form, the square root of 2 is written as 1 plus the reciprocal of the quantity 1+2. Now replace 2 with what we proved it to equal in equation (11): 2=1+11+1+11+2
Simplifying gives us: 2=1+12+11+2
Continue with replacing 2 with what we proved it to equal in equation (11): 2=1+12+11+1+11+2
This leads to: 2=1+12+12+11+2
Finally, we have: 2=1+12+12+1
This final form illustrates the continued fraction expansion of the square root of 2 with repeated nesting. The ellipsis () represents an infinite continuation of the pattern.

Example 8.3.4

Using the Euclidean algorithm to find a simple finite continued fraction

Let's explore the following example:

Consider 2520154.

By Euclidean algorithm we have,

2520=(16)(154)+56

154=(2)(56)+42

56=(1)(42)+14

42=(3)(14)+0.

The quotients give us the simple finite continued fraction [16,2,1,3]. That is

2520154=16+12+11+13.

Continued fractions are more structured and easier to manipulate for certain mathematical operations, especially in number theory problems. While familiar, decimals can be challenging for analysis and computation.


8.3: Continued fractions is shared under a CC BY-NC-SA 4.0 license and was authored, remixed, and/or curated by LibreTexts.

Support Center

How can we help?