How many integer values

This topic has expert replies
Newbie | Next Rank: 10 Posts
Posts: 1
Joined: Mon Oct 16, 2017 5:22 am

How many integer values

by rk110 » Mon Oct 16, 2017 5:24 am
If x is an integer, then for how many values of p, the value of x2 + px - 24 will be zero?

GMAT Instructor
Posts: 2630
Joined: Wed Sep 12, 2012 3:32 pm
Location: East Bay all the way
Thanked: 625 times
Followed by:119 members
GMAT Score:780

by Matt@VeritasPrep » Thu Nov 09, 2017 6:30 pm
I'm going to assume that the problem also requires p to be an integer.

x² + px - 24 = 0

x² + px = 24

x * (x + p) = 24

So x must be a positive or negative factor of 24. That gives us x = -24, -12, -8, -6, -4, -3, -2, -1, 1, 2, 3, 4, 6, 8, 12, and 24, or sixteen values, each of which has a corresponding integer solution for p. There's some overlap, though! If x = -24, then p = 23, but if x = 1, again p = 23.

Going further, every value of p corresponds to two values of x, so we only have eight integer values of p.

GMAT Instructor
Posts: 2630
Joined: Wed Sep 12, 2012 3:32 pm
Location: East Bay all the way
Thanked: 625 times
Followed by:119 members
GMAT Score:780

by Matt@VeritasPrep » Thu Nov 09, 2017 6:34 pm
Whoops, should add a note explaining that last assertion. Since x * (x + p) = 24, we also have p = (24 - x)²/x. (It's safe to divide by x since x = 0 is not a solution.)

Any integer p that's a solution to that quadratic is going to itself create a quadratic with two solutions. For instance, say p = 2. Then we'd have

2 = (24 - x)²/x, or

x² + 2x - 24 = 0

which would factor as (x + 6) * (x - 4).

Since every p value is a factor of 24, every quadratic created by a p will have two integer solutions, meaning that each p corresponds to two values of x.

Senior | Next Rank: 100 Posts
Posts: 82
Joined: Mon Jan 15, 2018 2:01 am

by DrMaths » Thu Feb 01, 2018 8:36 am
x2 + px - 24 = 0
(x+a)(x-b) = 0
ab = 24 -> positive factor pairs (a * b) are 1*24, 2*12, 3*8, 4*6, 6*4, 8*3, 12*2, 24*1
a-b = p = -23, -10, -5, -2, 2, 5, 10, 23
So there are 8 possible values for p