2012 AIME II 第 7 题

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

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

7.

SS 为所有二进制表示中恰好有 88 个一的正整数按递增顺序排列成的数列。令 NNSS 中第 10001000 个数。求 NN 除以 10001000 的余数。

Let SS be the increasing sequence of positive integers whose binary representation has exactly 88 ones. Let NN be the 10001000th number in S.S. Find the remainder when NN is divided by 1000.1000.

答案:32
知识点:进制组合系统列举
难度评级:2790
解答:

小于 2122^{12}SS 中元素有 (128)=495\binom{12}{8} = 495 个,小于 2132^{13} 的有 (138)=1287\binom{13}{8} = 1287 个,所以 NN 的二进制表示有 1313 位,并且小于 2132^{13} 且大于它的元素有 12871000=2871287 - 1000 = 287 个。二进制表示以 1111 开头的 (116)=462\binom{11}{6} = 462 个元素是最大的那些,所以 NN1111 开头,并且是其中第 462287=175462 - 287 = 175 小的数。

在这些数中,以 11001100 开头的有 (96)=84\binom{9}{6} = 84 个,接下来以 1101011010 开头的有 (85)=56\binom{8}{5} = 56 个,再接下来以 110110110110 开头的有 (74)=35\binom{7}{4} = 35 个。由于 84+56+35=17584 + 56 + 35 = 175,数 NN 是以 110110110110 开头的最大元素,也就是二进制数 11011011110001101101111000

它的值为 212+211+29+282^{12} + 2^{11} + 2^9 + 2^8 +26+25+24+23=7032+ 2^6 + 2^5 + 2^4 + 2^3 = 7032,所以除以 10001000 的余数是 3232

There are (128)=495\binom{12}{8} = 495 members of SS below 2122^{12} and (138)=1287\binom{13}{8} = 1287 below 213,2^{13}, so NN has 1313 binary digits, and exactly 12871000=2871287 - 1000 = 287 members below 2132^{13} exceed it. The (116)=462\binom{11}{6} = 462 members whose binary representations begin 1111 are the largest ones, so NN begins with 1111 and is the 462287=175462 - 287 = 175th smallest of them.

Among these, (96)=84\binom{9}{6} = 84 begin 1100,1100, the next (85)=56\binom{8}{5} = 56 begin 11010,11010, and the next (74)=35\binom{7}{4} = 35 begin 110110.110110. Since 84+56+35=175,84 + 56 + 35 = 175, the number NN is the largest member beginning 110110,110110, namely 11011011110001101101111000 in binary.

Its value is 212+211+29+282^{12} + 2^{11} + 2^9 + 2^8 +26+25+24+23=7032,+ 2^6 + 2^5 + 2^4 + 2^3 = 7032, so the remainder upon division by 10001000 is 32.32.

← 第 6 题#6
完整试卷

其他年份的第 7 题