Skip to main content

2009 AIME I Problem 8

Problem 8 of 15IntermediateAlgebraNumber TheoryProblem-Solving Techniques

Let S={20,21,22,…,210}.S = \{2^0, 2^1, 2^2, \ldots, 2^{10}\}. Consider all possible positive differences of pairs of elements of S.S. Let NN be the sum of all of these differences. Find the remainder when NN is divided by 1000.1000.

Your answer

Integer from 0 to 999
Show solution

Solution

In the sum of all positive differences, the element 2k2^k is added once for each smaller element (kk times) and subtracted once for each larger element (10−k10 - k times). Hence N=∑k=010(2k−10) 2k=2∑k=010k 2k−10∑k=0102k. \begin{aligned} N &= \sum_{k=0}^{10} (2k - 10)\,2^k \\ &= 2\sum_{k=0}^{10} k\,2^k - 10\sum_{k=0}^{10} 2^k. \end{aligned} The standard sums are ∑k=010k 2k=9⋅211+2=18434\sum_{k=0}^{10} k\,2^k = 9 \cdot 2^{11} + 2 = 18434 and ∑k=0102k=211−1=2047,\sum_{k=0}^{10} 2^k = 2^{11} - 1 = 2047, so N=2⋅18434−10⋅2047=36868−20470=16398. \begin{aligned} N &= 2 \cdot 18434 - 10 \cdot 2047 \\ &= 36868 - 20470 = 16398. \end{aligned} The remainder upon division by 10001000 is 398.398.
AoPS wiki

Tagged: summation · power of 2 · pairing and grouping

More practice