Pell’s equation and simple continued fractions
Theorem 1.
Let be a positive integer which is not a perfect square, and let bea solution of . Then is a convergent
in the simplecontinued fraction
expansion of .
Proof.
Suppose we have a non-trivial solution of Pell’s equation, i.e. . Let both be positive integers. From
we see that , hence . So we get
This implies that is a convergent of the continued fraction of.∎