🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: sci.math.num-analysis
Article #1238

Re: Discrete hyperbolic problem

#1238
From: Alan Jones
Date: Thu, 03 Jun 1999 00:00
29 lines
1879 bytes
Ricky Laksanadjaja <lricky@earthcorp.com> writes:

>Hi,

>Does anybody know if there is a fast algorithm to solve the following
>problem?

>Equation:  x^2 - y^2 = z  , where  x is a positive integer, y is a
>positive integer, and  x > y, and z is a large positive integer (>200
>digit number).  For a given Zt, can you find Xn, where Xn is the first
>integer which is greater or equal to SQRT(Zt), i.e. Xn >= SQRT(Zt),
>which gives an integer Ym, which will satisfy the above hyperbolic
>equation? I can do it by testing the equation with each integer x
>greater than sqrt(Zt), but it could take million years to find Xn, if Zt
>is a large integer number.  Does anyone have a better solution?
>Thanks...

Firstly, the problem cannot be solved unless z is some power of 4 times
an odd integer.
Dividing out the multiples of 4; which correspond to multiples of 2 for
both x and y; leaves the problem for z odd - a solution of which is
x = (z+1)/2 and y = (z-1)/2.
>--
>Kind Regards,

>Ricky Lee
>Email: lricky@earthcorp.com

Alan Jones
Technical Details
Message-ID: <7j5016$lhg$1@bunyip.cc.uq.edu.au>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <37558EA7.D17E1699@earthcorp.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10d29f,ab68dac0560b9fa8
X-Google-Attributes: gid10d29f,public
X-Google-Thread: 107079,ab68dac0560b9fa8
X-Google-Attributes: gid107079,public
X-Google-Thread: 10d67e,ab68dac0560b9fa8
X-Google-Attributes: gid10d67e,public
X-Google-Thread: 109d8a,ab68dac0560b9fa8
X-Google-Attributes: gid109d8a,public
From: asj@maths.uq.edu.au (Alan Jones)
Subject: Re: Discrete hyperbolic problem
Date: 1999/06/03
Message-ID: <7j5016$lhg$1@bunyip.cc.uq.edu.au>
X-Deja-AN: 485264334
Approved: Daniel Grayson, dan@math.uiuc.edu, moderator for sci.math.research
References: <37558EA7.D17E1699@earthcorp.com>
Organization: University of Queensland
Newsgroups: sci.math.num-analysis,sci.math.research,sci.math,aus.mathematics
Originator: dan@orion.math.uiuc.edu