2012 AMC 10B Problem 8
What is the sum of all integer solutions to ?
Show solution without answering
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.
Concise solution
A shorter write-up, the way contest solutions are usually written. It may take a different route from the solution above.
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)
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.