Periodic Continued Fraction — Definition, Formula & Examples
A periodic continued fraction is a continued fraction in which the sequence of partial quotients eventually repeats in a cycle. Every quadratic irrational (like or ) has a periodic continued fraction expansion, and conversely, every periodic continued fraction represents a quadratic irrational.
A continued fraction is called periodic if there exist integers and such that for all . It is written , where the overline denotes the repeating block. If , the fraction is called purely periodic. By Lagrange's theorem, a continued fraction is periodic if and only if it represents a quadratic irrational — a root of a quadratic equation with integer coefficients that is not rational.
Key Formula
Where:
- = A positive integer that is not a perfect square
- = The integer part, equal to $\lfloor \sqrt{d} \rfloor$
- = The period length of the repeating block
How It Works
To find the periodic continued fraction of (where is a positive non-square integer), you repeatedly compute floor values and remainders using the standard continued fraction algorithm. At each step, you track the irrational remainder. Eventually, one of these remainders will repeat a previous value, at which point the partial quotients cycle. The integer part appears first, followed by a repeating block that always ends with .
Worked Example
Problem: Find the periodic continued fraction expansion of .
Step 1: Compute the integer part.
Step 2: Compute the first remainder and its reciprocal. We have , so take the reciprocal: .
Step 3: The integer part of this is . The remainder is . Taking the reciprocal: , so . The remainder after subtracting 2 is , which is the same as the original remainder from Step 2.
Answer:
Why It Matters
Periodic continued fractions are central to solving Pell's equation , a classical problem in number theory. The convergents of at the end of each period provide the fundamental solution. This technique also appears in cryptographic algorithms and in computing best rational approximations to irrational quantities.
Common Mistakes
Mistake: Assuming all continued fractions are periodic.
Correction: Only quadratic irrationals produce periodic continued fractions. Rational numbers have finite continued fractions, and transcendental numbers like and have infinite non-periodic continued fractions.
