2017 AIME II 第 4 题

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

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

4.

求不超过 20172017 的正整数中,有多少个的三进制表示不含数字 00。
Find the number of positive integers less than or equal to 20172017 whose base-three representation contains no digit equal to 0.0.
答案:222
知识点:进制数字分类讨论
小提示:
一个三进制表示不含数字 00,等价于每一位都是 11 或 22;这样的 kk 位数有 2k2^k 个
A base-three representation avoids the digit 00 exactly when every digit is 11 or 2;2; there are 2k2^k such kk-digit numbers
大提示:
因为 2017=220220132017 = 2202201_3,判断哪些由 11 和 22 组成的 77 位字符串不超过上界时,只需看前两位
Since 2017=22022013,2017 = 2202201_3, decide which 77-digit strings of 11s and 22s stay below the bound by looking at the first two digits
解答:
一个正整数的三进制表示没有 00,当且仅当每一位都是 11 或 22。对于 k=1,2,…,6k = 1, 2, \ldots, 6,这样的 kk 位数有 2k2^k 个,并且它们全都不超过 2222223=728<2017222222_3 = 728 \lt 2017。
因为 2017=220220132017 = 2202201_3,一个由 11 和 22 组成的七位字符串不超过 20172017,当且仅当它以 1111、1212 或 2121 开头:任何以 2222 开头的字符串都会在第三位超过 220220132202201_3,因为它的各位都非零。因此有 3⋅25=963 \cdot 2^5 = 96 个七位数。
总数为 2+4+8+16+32+642 + 4 + 8 + 16 + 32 + 64 +96=222+ 96 = 222。
A positive integer has no 00 in base three exactly when every digit is 11 or 2.2. For k=1,2,…,6k = 1, 2, \ldots, 6 there are 2k2^k such kk-digit numbers, and all of them are at most 2222223=728<2017.222222_3 = 728 \lt 2017.
Since 2017=22022013,2017 = 2202201_3, a seven-digit string of 11s and 22s is at most 20172017 exactly when it begins with 11,11, 12,12, or 21:21: any string beginning 2222 already beats 220220132202201_3 at the third digit, since its digits are nonzero. That gives 3⋅25=963 \cdot 2^5 = 96 seven-digit numbers.
The total is 2+4+8+16+32+642 + 4 + 8 + 16 + 32 + 64 +96=222.+ 96 = 222.
LIVE by Po-Shen Loh
LIVE项目

LIVE直播课程

Self-Paced录播课程

启明星Star计划

奖学金项目

关于我们

罗博深是谁?

邮件联系

订阅英文简报

加入我们

申请明星导师

For a more Thought Full world.

© 2026 Expii, Inc.