Re: Quadratic equation
- From: "Zdislav V. Kovarik" <kovarik@xxxxxxxxxxx>
- Date: Fri, 3 Nov 2006 17:30:07 -0500
On Fri, 3 Nov 2006, Edwin Klement wrote:
Hello,
can somebody give me a hint how to solve an quadratic equation like 3*x*x
+ y*y - n = 0
where x, y and n are positive integer.
Edwin
--
Using Opera's revolutionary e-mail client: http://www.opera.com/m2/
A few starting remarks: I have to guess what you might have meant, namely
"n given, find all pairs of x and y". If that is not the case, please
clarify.
You go by the remainder when n is divided by 3.
Remainder 2: no solution (you can explain why).
Remainder 0: a "descent" is possible, because y must be a multiple of 3,
so
y = 3*z
n = 3*m
and from 3*x^2 + (3*z)^2 = 3*m
you obtain
3*z^2 + x^2 = m
and you repeat until you get a remainder 1 or 2 on the right-hand side.
(Then you find solutions and reverse the substitutions.)
What to do about remainder 1? There is always exhaustive search (not
always practical), and you can get finitely many answers (maybe none at
all). Perhaps someone will pick up from here.
Cheers, ZVK(Slavek).
.
- Follow-Ups:
- Re: Quadratic equation
- From: William Elliot
- Re: Quadratic equation
- References:
- Quadratic equation
- From: Edwin Klement
- Quadratic equation
- Prev by Date: Re: Localization at a maximal ideal
- Next by Date: Re: A simple question?
- Previous by thread: Re: Quadratic equation
- Next by thread: Re: Quadratic equation
- Index(es):
Relevant Pages
|