Article 56WSA Continued fractions with period 1

Continued fractions with period 1

by
John
from John D. Cook on (#56WSA)

A while back I wrote about continued fractions of square roots. That post cited a theorem that if d is not a perfect square, then the continued fraction representation of d is periodic. The period consists of a palindrome followed by 2d. See that post for details and examples.

One thing the post did not address is the length of the period. The post gave the example that the continued fraction for 5 has period 1, i.e. the palindrome part is empty.

continued_fraction_sqrt5.svg

There's a theorem [1] that says this pattern happens if and only if d = n^2 + 1. That is, the continued fraction for d is periodic with period 1 if and only if d is one more than a square. So if we wanted to find the continued fraction expression for 26, we know it would have period 1. And because each period ends in 226 = 10, we know all the coefficients after the initial 5 are equal to 10.

continued_fraction_sqrt26.svg

[1] Samuel S. Wagstaff, Jr. The Joy of Factoring. Theorem 6.15.

The post Continued fractions with period 1 first appeared on John D. Cook.

oXHFj4_GXdI
External Content
Source RSS or Atom Feed
Feed Location http://feeds.feedburner.com/TheEndeavour?format=xml
Feed Title John D. Cook
Feed Link https://www.johndcook.com/blog
Reply 0 comments