AMC 10 Step by Step

2019 AMC 10A Problem 5

P1-10~2 minPrint

What is the greatest number of consecutive integers whose sum is 45?45?

Log in to save your progress.
Show solution without answering

Key insight

The integers may be negative. A run from -44 up to 44 adds to 0, so adding 45 on the end gives sum 45 with 90 numbers in the run.

Solution

The problem says "integers", not "positive integers". Negative numbers are allowed, and they can cancel positive ones.

Part 1: a run of 90 integers works.

  1. Look at a small example first: −2,−1,0,1,2-2, -1, 0, 1, 2 adds to 00, because each number cancels its opposite. Put 33 on the end and the sum becomes 33.
  2. Do the same with 4545: the run −44,−43,…,43,44-44, -43, \ldots, 43, 44 adds to 00. Put 4545 on the end and the sum is 4545.
  3. Count the run −44,…,45-44, \ldots, 45: there are 4444 negative numbers, then 00, then 4545 positive numbers, so 44+1+45=9044 + 1 + 45 = 90 integers.

Part 2: no longer run works.

  1. For kk consecutive integers, the average is the middle value. It is either a whole number (when kk is odd) or a number ending in .5.5 (when kk is even).
  2. The sum is k×(average)k \times (\text{average}), so 2×sum=k×(2×average)2 \times \text{sum} = k \times (2 \times \text{average}), and 2×average2 \times \text{average} is a whole number.
  3. So kk must divide 2×45=902 \times 45 = 90. No number bigger than 9090 divides 9090, so kk cannot be more than 9090. (This rules out choice (E), 120120.)

The run of 9090 works and nothing longer can, so the greatest number is 9090.

The answer is (D) 90\boxed{\textbf{(D)}\ 90}.

Why this works

Adding a matching negative for every positive number costs nothing, so a run can be stretched much further than you might expect. The limit comes from the average: kk consecutive integers always have a sum equal to kk times a whole or half-whole number, so kk must divide twice the sum. And always check whether "integers" quietly became "positive integers" in your head.

Concise solution

A shorter write-up, the way contest solutions are usually written. It may take a different route from the solution above.

Nothing says the integers are positive. A run that starts at −m-m and ends at mm sums to 00, so extending it one more step to m+1m + 1 gives a sum of exactly m+1m + 1.

Take m=44m = 44: the integers −44,−43,…,44,45-44, -43, \dots, 44, 45 sum to 4545. This run has 44+1+45=9044 + 1 + 45 = 90 terms.

Can a longer run work? The sum of kk consecutive integers starting at aa is k(2a+k−1)2\frac{k(2a + k - 1)}{2}, so k(2a+k−1)=90k(2a + k - 1) = 90 and kk must divide 9090. The largest divisor of 9090 is 9090 itself (with a=−44a = -44), so 9090 is the maximum. Choice (E), 120120, does not divide 9090.

The answer is (D) 90\boxed{\textbf{(D)}\ 90}.

Review in the AoPS books

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.