<?xml version="1.0" encoding="UTF-8"?>

<record version="6" id="3870">
 <title>Pell's equation and simple continued fractions</title>
 <name>PellsEquationAndSimpleContinuedFractions</name>
 <created>2003-01-04 10:56:17</created>
 <modified>2006-10-10 01:16:20</modified>
 <type>Theorem</type>
 <creator id="1234" name="Thomas Heye"/>
 <author id="1234" name="Thomas Heye"/>
 <classification>
	<category scheme="msc" code="11D09"/>
 </classification>
 <preamble>% this is the default PlanetMath preamble.  as your knowledge
% of TeX increases, you will probably want to edit this, but
% it should be fine as is for beginners.

% almost certainly you want these
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{amsfonts}

% used for TeXing text within eps files
%\usepackage{psfrag}
% need this for including graphics (\includegraphics)
%\usepackage{graphicx}
% for neatly defining theorems and propositions
\usepackage{amsthm}
% making logically defined graphics
%\usepackage{xypic}

% there are many more packages, add them here as you need them

% define commands here
\newtheorem{thm}{Theorem}</preamble>
 <content>\begin{thm}
Let $d$ be a positive integer which is not a perfect square, and let $(x,y)$ be
a solution of $x^2 -dy^2 =1$. Then $\frac{x}{y}$ is a convergent in the simple
continued fraction expansion of $\sqrt{d}$.
\end{thm}
\begin{proof}
Suppose we have a non-trivial solution $x,y$ of Pell's equation, i.e. $y \neq
0$. Let $x,y$ both be positive integers. From
\[\left(\frac{x}{y}\right)^2 =d +\frac{1}{y^2}\]
we see that $\left(\frac{x}{y}\right)^2 &gt; d$, hence $\frac{x}{y} &gt;
\sqrt{d}$. So we get
\begin{eqnarray*}
\left\vert \frac{x}{y} -\sqrt{d}\right\vert =\frac{1}{y^2\left(\frac{x}{y}
+\sqrt{d}\right)} &amp; &lt; \frac{1}{y^2\left(2\sqrt{d}\right)} \\
&amp; &lt; \frac{1}{2y^2}.
\end{eqnarray*}
This implies that $\frac{x}{y}$ is a convergent of the continued fraction of
$\sqrt{d}$.
\end{proof}</content>
</record>
