How many sets of two or more consecutive positive integers have a sum of ?
- A)
- B)
- C)
- D)
- E)
Answer
C
Key insight
Sum equals (number of terms) times (average), and the average of consecutive integers is the middle value, so just test lengths 2, 3, 4, 5 against 15.
Solution
A run of consecutive integers has sum times its average, and that average is the middle term when is odd, or a number ending in when is even. So we need to have the right form, and the run built around it must stay positive.
- : average , run . Works.
- : average , run . Works.
- : average , not a half-integer. Fails.
- : average , run . Works.
- : average , run , but is not positive. Fails.
Any longer run has average below and would start at or below , so the search is complete: exactly sets.
The answer is .
Why this works
Consecutive integers are an arithmetic sequence, and "sum count average" turns the search into a divisibility question on : odd lengths need , even lengths need with an odd quotient. Checking each possible length in order keeps the enumeration short and exhaustive.
Alternative approach
With first term and terms, . The two factors have opposite parity and the second exceeds the first, so try : they give . The next candidate forces . Three solutions.
The trap
Counting 0 + 1 + 2 + 3 + 4 + 5 = 15 as a set even though 0 is not positive, which gives 4 (choice (D)).
Common mistakes
- Counting as a set even though is not positive, which gives (choice (D)).
- Stopping after finding and without testing the length- run.
Techniques
Organized listing / direct enumeration