2006 AMC 10A Problem 9
How many sets of two or more consecutive positive integers have a sum of ?
Show solution without answering
Key insight
Sum = (how many numbers) times (their average). Try runs of 2, 3, 4, 5, 6 numbers and see which give 15 using only positive numbers.
Solution
For consecutive numbers, the sum is (how many numbers) (the average), and the average is the middle of the run. So for a run of numbers, the average must be . Try each length in turn.
| Length | Average | Run | Works? |
|---|---|---|---|
| yes | |||
| yes | |||
| none | no | ||
| yes | |||
| no, is not positive |
Why length fails: four consecutive numbers have a middle halfway between two whole numbers, like or . The average is not of that kind.
Why we can stop: a run of or more positive numbers adds up to at least , which is more than .
So there are exactly sets.
The answer is .
Why this works
Consecutive numbers are evenly spaced, so their sum is the count times the middle value. That turns "find all runs" into "try each possible length," and there are only a few lengths before the sum gets too big. Keep an eye on the word "positive": it is what rules out the run that starts at .
Alternative approach
Just search by the first number. Starting at : . Starting at : , , , skips . Starting at : , , , skips. Starting at : . Starting at : , , skips. Starting at : , , skips. Starting at : . From on, two numbers already add to more than . Three sets.
Concise solution
A shorter write-up, the way contest solutions are usually written. It may take a different route from the solution above.
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 .
Review in the AoPS books
- Introduction to Number Theory, Chapter 1: Integers: The Basics
- Introduction to Algebra, Chapter 21: Sequences & Series (§21.1, §21.2, §21.3, §21.4)
- Prealgebra, Chapter 15: Problem-Solving Strategies (§15.2)
- Introduction to Algebra, Chapter 20: Special Functions (§20.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. Also appeared as 2006 12A #8.