返回题库

AIME 2021 I · 第 3 题

AIME 2021 I — Problem 3

专题
Contest Math
难度
L4
来源
AIME

题目详情

Problem

Find the number of positive integers less than 10001000 that can be expressed as the difference of two integral powers of 2.2.

解析

Solution 1

We want to find the number of positive integers n<1000n<1000 which can be written in the form n=2a2bn = 2^a - 2^b for some non-negative integers a>b0a > b \ge 0 (note that if a=ba=b, then 2a2b=02^a-2^b = 0). We first observe aa must be at most 10; if a11a \ge 11, then 2a2b210>10002^a - 2^b \ge 2^{10} > 1000. As 210=102410002^{10} = 1024 \approx 1000, we can first choose two different numbers a>ba > b from the set {0,1,2,,10}\{0,1,2,\ldots,10\} in (112)=55\binom{11}{2}=55 ways. This includes (a,b)=(10,0)(a,b) = (10,0), (10,1)(10,1), (10,2)(10,2), (10,3)(10,3), (10,4)(10,4) which are invalid as 2a2b>10002^a - 2^b > 1000 in this case. For all other choices aa and bb, the value of 2a2b2^a - 2^b is less than 1000.

We claim that for all other choices of aa and bb, the values of 2a2b2^a - 2^b are pairwise distinct. More specifically, if (a1,b1)(a2,b2)(a_1,b_1) \neq (a_2,b_2) where 10a1>b1010 \ge a_1 > b_1 \ge 0 and 10a2>b2010 \ge a_2 > b_2 \ge 0, we must show that 2a12b12a22b22^{a_1}-2^{b_1} \neq 2^{a_2} - 2^{b_2}. Suppose otherwise for sake of contradiction; rearranging yields 2a1+2b2=2a2+2b12^{a_1}+2^{b_2} = 2^{a_2}+2^{b_1}. We use the fact that every positive integer has a unique binary representation:

If a1b2a_1 \neq b_2 then {a1,b2}={a2,b1}\{a_1,b_2\} = \{a_2,b_1\}; from here we can deduce either a1=a2a_1=a_2 and b1=b2b_1=b_2 (contradicting the assumption that (a1,b1)(a2,b2)(a_1,b_1) \neq (a_2,b_2), or a1=b1a_1=b_1 and a2=b2a_2=b_2 (contradicting the assumption a1>b1a_1>b_1 and a2>b2a_2>b_2).

If a1=b2a_1 = b_2 then 2a1+2b2=2×2a12^{a_1}+2^{b_2} = 2 \times 2^{a_1}, and it follows that a1=a2=b1=b2a_1=a_2=b_1=b_2, also contradicting the assumption (a1,b1)(a2,b2)(a_1,b_1) \neq (a_2,b_2). Hence we obtain contradiction.*

Then there are (112)5\binom{11}{2}-5 choices for (a,b)(a,b) for which 2a2b2^a - 2^b is a positive integer less than 1000; by the above claim, each choice of (a,b)(a,b) results in a different positive integer nn. Then there are 555=05055-5 = \boxed{050} integers which can be expressed as a difference of two powers of 2.

  • Note: The uniqueness of binary representation could be rather easily proven, but if you cannot convince yourself on the spot that this is the case, consider the following alternative proof. Let (a1,b1)(a2,b2)(a_1,b_1) \neq (a_2,b_2) where 10a1>b1010 \ge a_1 > b_1 \ge 0 and 10a2>b2010 \ge a_2 > b_2 \ge 0 and 2a12b1=2a22b22^{a_1}-2^{b_1} = 2^{a_2} - 2^{b_2}, for the sake of contradiction. Therefore deg2(2a12b1)=deg2(2a22b2)\deg_{2}(2^{a_1}-2^{b_1})=\deg_{2}(2^{a_2}-2^{b_2}), or b1=b2b_1=b_2. Plugging in, we see that 2a1=2a22^{a_1}=2^{a_2}, or a1=a2a_1=a_2, contradiction.

Note by Ross Gao

Solution 2 (Casework)

Case 1: When our answer is in the form 2n2i2^n-2^i, where ii is an integer such that 0i40\le i\le 4.

We start with the subcase where it is 2n202^n-2^0, for some integer nn where n>0n>0 (this is because the case where n=0n=0 yields 2020=02^0-2^0=0, which doesn't work because it must be a positive integer.) Note that 210=10242^{10}=1024, and 29=5122^9=512. Our answer needs to be less than 10001000, so the maximum possible result (in this case) is 29202^9-2^0. Our lowest result is 21202^1-2^0. All the positive powers of two less than 10241024 work, so we have 99 possibilities for this subcase. For subcases i=1,i=2,i=3,i=1, i=2, i=3, and i=4i=4, we have 8,7,6,8, 7, 6, and 55 possibilities, respectively.

Case 2: When our answer is in the form of 2n2j2^n-2^j, where jj is an integer such that 5j95\le j\le 9.

We can start with the subcase where j=5j=5. We notice that 25=322^5=32, and 21025=9922^{10}-2^5=992 which is less than 10001000, so the greatest result in this subcase is actually 210252^{10}-2^5, and the lowest is 26252^6-2^5. Thus, we have 55 possibilities. For the other four subcases, we have 4,3,2,4, 3, 2, and 11 possibilities, respectively.

Answer: We note that these are our only cases, as numbers in the form of 2n2102^n-2^{10} and beyond are greater than 10001000.

Thus, our result is 9+8+7+6+5+5+4+3+2+1=(9+8+7+6+5+4+3+2+1)+5=509+8+7+6+5+5+4+3+2+1=(9+8+7+6+5+4+3+2+1)+5=\boxed{50}. ~jehu26

Solution 3 (Bash)

We look for all positive integers of the form 2a2b<1000,2^a-2^b<1000, where 0bPerformingcaseworkon0\leq b Performing casework ona,$ we can enumerate all possibilities in the table below:

[2.25ex]ab[2ex]1020,130,1,240,1,2,350,1,2,3,460,1,2,3,4,570,1,2,3,4,5,680,1,2,3,4,5,6,790,1,2,3,4,5,6,7,8100,1,2,3,4,5,6,7,8,9[0.5ex]\begin{array}{c|c} & \\ [-2.25ex] \boldsymbol{a} & \boldsymbol{b} \\ \hline & \\ [-2ex] 1 & 0 \\ 2 & 0,1 \\ 3 & 0,1,2 \\ 4 & 0,1,2,3 \\ 5 & 0,1,2,3,4 \\ 6 & 0,1,2,3,4,5 \\ 7 & 0,1,2,3,4,5,6 \\ 8 & 0,1,2,3,4,5,6,7 \\ 9 & 0,1,2,3,4,5,6,7,8 \\ 10 & \xcancel{0},\xcancel{1},\xcancel{2},\xcancel{3},\xcancel{4},5,6,7,8,9 \\ [0.5ex] \end{array} As indicated by the X-marks, the ordered pairs (a,b)=(10,0),(10,1),(10,2),(10,3),(10,4)(a,b)=(10,0),(10,1),(10,2),(10,3),(10,4) generate 2a2b>1000,2^a-2^b>1000, which are invalid.

Note that each of the remaining ordered pairs generates one unique desired positive integer.

We prove this statement as follows:

  1. The positive integers generated for each value of aa are clearly different.

  2. For all integers kk such that 1k9,1\leq k\leq9, the largest positive integer generated for a=ka=k is 11 less than the smallest positive integer generated for a=k+1.a=k+1.

Together, we have justified our claim in bold. The answer is

1+2+3+4+5+6+7+8+9+5=050.1+2+3+4+5+6+7+8+9+5=\boxed{050}. ~MRENTHUSIASM

Solution 4 (Faster Way)

Because the difference is less than 10001000, we can simply list out all numbers that satisfy 2n<10002^n < 1000. We get 0n<100 \le n < 10, where n is an integer. Because the sequence 2n2^n is geometric, the difference of any two terms will be unique. (102)\binom{10}{2} will be the number of differences for 0n<100\le n < 10. However, we also need to consider the case in which n=10n=10. With simple counting, we find that 55 numbers: (32,64,128,256,512)(32, 64, 128, 256, 512) could be subtracted from 10241024, which makes another 5 cases. There is no need to check for higher exponents since the lowest difference would be 211210=10242^{11} - 2^{10} = 1024, which exceeds 10001000.

Thus, the final answer is (102)+5=050.\binom{10}{2} + 5 = \boxed{050}.

~TOMYANG

Video Solution by Punxsutawney Phil

https://youtube.com/watch?v=H17E9n2nIyY&t=569s

Video Solution

https://youtu.be/M3DsERqhiDk?t=749

Video Solution by Power of Logic

https://youtu.be/FdB0XMlVC7A

Video Solution by WhyMath

https://youtu.be/7q83bqTP7Qg

~savannahsolver