What is the sum of all integer solutions to ?
- A)
- B)
- C)
- D)
- E)
Answer
B
Key insight
The square must be 4, 9 or 16, so x - 2 is 2, 3 or 4 or their negatives. The six answers pair up around 2.
Solution
- Since is a whole number, is a whole number too, and is a perfect square.
- List the perfect squares: The ones strictly between and are , and . ( and themselves are not allowed, because the signs are "less than," not "less than or equal.")
- Each square comes from two numbers, one positive and one negative:
| or | or | or | |
| or | or | or |
- The six solutions are .
- Add them: .
The answer is .
Why this works
The values of come in pairs like and that cancel when added. So the six values of add up to six copies of , which is , without any listing. Whenever you solve "the square of something equals a number," remember both the positive and the negative root.
The trap
Forgetting the negative square roots, so x - 2 = -2, -3, -4 are missed, or including x - 2 = 1 or 5, where the square equals 1 or 25 and the strict inequality fails.
Concise solution
Since is an integer, is a perfect square strictly between and , so it is , , or . Then
Adding to each gives .
The six values of come in opposite pairs and cancel, so the six values of sum to . Directly: .
The answer is .
Review in the AoPS books
- Introduction to Algebra, Chapter 20: Special Functions (§20.2, §20.5)
- Introduction to Number Theory, Chapter 1: Integers: The Basics
- Prealgebra, Chapter 15: Problem-Solving Strategies (§15.2)
- Introduction to Algebra, Chapter 22: Special Manipulations (§22.3)
Techniques
Organized listing / direct enumeration · Exploit symmetry to reduce work or pair up objects