We want to find all integers m such that the quadratic equation x^2 - mx + 2m = 0 has integer solutions.
Let's use the quadratic formula to solve for x:
x = (m ± √(m^2 - 8m)) / 2
For x to be an integer, we need the discriminant m^2 - 8m to be a perfect square, say k^2. That is:
m^2 - 8m = k^2
Rearranging, we get:
(m - 4)^2 - 16 = k^2
Adding 16 to both sides and factoring, we get:
(m - 4 - k)(m - 4 + k) = 16
Since m is an integer, the factors on the left-hand side must also be integers. The only possible pairs of factors of 16 are (1, 16), (-1, -16), (2, 8), (-2, -8), and (4, 4). So we have five cases to consider:
Case 1: m - 4 - k = 1 and m - 4 + k = 16 Adding the two equations, we get:
2m - 8 = 17 m = 25/2
This is not an integer, so there are no solutions in this case.
Case 2: m - 4 - k = -1 and m - 4 + k = -16 Adding the two equations, we get:
2m - 8 = -17 m = -9/2
This is not an integer, so there are no solutions in this case.
Case 3: m - 4 - k = 2 and m - 4 + k = 8 Adding the two equations, we get:
2m - 8 = 10 m = 9
Substituting m = 9 into the original quadratic equation, we get:
x^2 - 9x + 18 = 0
Factoring, we get:
(x - 3)(x - 6) = 0
So the integer solutions are x = 3 and x = 6.
Case 4: m - 4 - k = -2 and m - 4 + k = -8 Adding the two equations, we get:
2m - 8 = -6 m = 1
Substituting m = 1 into the original quadratic equation, we get:
x^2 - x + 2 = 0
This quadratic equation has no integer solutions.
Case 5: m - 4 - k = 4 and m - 4 + k = 4 Adding the two equations, we get:
2m - 8 = 8 m = 8
Substituting m = 8 into the original quadratic equation, we get:
x^2 - 8x + 16 = 0
Factoring, we get:
(x - 4)^2 = 0
So the only integer solution is x = 4.
Therefore, the only integers m that satisfy the given condition are m = 8 and m = 9.