Continued Fractions
Ever seen a fraction inside a fraction, nested over and over? That's a continued fraction, a powerful way to represent numbers that reveals hidden patterns and provides the best possible rational approximations for numbers like

What Are Continued Fractions?
A continued fraction is a way of representing a number as a sum of an integer and the reciprocal of another number, which is itself a sum of an integer and another reciprocal, and so on. Instead of expressing a number with a single numerator and denominator, we break it down into a chain of fractions nested inside each other. This unique structure can reveal deep properties of numbers.
Think about the fraction
Now consider a more complex example:
This is a finite continued fraction because the chain of fractions eventually stops. The integers
However, some numbers, like
How Do You Convert a Rational Number into a Continued Fraction?
Converting a standard fraction into a continued fraction is a step-by-step process that uses division and reciprocals. The method is sometimes called the Euclidean Algorithm in disguise. Let's break it down into a repeatable algorithm.
The Algorithm:
- Start with your fraction, for example,
. - Find the integer part of the fraction. This is the first term of your continued fraction. To do this, perform the division:
with a remainder. So, the integer part is . - Write the original fraction as the integer part plus a new, smaller fraction:
. - Now, take the reciprocal of that new fractional part. The reciprocal of
is . - Repeat the process with this new fraction. Go back to step 2 with
. - Continue this cycle until the fractional part becomes zero (or you have enough terms for an approximation).
Let's convert the fraction
Step 1: Start with
Divide
So,
Step 2: Focus on the fractional part,
So now our expression is
Step 3: Repeat the process for the new fraction,
Divide
So,
Step 4: Substitute this back into our main expression:
Step 5: Take the reciprocal of the newest fraction,
Divide
So,
Final Result: Putting it all together, we get our final continued fraction:
What's the Shorthand Notation for Continued Fractions?
Writing out the full nested fraction structure can be cumbersome, especially for longer fractions. To simplify this, mathematicians use a compact shorthand notation. This notation simply lists the integer parts you discovered during the conversion process.
The general form of the notation is:
Here's what each part means:
is the initial integer part of the number. It's special and is separated from the rest by a semicolon. It can be any integer (positive, negative, or zero). are the subsequent integer parts found in the denominators. For a standard continued fraction, these must be positive integers.
Let's look at our previous example,
This is much cleaner and easier to write than the full nested fraction. Reading this notation, you immediately know that
For an infinite continued fraction, the list of terms simply goes on forever. For example, the famous Golden Ratio,
This tells us
How Do You Convert a Continued Fraction Back to a Regular Fraction?
Converting a continued fraction in its shorthand notation back to a simple rational number is a straightforward process of simplification. You start at the very end (the bottom-right of the nested fraction) and work your way back up.
The Algorithm:
- Write out the full nested fraction from the shorthand notation.
- Identify the innermost (bottom-most) part of the fraction.
- Calculate the value of that part. It will be an integer plus a fraction.
- Take the reciprocal of that result and add it to the integer at the next level up.
- Repeat this process of simplifying, taking the reciprocal, and adding, until you reach the top and have a single fraction.
Let's convert the continued fraction
Step 1: Write out the full nested fraction form.
Step 2: Start at the very bottom. The innermost expression is
Let's calculate its value:
Step 3: Substitute this back into the larger fraction.
Step 4: Now simplify the next level up. We have
The expression becomes
Let's calculate its value:
Step 5: Substitute this new value back into the main expression.
Step 6: Once again, we have
Our final calculation is
Final Answer: The continued fraction
What Do Continued Fractions Reveal About Irrational Numbers?
One of the most exciting applications of continued fractions is in the study of irrational numbers. As we've seen, rational numbers always produce finite continued fractions. The reverse is also true: any finite continued fraction will always simplify to a rational number.
This leads to a profound conclusion: irrational numbers are precisely the numbers whose continued fractions are infinite.
This gives us a new way to classify numbers:
- Rational Numbers: Finite continued fractions. Example:
. - Irrational Numbers: Infinite continued fractions. Example:
.
But it gets even more interesting. Some irrational numbers have continued fractions that, while infinite, exhibit a repeating pattern. These are called periodic continued fractions. It turns out that an irrational number has a periodic continued fraction if and only if it is a quadratic irrational—a number that can be written as a solution to a quadratic equation with integer coefficients, like
Let's explore the continued fraction for
Step 1: Find the integer part of
So,
Step 2: Take the reciprocal of the fractional part,
Step 3: Find the integer part of this new number,
So,
Step 4: Notice something amazing. The new fractional part is
Conclusion: The sequence of integer parts is
The continued fraction for
How Do Continued Fractions Give Us the Best Approximations?
Because irrational numbers go on forever, we can't write them down exactly. We rely on approximations like
These approximations are called convergents. A convergent of a continued fraction is the rational number you get by stopping the fraction at a certain term. Each successive convergent gets closer to the true value of the number.
Let's take the continued fraction for
- The 0th convergent is just the first term:
. - The 1st convergent is
. This is the famous approximation for Pi! - The 2nd convergent is
. - The 3rd convergent is
. This is an incredibly accurate approximation.
The magic of convergents is that they are the 'best' rational approximations in a specific sense: no other fraction with a smaller denominator can be closer to the true value. For example,
Convergents of
| Convergent | Notation | Fraction | Decimal Value | Difference from |
|---|---|---|---|---|
| 0th | 3.000000... | ~ -0.14159 | ||
| 1st | 3.142857... | ~ +0.00126 | ||
| 2nd | 3.141509... | ~ -0.000083 | ||
| 3rd | 3.1415929... | ~ +0.00000026 | ||
| 4th | 3.141592653... | ~ -0.0000000005 |
What Are Some Common Mistakes with Continued Fractions?
While the process is algorithmic, there are a few common pitfalls to watch out for when working with continued fractions.
- Forgetting the Reciprocal: When converting a fraction like
, a common error is to continue the process with . You must write it as and continue the process with the reciprocal, . - Notation Errors: The semicolon in
is important. It separates the initial integer part (which can be zero or negative) from the subsequent parts (which must be positive integers). Using all commas can cause confusion. - Calculation Order: When converting from shorthand back to a simple fraction, you must work from the bottom up (or right to left). Starting from the left (e.g., calculating
first in ) will give the wrong answer. Always start at the very end. - Assuming All Irrationals Repeat: It's tempting to think that all irrational numbers have neat, repeating continued fractions like
. This is not true. Only quadratic irrationals have repeating patterns. Numbers like and have infinite, non-repeating continued fractions (though has a different, interesting pattern).
Continued Fractions: A Quick Summary
Here are the key takeaways from our exploration of continued fractions.
- Definition: A continued fraction represents a number as a sequence of nested fractions, with an integer part and a series of reciprocals.
- Conversion To: To convert a rational number
to a continued fraction, repeatedly find the integer part and take the reciprocal of the remaining fractional part. - Conversion From: To convert a continued fraction
back to a rational number, start from the last term and work your way up, simplifying at each step. - Notation: The shorthand
is a compact way to list the integer coefficients. - Rational vs. Irrational: Rational numbers always have finite continued fractions. Irrational numbers always have infinite continued fractions.
- Periodic Fractions: Quadratic irrationals (like
or ) have infinite continued fractions that eventually repeat a pattern. - Convergents: Stopping an infinite continued fraction at any point gives a rational number called a convergent. These convergents are the best possible rational approximations of the original number for a given denominator size.
Frequently Asked Questions
Why are they called 'continued' fractions?
They are called 'continued' because the process of finding the next term can be continued, theoretically forever. For any number, you find its integer part and the fractional remainder, and you 'continue' the process on the reciprocal of that remainder.
Can a term in a continued fraction be zero or negative?
The first term,
What are continued fractions actually used for?
They have many uses in number theory for analyzing the properties of rational and irrational numbers. They are also used in computer science for algorithms, in physics for analyzing gear ratios, and in cryptography. Their ability to produce the best rational approximations is highly valuable.
Does every number have a unique continued fraction?
Yes, with one minor exception. Every irrational number has a unique simple continued fraction. Every rational number has a unique one, provided the last term is not 1. For example,
How is this related to the Euclidean Algorithm?
The process of finding the terms of a continued fraction for a rational number
Is there an easy way to calculate these?
Yes, many scientific and programming calculators have functions to find continued fractions. For manual calculation, the step-by-step division-and-reciprocal method is the most reliable way to find the terms for a rational number.
What does the semicolon in the notation [a₀; a₁, ...] mean?
The semicolon is a notational convention to separate the whole number part of the value (a₀) from the fractional part that follows. It highlights that a₀ can be any integer (positive, negative, or zero), while the subsequent terms (a₁, a₂, etc.) in a simple continued fraction must be positive integers.