Hacker News new | past | comments | ask | show | jobs | submit login

I don't think the algorithm you're proposing works, although that was my first idea as well. And I don't a priori see why the pair (x,y) would have to be unique (but it does appear to be, even if instead of choosing x and y in 0..5 you choose from all natural numbers).



If they're unique it means you can determine x, y from the result of x^2 + y^2.


Right. I meant that the answer to the question 'Question: which numbers can x and y be?' is not necessarily a single unique (x,y) pair.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: