Bill Allombert on Tue, 08 Nov 2011 23:12:13 +0100


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: Generalized Pell's Equation


On Wed, Nov 09, 2011 at 03:27:06AM +0530, angshuman karmakar wrote:
> Hi all,
> 
> I am new to the GP-PARI,I want some help to write a script which will solve
> the Generalized Pe'll's Equation i.e equation of the form x^2-Dy^2=N.Have
> any one wriiten this script before?

Dozen of them, search the mailing list archive.
This is solved by a variation on 
f(D,N)=bnfisintnorm(bnfinit(x^2-D),N)

Cheers,
Bill.