Difference between revisions of "Pell equation"
Line 7: | Line 7: | ||
Claim: If D is a positive integer that is not a perfect square, then the equation x^2-Dy^2 = 1 has a solution in positive integers. | Claim: If D is a positive integer that is not a perfect square, then the equation x^2-Dy^2 = 1 has a solution in positive integers. | ||
− | Proof: Let <math>c_{1}</math> be an integer greater than 1. We will show that there exists integers <math>t_{1}</math> and <math>w_{1}</math> such that <math>t_{1}-w_{1}\sqrt{D} < \frac{1}{c_{1}}</math> with <math>w_{1} \le c_{1}</math>. Consider the sequence <math>l_{k} = [k\sqrt{D}+1] \rightarrow 0 | + | Proof: Let <math>c_{1}</math> be an integer greater than 1. We will show that there exists integers <math>t_{1}</math> and <math>w_{1}</math> such that <math>t_{1}-w_{1}\sqrt{D} < \frac{1}{c_{1}}</math> with <math>w_{1} \le c_{1}</math>. Consider the sequence <math>l_{k} = [k\sqrt{D}+1] \rightarrow 0 \le l_{k}-k\sqrt{d} \le 1</math> <math>\forall</math> <math>0 \le k \le c_{1}</math>. By the pigeon hole principle it can be seen that there exists i, j, and p such that i < j, <math>0\le i, j, p, \le c_{1}</math> and |
+ | <math>\frac{p-1}{c_{1}} < l_{i}-i\sqrt{D} \le \frac{p}{c_{1}}, \frac{p-1}{c_{1}} < l_{j}-j\sqrt{D} \le \frac{p}{c_{1}}\rightarrow (l_{j}-l_{i})-(i-j)\sqrt{D} < \frac{1}{c_{1}} \rightarrow t_{1} = l_{j}-l_{i}, w_{1} = i-j</math>. | ||
+ | So we now have | ||
+ | |||
+ | <math>t_{1}-w_{1}\sqrt{D} < \frac{1}{c_{1}} \rightarrow t_{1}+w_{1}\sqrt{D} < 2w_{1}\sqrt{D}+1\rightarrow t_{1}^2-Dw_{1}^2 < 2\frac{w_{1}}{c_{1}}\sqrt{D}+\frac{1}{c_{1}}<2\sqrt{D}+1</math>. | ||
+ | |||
+ | We can now create a sequence of <math>t_{n}, w_{n}, c_{n}</math> such that <math>t_{n}-w_{n}\sqrt{D} < \frac{1}{c_{n}}, t_{n}^2-Dw_{n}^2 < 2\sqrt{D}+1</math> and <math>t_{n}-w_{n}\sqrt{D} > \frac{1}{c_{n+1}}</math> which implies <math>t_{s} \not= t_{r}</math> <math>\forall</math> r and s. However we can see by the pigeon hole principle that there is another infinite sequence which will be denoted by <math>t_{y_{k}}, w_{y_{k}}</math> such that <math>t_{y_{k}}^2-Dw_{y_{k}}^2 = h < 2\sqrt{D}+1</math>. Once again, from the pigeon hole principle we can see that there exist integers f and g such that <math>t_{y_{f}}^2-Dw_{y_{f}}^2 = t_{y_{g}}^2-Dw_{y_{g}}^2 = H, t_{y_{f}} = t_{y_{g}}</math> mod H, <math>w_{y_{f}} = w_{y_{g}}</math> mod H, and <math>\frac{t_{y_{f}}}{w_{y_{f}}} \not= \frac{t_{y_{g}}}{w_{y_{g}}}</math>. Define <math>X = t_{y_{f}}t_{y_{g}}-Dw_{y_{f}}w_{y_{g}}, Y = t_{y_{f}}w_{y_{g}}-t_{y_{g}}w_{y_{f}}</math> and notice that <math>X^2-DY^2 = H^2</math>. Also note that <math>X = t_{y_{f}}t_{y_{g}}-Dw_{y_{f}}w_{y_{g}} = t_{y_{f}}^2-Dw_{y_{f}}^2 = 0</math> mod H which means that Y = 0 mod H also. We can now see that <math>\frac{X}{H}, \frac{Y}{H}</math> is a nontrivial solution to pell's equation. | ||
== Family of solutions == | == Family of solutions == |
Revision as of 20:55, 21 January 2011
A Pell equation is a type of diophantine equation in the form for a natural number . Generally, is taken to be square-free, since otherwise we can "absorb" the largest square factor into by setting .
Notice that if is a perfect square, then this problem can be solved using difference of squares. We would have , from which we can use casework to quickly determine the solutions.
Alternatively, if D is a nonsquare then there are infinitely many distinct solutions to the pell equation. To prove this it must first be shown that there is a single solution to the pell equation.
Claim: If D is a positive integer that is not a perfect square, then the equation x^2-Dy^2 = 1 has a solution in positive integers.
Proof: Let be an integer greater than 1. We will show that there exists integers and such that with . Consider the sequence . By the pigeon hole principle it can be seen that there exists i, j, and p such that i < j, and
.
So we now have
.
We can now create a sequence of such that and which implies r and s. However we can see by the pigeon hole principle that there is another infinite sequence which will be denoted by such that . Once again, from the pigeon hole principle we can see that there exist integers f and g such that mod H, mod H, and . Define and notice that . Also note that mod H which means that Y = 0 mod H also. We can now see that is a nontrivial solution to pell's equation.
Family of solutions
Given a smallest solution , then all solutions are of the form for natural numbers .
This article is a stub. Help us out by expanding it.
Continued fractions
The solutions to the Pell equation when is not a perfect square are connected to the continued fraction expansion of . If is the period of the continued fraction and is the th convergent, all solutions to the Pell equation are in the form for positive integer .
Generalization
A Pell-like equation is a diophantine equation of the form , where is a natural number and is an integer.