AMC 10 Step by Step

2015 AMC 10A Problem 23

P21-25~5 minPrint

The zeroes of the function f(x)=x2−ax+2af(x)=x^2-ax+2a are integers. What is the sum of the possible values of aa ?

Log in to save your progress.
Show solution without answering

Key insight

The zeros multiply to twice their sum. That rearranges to (r minus 2)(s minus 2) = 4; use every factor pair of 4, negatives included.

Solution

Turn "the zeros are whole numbers" into an equation about the zeros themselves.

1. Call the zeros rr and ss. Then x2−ax+2a=(x−r)(x−s)=x2−(r+s)x+rsx^2 - ax + 2a = (x - r)(x - s) = x^2 - (r + s)x + rs. Matching the terms:
r+s=a,rs=2a.r + s = a, \qquad rs = 2a.
2. Get rid of aa: the product is twice the sum,
rs=2r+2s.rs = 2r + 2s.
3. This almost factors. Since (r−2)(s−2)=rs−2r−2s+4(r - 2)(s - 2) = rs - 2r - 2s + 4, move everything to one side and add 44:
(r−2)(s−2)=4.(r - 2)(s - 2) = 4.
4. Now r−2r - 2 and s−2s - 2 are whole numbers that multiply to 44. List every pair, including negative ones:

r−2, s−2r - 2,\ s - 2r, sr,\ sa=r+sa = r + s
1, 41,\ 43, 63,\ 699
2, 22,\ 24, 44,\ 488
−1, −4-1,\ -41, −21,\ -2−1-1
−2, −2-2,\ -20, 00,\ 000

(Swapping the order, like 4, 14,\ 1, gives the same zeros and the same aa.)
5. Check each one works:
- a=9a = 9: x2−9x+18=(x−3)(x−6)x^2 - 9x + 18 = (x - 3)(x - 6).
- a=8a = 8: x2−8x+16=(x−4)2x^2 - 8x + 16 = (x - 4)^2.
- a=−1a = -1: x2+x−2=(x+2)(x−1)x^2 + x - 2 = (x + 2)(x - 1).
- a=0a = 0: the function is x2x^2, whose zero 00 is a whole number.
6. The sum of the possible values is 9+8+(−1)+0=169 + 8 + (-1) + 0 = 16.

The answer is (C) 16\boxed{\textbf{(C)}\ 16}.

Why this works

"The zeros are integers" together with sum-and-product of the zeros turns a quadratic into a whole-number puzzle. An equation like rs=2(r+s)rs = 2(r + s) becomes a product by adding a constant, (r−2)(s−2)=4(r - 2)(s - 2) = 4, and then only a short list of factor pairs is possible. Always include negative pairs and equal pairs (a repeated zero).

Alternative approach

A quadratic with integer coefficients has whole-number zeros only if the number under the square root in the quadratic formula, a2−8aa^2 - 8a, is a perfect square k2k^2. Completing the square, (a−4)2−k2=16(a - 4)^2 - k^2 = 16, so
(a−4−k)(a−4+k)=16.(a - 4 - k)(a - 4 + k) = 16.
The two factors differ by an even number, so both are even: 2×82 \times 8, 4×44 \times 4, (−8)×(−2)(-8) \times (-2) or (−4)×(−4)(-4) \times (-4). Their average, a−4a - 4, is 5,4,−5,−45, 4, -5, -4, so a=9,8,−1,0a = 9, 8, -1, 0, with sum 1616.

Concise solution

A shorter write-up, the way contest solutions are usually written. It may take a different route from the solution above.

Let the zeros be integers rr and ss (a repeated zero is allowed). Vieta's formulas give
r+s=a,rs=2a.r + s = a, \qquad rs = 2a.
Eliminate aa: rs=2(r+s)rs = 2(r + s), so rs−2r−2s=0rs - 2r - 2s = 0. Add 44 to both sides to factor:
(r−2)(s−2)=4.(r - 2)(s - 2) = 4.

Now list the unordered ways to write 44 as a product of two integers, negatives included:

(r−2,s−2)(r-2, s-2)(r,s)(r, s)a=r+sa = r + s
(1,4)(1, 4)(3,6)(3, 6)99
(2,2)(2, 2)(4,4)(4, 4)88
(−1,−4)(-1, -4)(1,−2)(1, -2)−1-1
(−2,−2)(-2, -2)(0,0)(0, 0)00

Each value really works: x2−9x+18=(x−3)(x−6)x^2 - 9x + 18 = (x-3)(x-6), x2−8x+16=(x−4)2x^2 - 8x + 16 = (x-4)^2, x2+x−2=(x+2)(x−1)x^2 + x - 2 = (x+2)(x-1), and x2x^2.

The sum of the possible values is 9+8+(−1)+0=169 + 8 + (-1) + 0 = 16.

The answer is (C) 16\boxed{\textbf{(C)}\ 16}.

Review in the AoPS books

Similar problems

Problem © Mathematical Association of America (MAA), American Mathematics Competitions. Reproduced for non-commercial educational use. Solution and commentary are original to this site.