|
||
Title: Pell of the form a*x^2 - b*y^2 Post by Christine on Mar 15th, 2016, 2:35pm Could you pleases show how to solve Pell equations of the type: a*x^2 - b*y^2 = +/- 1 for example, 27*x^2 - 343*y^2 = -1 |
||
Title: Re: Pell of the form a*x^2 - b*y^2 Post by pex on Mar 16th, 2016, 3:03am As far as I know, you want x/y to be a convergent of the continued fraction of sqrt(b/a), because the only hope of getting ax2 - by2 close to zero is to try and make (x/y)2 close to b/a. I don't know if there's anything more fancy that can be done than "keep trying until it works"; for your example, I find the following, letting x/y be successive convergents to sqrt(343/27): Code:
|
||
Title: Re: Pell of the form a*x^2 - b*y^2 Post by Grimbal on Mar 18th, 2016, 7:33am For approximating fractions, there is the Stern-Brocot tree, which is probably the same in different terms. |
||
Powered by YaBB 1 Gold - SP 1.4! Forum software copyright © 2000-2004 Yet another Bulletin Board |