2006 AIME II 第 7 题

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

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

7.

求正整数有序对 (a,b)(a, b) 的个数,使得 a+b=1000a + b = 1000,并且 aabb 的十进制表示中都不含数字零。

Find the number of ordered pairs of positive integers (a,b)(a, b) such that a+b=1000a + b = 1000 and neither aa nor bb has a zero digit.

答案:738
知识点:数字补集计数分类讨论
难度评级:2510
解答:

总共有 999999 个数对(a=1,,999a = 1, \ldots, 999);数其中不合格的。若 aa 的个位为 00,则 bb 的个位也为零,写成 a=10ra = 10rb=10sb = 10s 得到 r+s=100r + s = 100,且 1r991 \le r \le 99:共有 9999 个不合格数对。

现在假设两个数的个位都非零。此时一个数含有零数字,当且仅当它是形如 h0uh0u 的三位数,其中 h,u{1,,9}h, u \in \{1, \ldots, 9\}(个位非零的一位数或两位数没有零数字)。若 a=h0ua = h0u, 则 b=1000ab = 1000 - a =100(9h)+90= 100(9 - h) + 90 +(10u)+ (10 - u) 的十位为 99, 所以 bb 不会也是这种形式。因此这里的不合格数对正好是 a,ba, b 中恰有一个等于 h0uh0u: 共有 81+81=16281 + 81 = 162 个。

不合格数对总数为 99+162=26199 + 162 = 261, 所以答案是 999261=738999 - 261 = 738

There are 999999 pairs in all (a=1,,999a = 1, \ldots, 999); count the forbidden ones. If aa has units digit 0,0, so does b,b, and writing a=10r,a = 10r, b=10sb = 10s gives r+s=100r + s = 100 with 1r99:1 \le r \le 99: that is 9999 forbidden pairs.

Now suppose both units digits are nonzero. Then a number in the pair has a zero digit exactly when it is a three-digit number of the form h0uh0u with h,u{1,,9}h, u \in \{1, \ldots, 9\} (a one- or two-digit number with nonzero units digit has no zero digit). If a=h0u,a = h0u, then b=1000ab = 1000 - a =100(9h)+90= 100(9 - h) + 90 +(10u)+ (10 - u) has tens digit 9,9, so bb is not also of that form. Hence the forbidden pairs here are those where exactly one of a,ba, b equals h0u:h0u: 81+81=16281 + 81 = 162 pairs.

The total number of forbidden pairs is 99+162=261,99 + 162 = 261, so the answer is 999261=738.999 - 261 = 738.

← 第 6 题#6
完整试卷

其他年份的第 7 题