Quadratic irrational are solutions to quadratic equations with integer coefficients.
Continued fractions: Expansion of the form
If then
Relation to GL_2 (invertible integers matrices):
Quadratic Irrationals and periodic continued fractions:
Theorem: An infinite integral continued fraction is periodic if and only if it represents a quadratic irrational.
Proof:
(Easy)
Multiplying it out, we see satisfies a quadratic equation. Similarly we have
which also satisfies a quadratic.
(Lagrange)
Assume that we have
Substitute the above equation to get,
(Symmetric Square representation!)
All the shifts satisfy quadratic polynomials with bounded coefficients, hence only finitely many possibilities for the shifts. Some two of them have to be equal- Hence periodic!
——————–
What kind of quadratic irrational have purely periodic continued frations (no initial non- periodic string)? Answer: Reduced and the conjugate
Purely periodic implies reduced is easy to see from the following:
Theorem: If is a reduced quadratic irrational, then the continued fraction for is purely periodic.
All the shifts
are also reduced.
But it’s easy to see that the number of reduced quadratic irrationals are bounded (in terms of D), hence the sequence is periodic. But to get the full periodicity, use the conditions for reduced quadratics, to get more and more periodicity-eventually getting fully periodic.
For a reduced quadratic irrational, and it’s conjugate, we have
Pell’s equation:
How does the continued fraction of look? How are the solutions to the Pell’s equations related to the continued fractions and the convergents?
is reduced and hence purely periodic.
Therefore is the form of the continued fraction.
In fact, we see that
So the repeating part of the continued fraction is a palindromic block (except the last digit).
Therefore convergents in the continued fraction expansion of give solutions to Pell’s equation.
Algorithm to compute continued fraction expansion for :