Re: diophantine equation 1/x + 1/y = 1/n



negative numbers are not allowed . actually initially i was also using
the same algorithm but i think it seems to be failed for n=1260
answer is 113 . chk out this link .http://projecteuler.net/index.php?
section=problems&id=110

On Aug 22, 1:03 pm, Proginoskes <CCHeck...@xxxxxxxxx> wrote:
On Aug 22, 12:32 am, mukesh tiwari <mukeshtiwari.ii...@xxxxxxxxx>
wrote:

hello everybody i want to know how many distinct solution of
equation(1/x+1/y=1/n) for given value of n .

If you are allowing negative integers, the answer is the number of
factors of (n^2). If you want only positive solutions, take the number
of factors of n^2, add 1, and then divide the whole thing by 2.

for example if n=4 then
three distinct solution (5,20)(6,12) and (8,8).
plz tell me the algorithm to solve this problem .

Basically, you combine the terms of 1/n - 1/y and use the fact that
this fraction reduces to 1/x.

--- Christopher Heckman


.



Relevant Pages

  • Re: diophantine equation 1/x + 1/y = 1/n
    ... If you want only positive solutions, ... of factors of n^2, add 1, and then divide the whole thing by 2. ... plz tell me the algorithm to solve this problem. ... thnkx again .... ...
    (sci.math)
  • Re: E96 Series Computation
    ... >>>3) multiply remaining fraction by 64 ... >>>absolute closest standard value to arbitrary input R are hopelessly lost ... >>>as noise compared to tolerance. ... >> I guess I don't understand what your algorithm is supposed to do. ...
    (sci.electronics.design)
  • Simple factoring algorithm?
    ... Now I'm going to step it out into an algorithm. ... It will come out rational and a fraction, and you make sure that the ... To finish you just substitute in the value of x, ... But hey, it's also an engaging process for me, which I enjoy, ...
    (sci.crypt)
  • Basic factoring algorithm?
    ... Now I'm going to step it out into an algorithm. ... It will come out rational and a fraction, and you make sure that the ... To finish you just substitute in the value of x, ... But hey, it's also an engaging process for me, which I enjoy, ...
    (sci.math)
  • Re: OT How to represent a fraction in HEX?
    ... > I wish to take a fraction in DEC say .4 and convert it to a HEX value. ... There is a simple algorithm you can use for conversion of fractions. ...
    (comp.lang.cpp)