返回题库

AIME 2011 I · 第 11 题

AIME 2011 I — Problem 11

专题
Contest Math
难度
L4
来源
AIME

题目详情

Problem

Let RR be the set of all possible remainders when a number of the form 2n2^n, nn a nonnegative integer, is divided by 1000. Let SS be the sum of the elements in RR. Find the remainder when SS is divided by 1000.

解析

Solution 1

Note that xy(mod1000)xy(mod125)x \equiv y \pmod{1000} \Leftrightarrow x \equiv y \pmod{125} and xy(mod8)x \equiv y \pmod{8}. So we must find the first two integers ii and jj such that 2i2j(mod125)2^i \equiv 2^j \pmod{125} and 2i2j(mod8)2^i \equiv 2^j \pmod{8} and iji \neq j. Note that ii and jj will be greater than 2 since remainders of 1,2,41, 2, 4 will not be possible after 2 (the numbers following will always be congruent to 0 modulo 8). Note that 21001(mod125)2^{100}\equiv 1\pmod{125} (see Euler's theorem) and 20,21,22,,2992^0,2^1,2^2,\ldots,2^{99} are all distinct modulo 125 (proof below). Thus, i=103i = 103 and j=3j =3 are the first two integers such that 2i2j(mod1000)2^i \equiv 2^j \pmod{1000}. All that is left is to find SS in mod 10001000. After some computation:

S=20+21+22+23+24+...+2101+2102=2103181mod1000=007.S = 2^0+2^1+2^2+2^3+2^4+...+2^{101}+ 2^{102} = 2^{103}-1 \equiv 8 - 1 \mod 1000 = \boxed{007}. To show that 20,21,,2992^0, 2^1,\ldots, 2^{99} are distinct modulo 125, suppose for the sake of contradiction that they are not. Then, we must have at least one of 2201(mod125)2^{20}\equiv 1\pmod{125} or 2501(mod125)2^{50}\equiv 1\pmod{125}. However, writing 210251(mod125)2^{10}\equiv 25 - 1\pmod{125}, we can easily verify that 22049(mod125)2^{20}\equiv -49\pmod{125} and 2501(mod125)2^{50}\equiv -1\pmod{125}, giving us the needed contradiction.

Solution 2

Notice that our sum of remainders looks like

S=1+2+4+23+24+.S = 1 + 2 + 4 + 2^3 + 2^4 + \cdots. We want to find the remainder of SS upon division by 1000.1000. Since 10001000 decomposes into primes as 1000=23531000 = 2^3 \cdot 5^3, we can check the remainders of SS modulo 232^3 and modulo 535^3 separately.

Checking SS modulo 232^3 is easy, so lets start by computing the remainder of SS upon division by 53.5^3. To do this, let's figure out when our sequence finally repeats. Notice that since the remainder when dividing any term of SS (after the third term) by 10001000 will be a multiple of 232^3, when this summation finally repeats, the first term to repeat will be not be 11 since 231.2^3 \nmid 1. Instead, the first term to repeat will be 232^3, and then the sequence will continue once again 24,25,.2^4, 2^5, \cdots.

Now, to compute SS modulo 125125, we want to find the least positive integer dd such that 2d1(mod125)2^d \equiv 1 \pmod {125} since then dd will just be the number of terms of SS (after the third term!) before the sequence repeats. In other words, our sequence will be of the form S=1+2+4+(23+24++22+d)S = 1 + 2 + 4 + \left(2^3 + 2^4 + \cdots + 2^{2 + d}\right) and then we will have 2d+323(mod125)2^{d + 3} \equiv 2^3 \pmod {125}, and the sequence will repeat from there. Here, dd simply represents the order of 22 modulo 125125, denoted by d=ord125(2).d = \text{ord}_{125}(2). To begin with, we'll use a well-known property of the order to get a bound on d.d.

Since gcd(2,125)=1\gcd(2, 125) = 1 and ϕ(125)=100\phi(125) = 100, we know by Euler's Theorem that 21001(mod125).2^{100} \equiv 1 \pmod {125}. However, we do not know that 100100 is the least dd satisfying 2d1(mod125).2^d \equiv 1 \pmod {125}. Nonetheless, it is a well known property of the order that ord125(2)=dϕ(125)=100.\text{ord}_{125}(2) = d | \phi(125) = 100. Therefore, we can conclude that dd must be a positive divisor of 100.100.

Now, this still leaves a lot of possibilities, so let's consider a smaller modulus for the moment, say mod5.\mod 5. Clearly, we must have that 2d1(mod5).2^d \equiv 1 \pmod 5. Since 241(mod5)2^4 \equiv 1 \pmod 5 and powers of two will then cycle every four terms, we know that 2d1(mod5)    4d.2^d \equiv 1 \pmod 5 \iff 4 | d. Combining this relation with d100d | 100, it follows that d{4,20,100}.d \in \{4, 20, 100\}.

Now, it is trivial to verify that d4.d \ne 4. In addition, we know that

220=(210)2=(1024)2242=576≢1(mod125).2^{20} = \left(2^{10}\right)^2 = \left(1024\right)^2 \equiv 24^2 = 576 \not\equiv 1 \pmod {125}. Therefore, we conclude that d20.d \ne 20. Hence, we must have d=100.d = 100. (Notice that we could have guessed this by Euler's, but we couldn't have been certain without investigating the order more thoroughly).

Now, since we have found d=100d = 100, we know that

S=1+2+4+23+24++2102.S = 1 + 2 + 4 + 2^3 + 2^4 + \cdots + 2^{102}. There are two good ways to finish from here:

The first way is to use a trick involving powers of 2.2. Notice that

S=1+2+4+...+2102=21031.S = 1 + 2 + 4 + ... + 2^{102} = 2^{103} - 1. Certainly

S=2103117(mod8).S = 2^{103} - 1 \equiv -1 \equiv 7 \pmod {8}. In addition, since we already computed ord125(2)=d=100\text{ord}_{125}(2) = d = 100, we know that

S=21031=21002312317(mod125).S = 2^{103} - 1 = 2^{100} \cdot 2^3 - 1 \equiv 2^3 - 1 \equiv 7 \pmod {125}. Therefore, since S7(mod8)S \equiv 7 \pmod{8} and S7(mod125)S \equiv 7 \pmod{125}, we conclude that S007(mod1000).S \equiv \boxed{007} \pmod {1000}.

The second way is not as slick, but works better in a general setting when there aren't any convenient tricks as in Method 1. Let us split the terms of SS into groups:

R=1+2+4;T=23+24++2102.R = 1 + 2 + 4; \quad T = 2^3 + 2^4 + \cdots + 2^{102}. It is easy to see that RR is congruent to 77 modulo 1000.1000.

Now, for TT, notice that there are 100100 terms in the summation, each with a different remainder upon division by 125.125. Since each of these remainders is certainly relatively prime to 125125, these 100100 remainders correspond to the 100100 positive integers less than 125125 that are relatively prime to 125.125. Therefore,

T1+2+3+4+6+7+8+9+11++124(mod125)=(1+2+3++125)(5+10+15+125)=12512625(1+2+3+25)=125635(25262)=125(6313)0(mod125).\begin{aligned}T &\equiv 1 + 2 + 3 + 4 + 6 + 7 + 8 + 9 + 11 + \cdots + 124 \pmod{125} \\ &= \left(1 + 2 + 3 + \cdots + 125\right) - \left(5 + 10 + 15 + \cdots 125\right) \\ &= \frac{125 \cdot 126}{2} - 5\left(1 + 2 + 3 + \cdots 25\right) \\ &= 125 \cdot 63 - 5\left(\frac{25 \cdot 26}{2}\right) \\ &= 125\left(63 - 13\right) \\ &\equiv 0 \pmod{125}.\end{aligned} Then, since TT is divisible by 125125 and 88, it follows that TT is divisible by 1000.1000. Therefore,

S=R+TR007(mod1000).S = R + T \equiv R \equiv \boxed{007} \pmod{1000}.

Solution 3

Obviously, 2i2^i will have to repeat at some point, and our goal is just to find when it repeats. Suppose 2a2^a is the first time the powers of 2 repeat mod 1000, and that it is the same as 2b2^b where b<a.b < a. We have

2a2bmod10002a2b0mod10002^a \equiv 2^b \mod 1000 \rightarrow 2^a - 2^b \equiv 0 \mod 1000 We can factor out a 2b2^b to get

2b(2ab1)0mod10002^b\left(2^{a-b} - 1\right) \equiv 0 \mod 1000 Now, let's apply CRT. Obviously, if it is 0 mod 1000, this means directly that it is 0 mod 8 and 0 mod 125. Since 2ab12^{a-b} - 1 has to be odd, this necessarily means b3b \ge 3 for 8÷2b.8 \div 2^b. This means that 125 has to divide 2ab1.2^{a-b} - 1. We wish to find the minimum aba - b such that this is true, or similarly, we just wish to find ord125(2).\text{ord}_{125}(2). Note that by Euler's Totient Theorem, that 21001mod125.2^{100} \equiv 1 \mod 125. After checking, and seeing that 2501mod1252^{50} \equiv -1 \mod 125, this directly means that ord125(2)=100\text{ord}_{125}(2) = 100 or ab=100.a - b = 100. Since b3b \ge 3, the smallest (a,b)(a, b) pair is (103,3).(103, 3). What this really means is that the sequence of remainders will start repeating at 21032^{103} or namely that {20,21,...,2102}\{2^0, 2^1, ..., 2^{102}\} are all distinct residues mod 1000. Adding these yields

21031817mod10002^{103} - 1 \equiv 8 - 1 \equiv \boxed{7} \mod 1000

Solution 4 (Not rigorous)

If we write out the remainders when powers of 22 are divided by 10001000, we must eventually write a number we have already written down. After this happens, we will fall into a cycle, and thus, nothing new will be written down.

The answer extraction of the problem is equivalent to asking for 1+2+4++2n(mod1000)1+2+4 + \dots + 2^n \pmod{1000}, where 2n+12^{n+1} is the first number whose remainder when divided by 10001000 is a repeat. This expression is equivalent to 2n+11(mod1000)2^{n+1}-1 \pmod{1000}. So our answer will just be the first repeated remainder minus 11.

(Everything up to this point has been perfectly rigorous; now, we will destroy this.)

Note that 11, 22 and 44 cannot be the first repeated remainders, due to the 22, 44 and 88 divisibility rules, respectively (i.e. 202^0, 212^1 and 222^2 are the only powers of 22 that leave a remainder of 11, 22 and 44, respectively, when divided by 10001000.) There is no reason why 88 could not be the first repeated remainder, so it probably is. Thus, our answer is 81=78-1 = \boxed{7}. (In fact, one can quite easily show that if 88 reappears at all in the sequence, it must be the first repeated remainder.)

~ihatemath123

Solution 5 (Very bad idea)

We can simply list out the last 33 digits of all the powers of 22 until we find a pattern.

Note: This solution is very tedious and should not be used unless there is enough remaining time and you can't think of any other way

001,002,004,008,016,032,064,128,256,512,024,048,096,192,384,768,536,072,144,288,576,152,304,608,001, 002, 004, 008, 016, 032, 064, 128, 256, 512, 024, 048, 096, 192, 384, 768, 536, 072, 144, 288, 576, 152, 304, 608, 216,432,864,728,456,912,824,648,296,592,184,368,736,472,944,888,776,552,104,208,416,832,664,328,216, 432, 864, 728, 456, 912, 824, 648, 296, 592, 184, 368, 736, 472, 944, 888, 776, 552, 104, 208, 416, 832, 664, 328, 656,312,624,248,496,992656, 312, 624, 248, 496, 992 \cdots

We can see that after 496496 comes 992992 which can be written as 8(mod1000)-8 \pmod {1000}. That means that all the terms after 88 will repeat but negated modulo 10001000. Note that n(modm)+n(modm)=0(modm)n \pmod m + -n \pmod m = 0 \pmod m. As we are looking for the sum of all of the possible values mod 10001000, the answer is just 1+2+4=0071 + 2 + 4 = \fbox{007}

~EvanZ

Solution 6 (not rigorous)

Note that the problem essentially asks for the sum of all xx in the residue class of 10001000 that come from a power of 22. We can split up this residue class into finding a solution for xx in the modular system

x2nmod8x \equiv 2^n \bmod 8 x2nmod125x \equiv 2^n \bmod 125 Clearly, if n3n \geq 3, we get the first equation to be

x0mod8x \equiv 0 \bmod 8 If n2n \leq 2, we get our residues to be 11,22, and 44 which add to 77. Now, we just need to worry about the 125125 mod equation. If we take a look at the powers of 22 modulo 55, we see that we get every residue except for 00. If we consider it modulo 2525, we see that we get every residue except for 0,5,10,15,200,5,10,15,20 (ie. all multiples of 55). This is similar to hensel's lemma but it isn't and from here we assume the pattern will continue in that the residues will only be exempt of the multiples of 55 in modulo 125125. Therefore, we can add all multiples of 88 from 00 to 10001000 and subtract the multiples of 4040 to get 0mod10000 \bmod 1000. Therefore, our final answer is 7\fbox{7}.

~Vedoral

Video Solution

2011 AIME I #11

MathProblemSolvingSkills.com