1
$\begingroup$

I keep getting either negative or super long answers or super long negative answers in no particular order :\ ... Is there a way to only ask for positive solutions? (here we want 0 < x<(10^12+y) I tried using Assumptions but it didn't work :<

FindInstance[ 1/2 == x/(1000000000000 + y)*(x - 1)/(1000000000000 + y - 1), {x,  y}, Integers]
$\endgroup$

1 Answer 1

1
$\begingroup$
FindInstance[
 1/2 == x/(1000000000000 + y)*(x - 1)/(1000000000000 + y - 1) && 
  x > 0 && y > 0, {x, y}, Integers]
(*{{x -> 756872327473, y -> 70379110497}}*)
$\endgroup$
1
  • $\begingroup$ perfect, thanks! :D $\endgroup$
    – Raksha
    Feb 17, 2015 at 0:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.