Bill Allombert on Tue, 19 Dec 2023 16:38:55 +0100
|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: Pell's equations and beyond
|
- To: pari-users@pari.math.u-bordeaux.fr
- Subject: Re: Pell's equations and beyond
- From: Bill Allombert <Bill.Allombert@math.u-bordeaux.fr>
- Date: Tue, 19 Dec 2023 16:38:49 +0100
- Delivery-date: Tue, 19 Dec 2023 16:38:56 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=math.u-bordeaux.fr; s=2022; t=1703000330; bh=zrWCI4QG6O5/+PyEqevAfOBCi17AdUFHWtpA0bWFq3w=; h=Date:From:To:Subject:References:In-Reply-To:From; b=GQ1AAGxJwMWhBIioLkUxkgMcAXJtvQ6t3yrscWbhZTXC8x+X8cg+lgXeSWP9bWYy1 uOfUakudqIZWyhqL5f4toruP0QqfG5FUPsfl619pWJH6G7gaHEmBnno1fBvrNCOz79 AgylEjtHRD7TgDCXMMdLMjlN5aX/keMPFkEptiKzny8PyU7zW/fwX2rux78jE0Gbhy L6OaEg5fkjMUgesHuzLS8qt9WxmfWS4QI85yt2t/zgDyvfh5Wwi4ROrFTlFZ/mvgm5 IX69D1iSX40m/xtBq5AJfZqkBP5oCjTU+chFv/B9GmMCHCpu49WIdOe61vQXzUSkzM BrlTNe1Rq4/eT2jeFfhb6cUkYEPnUiwacJjovvGfE+gtb8NjdzYfAZtuCnvQCMZEK/ l/0DN9SL+s8110uzHDYRU6qrTTJkFr1wVFGVtF9f7WwvApe/WmGZ1y5mRmA1/isWgQ T+1PoM0Vr9SrzdPGltzOqfNr+d8eqvak4cVgsQnWADLCH5ZE3iVmwyFQ8h08mQ6C05 99w7Jifp5OXs8C9jbMZp2SIQmu4dm83OvBcD1idE+aG6dEnR4fQAgniXiCNdyCPeAM t8H6wrziE+0vQ/Cayp4Ig5QBy2Ok6Mhve2r6rCPnWU+xl9uW8ecNWu7Ajq1Rl1Uy1f BnO0rK7iVMPiWyLIbeBnHsY8=
- In-reply-to: <eed101e340e93e47fae82524ee3b93f9@stamm-wilbrandt.de>
- Mail-followup-to: pari-users@pari.math.u-bordeaux.fr
- References: <eed101e340e93e47fae82524ee3b93f9@stamm-wilbrandt.de>
On Mon, Dec 18, 2023 at 07:31:56PM +0100, hermann@stamm-wilbrandt.de wrote:
> I stumbled over
> https://math.stackexchange.com/a/3341210
>
> on finding solution for Pell's equation x^2-D*y^2=1 for D=61.
>
> Then I implemented my pell.gq (bottom) that did the job for any D.
>
> Then I found this 2008 posting from Karim:
> https://pari.math.u-bordeaux.fr/archives/pari-users-0811/msg00001.html
>
>
> 1) How do these commands from Karim's posting reveal x and y?
>
> ? quadunit(61)
The discriminant of x^2-61 is 4*61, not 61, so you should do
? u=quadunit(4*61)
%3 = 29718+3805*w
? norm(u)
%4 = -1
So here the unit norm is -1, so this solves x^2-61*y^2 = -1
To solve for 1, square it:
? u^2
%5 = 1766319049+226153980*w
Cheers,
Bill