Methods of Computing Square Roots - Continued Fraction Expansion

Continued Fraction Expansion

It has been suggested that this article or section be merged into Periodic continued fraction. (Discuss)

Quadratic irrationals (numbers of the form, where a, b and c are integers), and in particular, square roots of integers, have periodic continued fractions. Sometimes what is desired is finding not the numerical value of a square root, but rather its continued fraction expansion. The following iterative algorithm can be used for this purpose (S is any natural number that is not a perfect square):

Notice that mn, dn, and an are always integers. The algorithm terminates when this triplet is the same as one encountered before. The expansion will repeat from then on. The sequence is the continued fraction expansion:

Read more about this topic:  Methods Of Computing Square Roots

Famous quotes containing the words continued, fraction and/or expansion:

    Madame, all stories, if continued far enough, end in death, and he is no true-story teller who would keep that from you.
    Ernest Hemingway (1899–1961)

    The mother as a social servant instead of a home servant will not lack in true mother duty.... From her work, loved and honored though it is, she will return to her home life, the child life, with an eager, ceaseless pleasure, cleansed of all the fret and fraction and weariness that so mar it now.
    Charlotte Perkins Gilman (1860–1935)

    The fundamental steps of expansion that will open a person, over time, to the full flowering of his or her individuality are the same for both genders. But men and women are rarely in the same place struggling with the same questions at the same age.
    Gail Sheehy (20th century)