2004 AIME II 第 10 题

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

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

10.

S\mathcal{S}112402^{40} 之间、二元展开中恰有两个 11 的整数集合。 从 S\mathcal{S} 中随机选一个数,它能被 99 整除的概率为 pq\frac{p}{q},其中 ppqq 是互质正整数。求 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}(402)=780\binom{40}{2} = 780 个数 2a+2b2^a + 2^b 组成,其中 0a<b390 \le a \lt b \le 39。由于 2a2^a99 互质,92a(2ba+1)9 \mid 2^a(2^{b-a} + 1) 当且仅当 2ba1(mod9)2^{b-a} \equiv -1 \pmod{9}22 的幂模 99 依次循环为 2,4,8,7,5,12, 4, 8, 7, 5, 1,周期为 66,所以 2d812^d \equiv 8 \equiv -1 当且仅当 d3(mod6)d \equiv 3 \pmod{6}

对每个差值 d=bad = b - a40d40 - d 个数对,所以 S\mathcal{S}99 的倍数个数为 d=3,9,,39(40d)=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}

概率为 133780\frac{133}{780}。因为 133=719133 = 7 \cdot 19,而 780=223513780 = 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 0a<b39.0 \le a \lt b \le 39. Since 2a2^a is coprime to 9,9, we have 92a(2ba+1)9 \mid 2^a(2^{b-a} + 1) exactly when 2ba1(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 2d812^d \equiv 8 \equiv -1 exactly when d3(mod6).d \equiv 3 \pmod{6}.

For each difference d=bad = b - a there are 40d40 - d pairs, so the number of multiples of 99 in S\mathcal{S} is d=3,9,,39(40d)=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=719133 = 7 \cdot 19 while 780=223513,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 题