wu :: forums
« wu :: forums - Pell of the form a*x^2 - b*y^2 »

Welcome, Guest. Please Login or Register.
Nov 21st, 2024, 2:24pm

RIDDLES SITE WRITE MATH! Home Home Help Help Search Search Members Members Login Login Register Register
   wu :: forums
   riddles
   medium
(Moderators: Grimbal, Eigenray, william wu, towr, Icarus, SMQ, ThudnBlunder)
   Pell of the form a*x^2 - b*y^2
« Previous topic | Next topic »
Pages: 1  Reply Reply Notify of replies Notify of replies Send Topic Send Topic Print Print
   Author  Topic: Pell of the form a*x^2 - b*y^2  (Read 689 times)
Christine
Full Member
***





   


Posts: 159
Pell of the form a*x^2 - b*y^2  
« on: Mar 15th, 2016, 2:35pm »
Quote Quote Modify Modify

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
IP Logged
pex
Uberpuzzler
*****





   


Gender: male
Posts: 880
Re: Pell of the form a*x^2 - b*y^2  
« Reply #1 on: Mar 16th, 2016, 3:03am »
Quote Quote Modify Modify

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:
 ......x  .....y  .rhs  (annoying dots added to keep columns aligned)
 
 ......3  .....1  -100
 ......4  .....1  ..89
 ......7  .....2  .-49
 .....25  .....7  ..68
 .....57  ....16  .-85
 .....82  ....23  .101
 ....139  ....39  .-36
 ....638  ...179  .125
 ....777  ...218  .-49
 ...2969  ...833  ..20
 ..27498  ..7715  .-67
 ..57965  .16263  .108
 ..85463  .23978  .-49
 .314354  .88197  ..45
 1342879  376766  ..-1
so x=1342879, y=376766 is a solution.
« Last Edit: Mar 16th, 2016, 3:09am by pex » IP Logged
Grimbal
wu::riddles Moderator
Uberpuzzler
*****






   


Gender: male
Posts: 7527
Re: Pell of the form a*x^2 - b*y^2  
« Reply #2 on: Mar 18th, 2016, 7:33am »
Quote Quote Modify Modify

For approximating fractions, there is the Stern-Brocot tree, which is probably the same in different terms.
IP Logged
Pages: 1  Reply Reply Notify of replies Notify of replies Send Topic Send Topic Print Print

« Previous topic | Next topic »

Powered by YaBB 1 Gold - SP 1.4!
Forum software copyright © 2000-2004 Yet another Bulletin Board