The sum of the first positive odd integers is more than the sum of the first positive even integers. What is the sum of all possible values of ?
- A)
- B)
- C)
- D)
- E)
Answer
A
Key insight
The sums are m^2 and n(n + 1). Multiply by 4 to complete the square, giving a difference of two squares equal to 847 = 7 x 11 x 11.
Solution
1. The two sums. Look at small cases. The odd numbers: , , . The first odd numbers add to . The even numbers: , , . The first even numbers add to , because is twice .
2. The equation. .
3. Make a square. The right side is almost a perfect square. Multiply everything by , because :
So .
4. Factor. A difference of two squares factors: .
5. Split 847. . The ways to write it as small factor times large factor are
The second bracket is the larger one, so call the small factor and the large one .
6. Solve each case. Subtracting, , so . Adding, , so .
| Check | |||
|---|---|---|---|
- All three give positive whole numbers. The possible values of add to .
The answer is .
Why this works
When a whole-number equation has two squares that are close together, turn it into "square minus square equals a number". Multiplying by avoids fractions when completing the square. A difference of squares factors into two brackets, and a fixed number has only a few factor pairs, so the endless search becomes a short list.
Alternative approach
Let , which is at least . Then , and this must equal . Rearranging, , so
Try (for the top is negative). Only give whole numbers: , and . The sum is again .
The trap
Using n^2 for the sum of the first n even numbers (it is n(n + 1)), or missing one of the three ways to split 847 into two factors.
Concise solution
The first odd integers add to , and the first even integers add to . The condition reads
The right side is nearly a perfect square. Multiply by so that appears:
Factor ; its factor pairs are , and . On the left, the second factor is the larger one, so for each pair we set and . Subtracting gives , so and :
- : , .
- : , .
- : , .
All three are positive integers; for instance . The possible values of sum to .
The answer is .
Review in the AoPS books
- Introduction to Number Theory, Chapter 7: Algebra With Integers
- Introduction to Algebra, Chapter 21: Sequences & Series (§21.1, §21.2, §21.3, §21.4)
- Introduction to Algebra, Chapter 11: Special Factorizations (§11.2, §11.3, §11.5)
- Prealgebra, Chapter 15: Problem-Solving Strategies (§15.2)
Techniques
Apply an identity: SFFT, sum of squares, difference of cubes, Vieta · Organized listing / direct enumeration