2004 AIME II 第 10 题

先试着解答 2004 AIME II 第 10 题,然后核对你的答案与精心整理的解答,解答来自 LIVE by Po-Shen Loh。你也可以参加完整限时模拟考试、查看全部 2004 AIME II 解答,或核对答案。

所有题目均经美国数学协会(MAA)官方合法授权使用。

10.

设 S\mathcal{S} 是 11 到 2402^{40} 之间、二进制表示中恰有两个 11 的整数集合。从 S\mathcal{S} 中随机选一个数,它能被 99 整除的概率为 pq\frac{p}{q},其中 pp 和 qq 是互质正整数。求 p+qp + q。

Let S\mathcal{S} be the set of integers between 11 and 2402^{40} whose binary expansions have exactly two 11’s. If a number is chosen at random from S,\mathcal{S}, the probability that it is divisible by 99 is pq,\frac{p}{q}, where pp and qq are relatively prime positive integers. Find p+q.p + q.

答案:913
知识点:进制模幂运算乘法阶数对计数
难度评级:2920
小提示:

S\mathcal{S} 中的元素为 2a+2b=2a(2b−a+1)2^a + 2^b = 2^a(2^{b-a} + 1),其中 a<ba \lt b,所以能否被 99 整除只取决于 b−ab - a。

Elements of S\mathcal{S} are 2a+2b=2a(2b−a+1)2^a + 2^b = 2^a(2^{b-a} + 1) with a<b,a \lt b, so divisibility by 99 depends only on b−ab - a

大提示:

22 的幂模 99 的周期为 66,且 2d≡82^d \equiv 8 当且仅当 d≡3(mod6)d \equiv 3 \pmod{6};数出每个这种差值对应的数对。

Powers of 22 repeat mod 99 with period 6,6, and 2d≡82^d \equiv 8 exactly when d≡3(mod6);d \equiv 3 \pmod{6}; count the pairs with each such difference

解答:

集合 S\mathcal{S} 由 (402)=780\binom{40}{2} = 780 个数 2a+2b2^a + 2^b 组成,其中 0≤a<b≤390 \le a \lt b \le 39。由于 2a2^a 与 99 互质,2a(2b−a+1)2^a(2^{b-a} + 1) 能被 99 整除当且仅当 2b−a≡−1(mod9)2^{b-a} \equiv -1 \pmod{9}。22 的幂模 99 依次循环为 2,4,8,7,5,12, 4, 8, 7, 5, 1,周期为 66,所以 2d≡8≡−12^d \equiv 8 \equiv -1 当且仅当 d≡3(mod6)d \equiv 3 \pmod{6}。

对每个差值 d=b−ad = b - a 有 40−d40 - d 个数对,所以 99 的倍数在 S\mathcal{S} 中的个数为 ∑d=3,9,…,39(40−d)=37+31+25+19+13+7+1=133。 \begin{aligned} &\sum_{d = 3, 9, \ldots, 39} (40 - d) \\ &= 37 + 31 + 25 \\ &\quad {}+ 19 + 13 + 7 + 1 \\ &= 133 \end{aligned}\text{。}

概率为 133780\frac{133}{780}。因为 133=7⋅19133 = 7 \cdot 19,而 780=22⋅3⋅5⋅13780 = 2^2 \cdot 3 \cdot 5 \cdot 13,该分数已最简。因此 p+q=133+780=913p + q = 133 + 780 = 913。

The set S\mathcal{S} consists of the (402)=780\binom{40}{2} = 780 numbers 2a+2b2^a + 2^b with 0≤a<b≤39.0 \le a \lt b \le 39. Since 2a2^a is coprime to 9,9, we have 2a(2b−a+1)2^a(2^{b-a} + 1) divisible by 99 exactly when 2b−a≡−1(mod9).2^{b-a} \equiv -1 \pmod{9}. The powers of 22 modulo 99 cycle through 2,4,8,7,5,12, 4, 8, 7, 5, 1 with period 6,6, so 2d≡8≡−12^d \equiv 8 \equiv -1 exactly when d≡3(mod6).d \equiv 3 \pmod{6}.

For each difference d=b−ad = b - a there are 40−d40 - d pairs, so the number of multiples of 99 in S\mathcal{S} is ∑d=3,9,…,39(40−d)=37+31+25+19+13+7+1=133. \begin{aligned} &\sum_{d = 3, 9, \ldots, 39} (40 - d) \\ &= 37 + 31 + 25 \\ &\quad {}+ 19 + 13 + 7 + 1 \\ &= 133. \end{aligned}

The probability is 133780,\frac{133}{780}, and since 133=7⋅19133 = 7 \cdot 19 while 780=22⋅3⋅5⋅13,780 = 2^2 \cdot 3 \cdot 5 \cdot 13, it is in lowest terms. Thus p+q=133+780=913.p + q = 133 + 780 = 913.

第 9 题#9
完整试卷

其他年份的第 10 题