]> Continued Fraction Expansions of Square Roots

Continued Fraction Expansions of Square Roots


Note: This page uses MathML. To view it properly, you need a MathML-enabled browser. You may also have to install some fonts.


The square root of any natural number n can be expressed in the form of a continued fraction. When n is a perfect square, its continued fraction expansion is trivial. But when it is not a perfect square, its continued fraction expansion is both infinite and periodic. We are interested in the latter here.

For more information, see:

The values presented below were computed in 2015 using a Python program.

J.P. Martin-Flatin