#Finding pairs integers of a equation
48 messages · Page 1 of 1 (latest)
Well, the equation is quadratic in both x and y, so what I'd do is use the quadratic formula to get one in terms of the other. Then the problem is reduced to "find integer values that yield integer values".
In particular, the discriminant must be a perfect square.
Like here? I just tried to do similar thing and couldn't find where
Well, do you want to find x or y?
Doesn't really matter as long I can get answer, but you can do it both ways? 😳
Yeah. It's either x^2 - (4y)x + (5y^2 + 2y - 4) = 0 or 5y^2 + (2 - 4x)y + (x^2 - 4) = 0.
Okay, thank you!
@rapid vault ah, the last question - after you solved and got an equation for x or y, is there a better way for finding them except just manually inputting numbers?
...I mean, did I not just describe a way better than guess and check?
Yes, but I have calculated -1 + 2x ± √[-(x-3)(x+7)]/5, but how I would proceed after that except just inputting numbers blindly knowing divisibility rules?
...I don't think you got that right.
uhh... Then how should I do it? I can replicate my calculations and send a screenshot here so it would be clearer what I did wrong
Yeah, that'd probably be a good idea.
@rapid vault here!
You corrected the thing you got wrong.
Remember what I said before, about the discriminant needing to be a perfect square?
Well. You corrected the thing you got wrong that I was talking about.
You also need parentheses on the numerator for the order of operations.
Yes, I double checked what I did and noticed that I got a bit lost in my notes 🥺
But wouldn't it still be inputting manually to calculate the perfect squares?
Okay, look.
There's a difference between random guess and check and guided guess and check.
So it's still guess and check, but now I'm looking if numbers make perfect square, right?
Well. No.
Look.
Here's the thing.
Integers are real, right?
So what's the condition for y to be real here?
well, root should be non negative at the very least, if I understood your question correctly?
Right. Non-negative discriminant. So for what range of x is (3 - x)(7 + x) nonnegative?
We know the zeroes, so it's either the range between the zeroes or the range excluding the zeroes.
I feel like because of the minus sign before (3-x)(7+x) it should be negative (or zero)
So x is a range between [-7; 3]?
Well, you're right about the range. So x is an integer between -7 and 3. x is an element of the set {-7, -6, -5, -4, -3, -2, -1, 0, 1, 2, 3}. Which, while it is eleven elements, is still way fewer than the infinitely many elements we had before.
And we don't have to evaluate the whole value of y for each value of x.
And actually, this is symmetric.
Yes, I already made calculations with all of the numbers, however, in the end I got 7 pairs, but the answer for this question is 8. Did you, by any chance, solve it and if yes, what answer you got? I'm double-checking everything now
What pairs did you get?
(-7; -3), (-6; -2), (-5; -3), (-2; 6), (-2; 4), (1; 1), (3; -1)
Probably lost one somewhere in the middle of solving
You missed (2, 0).
Like I said, the values of x are symmetrical in what value they give the discriminant.
Ohh, yeah, I somehow forgot about 3-3
Thank you so much for helping and being patient! Sorry for being so slow!
At least you were paying attention and putting in effort.
+close