Continued fractions

Continued fractions are a way to represent positive real numbers as with and for . For example, you may have heard that is approximately , which comes from the continued fraction approximation . In fact,

where agrees with to four decimal places. In fact, for almost all numbers, the continued fraction converges faster than the decimal expansion.

The floor function method of generating continued fractions also works for irrational numbers like where the Euclidean algorithm version does not make sense.

You probably noticed in the example that we have an issue with uniqueness that come from the fact that and in general, . To deal with this, we typically require the last . Thus, .

A very different look at decimal numbers

Here is a very different way of generating decimal expansions using ideas from dynamical systems. The idea is to divide the unit interval into intervals where . If a number , then the first digit of the decimal expansion is . For example, when , the interval is and the first digit of the decimal expansion of every in the interval is .

On the following graph of the real line, I marked the endpoints of each interval, and about the interval, I write the decimal expansion for each in the interval. ie, above the interval .

To get the second digit of the decimal expansion of , we break each of these intervals into 10 smaller intervals . For each For example, when , the interval is and the first two digits of the decimal expansion of every .

Here is a zoomed in version of the picture:

Determining the rest of the decimal expansion involves iterating this process. (Note: no dynamical system has actually appeared, but this idea comes from that area of mathematics that uses the function to find the decimal expansion of ).

Back to continued fractions

We can use a similar idea from dynamical systems for continued fractions. Now we break up based on the first digit of the continued fraction expansion, which can be any positive integer. Thus, we get an infinite number of intervals where each has continued fraction expansion . For example, when , the interval is and the first digit of the continued fraction expansion every in the interval is .

On the following graph of the real line, I marked the endpoints of the largest six intervals, and about the interval, I write the continued fraction expansion for each in the interval. ie, above the interval . Notice that these intervals shrink very quickly.

To get the second digit of the continued fraction expansion of , we break each of these intervals into smaller intervals . For each For example, when , the interval is and the first two digits of the continued fraction expansion of every .

Here is the picture with some of the second level intervals:

and a zoomed in version with some of the third level: Noticed that even zoomed in a lot, it becomes very difficult to draw the third level intervals.