返回题库

AIME 2009 I · 第 8 题

AIME 2009 I — Problem 8

专题
Contest Math
难度
L4
来源
AIME

题目详情

Problem

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 SS. Let NN be the sum of all of these differences. Find the remainder when NN is divided by 10001000.

解析

Solution 1 (bash)

When computing NN, the number 2x2^x will be added xx times (for terms 2x202^x-2^0, 2x212^x-2^1, ..., 2x2x12^x - 2^{x-1}), and subtracted 10x10-x times. Hence NN can be computed as N=10210+829+628+8211020N=10\cdot 2^{10} + 8\cdot 2^9 + 6\cdot 2^8 + \cdots - 8\cdot 2^1 - 10\cdot 2^0. Evaluating Nmod1000N \bmod {1000} yields:

N=10(2101)+8(2921)+6(2822)+4(2723)+2(2624)=10(1023)+8(510)+6(252)+4(120)+2(48)=10(1000+23)+8(500+10)+6(250+2)+480+96(0+230)+(0+80)+(500+12)+480+96398\begin{aligned} N & = 10(2^{10}-1) + 8(2^9 - 2^1) + 6(2^8-2^2) + 4(2^7-2^3) + 2(2^6-2^4) \\ & = 10(1023) + 8(510) + 6(252) + 4(120) + 2(48) \\ & = 10(1000+23) + 8(500+10) + 6(250+2) + 480 + 96 \\ & \equiv (0 + 230) + (0 + 80) + (500 + 12) + 480 + 96 \\ & \equiv \boxed{398} \end{aligned}

Solution 2

This solution can be generalized to apply when 1010 is replaced by other positive integers.

Extending from Solution 1, we get that the sum NN of all possible differences of pairs of elements in SS when S={20,21,22,,2n}S = \{2^0,2^1,2^2,\ldots,2^{n}\} is equal to x=0n(2xn)2x\sum_{x=0}^{n} (2x-n) 2^x. Let A=x=0nx2xA = \sum_{x=0}^{n} x2^x, B=x=0n2xB=\sum_{x=0}^{n} 2^x. Then N=2AnBN=2A - nB.

For n=10n = 10, B=2111=204747(mod1000)B = 2^{11}-1 = 2047 \equiv 47 \pmod{1000} by the geometric sequence formula.

2A=x=1n+1(x1)2x2A = \sum_{x=1}^{n+1} (x-1)2^x, so 2AA=A=n2n+1x=1n2x2A - A = A = n2^{n+1} - \sum_{x=1}^{n} 2^x. Hence, for n=10n = 10, A=10211211+2=9211+2489+2=A = 10 \cdot 2^{11} - 2^{11} + 2 = 9 \cdot 2^{11} + 2 \equiv 48 \cdot 9 + 2 =

434(mod1000)434 \pmod{1000}, by the geometric sequence formula and the fact that 210=102424(mod1000)2^{10} = 1024 \equiv 24 \pmod{1000}.

Thus, for n=10n = 10, N=2A10B24341047=868470=398N = 2A - 10B \equiv 2\cdot 434 - 10\cdot 47 = 868 - 470 = \boxed{398}.

Solution 3

Consider the unique differences 2a+n2a2^{a + n} - 2^a. Simple casework yields a sum of n=110(2n1)(211n1)=n=110211+12n211n=10211+102(2+22++210)\sum_{n = 1}^{10}(2^n - 1)(2^{11 - n} - 1) = \sum_{n = 1}^{10}2^{11} + 1 - 2^n - 2^{11 - n} = 10\cdot2^{11} + 10 - 2(2 + 2^2 + \cdots + 2^{10}) =10211+1022(2101)480+10423398(mod1000)= 10\cdot2^{11} + 10 - 2^2(2^{10} - 1)\equiv480 + 10 - 4\cdot23\equiv\boxed{398}\pmod{1000}. This method generalizes nicely as well.

Solution 4 (Extreme bash)

Find the positive differences in all 5555 pairs and you will get 398\boxed{398}. (This is not recommended unless you can't find any other solutions to this problem)

List of Differences:

1, 3, 7, 15, 31, 63, 127, 255, 511, 1023, 2, 6, 14, 30, 62, 126, 254, 510, 1022, 4, 12, 28, 60, 124, 252, 508, 1020, 8, 24, 56, 120, 248, 504, 1016, 16, 48, 112, 240, 496, 1008, 32, 96, 224, 480, 992, 64, 192, 448, 960, 128, 384, 896, 256, 768, 512

Solution 5 (Quite Less Bash)

Every value 2a2b2^a - 2^b is guaranteed to be different if for all pairs of numbers (a,b)(a,b) is unordered. In other terms, every pair only appears once, with (a,b)(a,b) being the same as (b,a)(b,a).

Imagine cyclically pairing every single element of this list together. Then, we appear with 1010 copies of 2102^10, and then from the remaining 99 differences consisting of 292^9, when summed, coincide with one difference from 2102^10, giving 102=810-2 = 8 copies of 292^9.

If the above wording is weird to you, think of it like this. One of the pairs consisting of 2102b2^10 - 2^b for some bb is 210292^10 - 2^9. Then, in all the pairs consisting of 292z2^9 - 2^z for some zz, we see z10z \neq 10 as that absolute value yields the same sum. Therefore, we have the number of copies of 2102^10, subtracted with the case including 292^9, and that result is 101=910-1 = 9 copies of 292^9. However, when we add the cases together, one pair from 2102^10 coincides with one pair from 292^9, specifically, any 292^9 case and the case 210292^10 - 2^9, in which one more pair cancels out, giving us 8 copies in the sum.

One can then, either through Engineer's Induction or through webbing (the process of mapping every case to one another and showing a result must be true), can realize that every preceding case decreases by 2. Then, we obtain

k=010(102k)(210k)\sum_{k=0}^{10} (10-2k)(2^{10-k}) 10(210)+8(29)+6(28)+4(27)+2(26)+02(24)4(23)6(22)8(21)10(mod1000)10(2^{10}) + 8(2^9) + 6(2^8) + 4(2^7) + 2(2^6) + 0 - 2(2^4) - 4(2^3) - 6(2^2) - 8(2^1) - 10 \pmod{1000} 240+96+536+512+1283232241610(mod1000)240 + 96 + 536 + 512 + 128 - 32 - 32 - 24 - 16 - 10 \pmod{1000} 240+96+48+1283232241610(mod1000)240 + 96 + 48 + 128 - 32 - 32 - 24 - 16 - 10 \pmod{1000} 512114(mod1000)512 - 114 \pmod{1000} 398(mod1000)\boxed{398} \pmod{1000} ~Pinotation