We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
these are some example for n=8
we should find all x,y that verify x*y/(x+y)=8
And we get (9,8*9)
(2*6,4*6)
(4*6,2*6)
(8*9,9 )
(2*5,8*5)
(4*4,4*4)
(8*5,2*5)
(4*3,8*3)
(8*3,4*3)
(8*2,8*2)
By removing none distinct
We get
(9,8*9)
(2*6,4*6)
(2*5,8*5)
(4*4,4*4)
try to find x,y using arithmetic
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
An unexpected error occurred. Please try reloading the page. If problem persists, please contact support@hackerrank.com
Project Euler #110: Diophantine reciprocals II
You are viewing a single comment's thread. Return to all comments →
these are some example for n=8 we should find all x,y that verify x*y/(x+y)=8 And we get (9,8*9) (2*6,4*6) (4*6,2*6) (8*9,9 ) (2*5,8*5) (4*4,4*4) (8*5,2*5) (4*3,8*3) (8*3,4*3) (8*2,8*2) By removing none distinct We get (9,8*9) (2*6,4*6) (2*5,8*5) (4*4,4*4) try to find x,y using arithmetic