### There's a Limit

Explore the continued fraction: 2+3/(2+3/(2+3/2+...)) What do you notice when successive terms are taken? What happens to the terms if the fraction goes on indefinitely?

### Not Continued Fractions

Which rational numbers cannot be written in the form x + 1/(y + 1/z) where x, y and z are integers?

### Comparing Continued Fractions

Which of these continued fractions is bigger and why?

# Good Approximations

##### Stage: 5 Challenge Level:

In this example we see continued fractions used to give rational approximations to irrational numbers.

The following solution was done by Ling Xiang Ning, Raffles Institution, Singapore.

Using the quadratic formula to solve the equation

$x^2 = 7x + 1$

$x^2 - 7x - 1 = 0$

I find that $x$ is $(7 \pm \sqrt{53} )/2$. The positive solution is approximately $7.140054945$

This equation is equivalent to $x = 7 + 1/x$ and hence to the sequence of continued fractions mentioned in the problem. These continued fractions give better and better approximations to the positive root of the quadratic equation and I shall do them one by one.

$7+\frac{1}{7} = \frac{50}{7} = 7.142857142$

$7+\frac{1}{7+\frac{1}{7}} = \frac{357}{50} = 7.14$

$7+\frac{1}{7+\frac{1}{7+\frac{1}{7}}} = \frac{2549}{357} = 7.140056022$

$7+\frac{1}{7+\frac{1}{7+\frac{1}{7 + \frac{1}{7}}}} = \frac{18200}{2549} = 7.140054923$

To find a rational approximation to $\sqrt{53}$ we take, as above, $$\frac{7 + \sqrt{53}}{2} \approx \frac{2549}{357}$$

which gives $$\sqrt{53} \approx 2 (\frac{2549}{357}) - 7 \approx \frac{2599}{357}.$$

$5+\frac{1}{5} = \frac{26}{5} = 5.2$

$5+\frac{1}{5+\frac{1}{5}} = \frac{135}{26} = 5.192307692$

$5+\frac{1}{5+\frac{1}{5+\frac{1}{5}}} = \frac{701}{135} = 5.192592592$

$5+\frac{1}{5+\frac{1}{5+\frac{1}{5+\frac{1}{5}}}} = \frac{3640}{701} = 5.192582025$

Similarly, using the equation, $x^2 = 5x + 1$, which has solutions $\frac{5\pm \sqrt{29} }{2}$ , we can find a rational approximation to $\sqrt{29}$. The positive root is approximately $5.192582404$. The sequence of continued fractions is:

As you can see, the sequence of continued fractions gives better and better approximations to the positive root of the quadratic equation. \par Using $\frac{5\pm \sqrt{29}}{2} \approx \frac{3640}{701}$ gives $\frac{3775}{701}$ as a rational approximation to $\sqrt{29}$.
The NRICH Project aims to enrich the mathematical experiences of all learners. To support this aim, members of the NRICH team work in a wide range of capacities, including providing professional development for teachers wishing to embed rich mathematical tasks into everyday classroom practice. More information on many of our other activities can be found here.
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 22, "mathjax_display_tex": 2, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "github"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "english_confidence": 0.9386133551597595, "perplexity_flag": "head"}