返回题库

AIME 2012 II · 第 7 题

AIME 2012 II — Problem 7

专题
Contest Math
难度
L4
来源
AIME

题目详情

Problem 7

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

解析

Solution

Okay, an exercise in counting (lots of binomials to calculate!). In base 2, the first number is 1111111111111111, which is the only way to choose 8 1's out of 8 spaces, or (88)\binom{8}{8}. What about 9 spaces? Well, all told, there are (98)=9\binom{9}{8}=9, which includes the first 1. Similarly, for 10 spaces, there are (108)=45,\binom{10}{8}=45, which includes the first 9. For 11 spaces, there are (118)=165\binom{11}{8}=165, which includes the first 45. You're getting the handle. For 12 spaces, there are (128)=495\binom{12}{8}=495, which includes the first 165; for 13 spaces, there are (138)=1399>1000\binom{13}{8}=13 \cdot 99 > 1000, so we now know that NN has exactly 13 spaces, so the 2122^{12} digit is 1.

Now we just proceed with the other 12 spaces with 7 1's, and we're looking for the 1000495=505th1000-495=505th number. Well, (117)=330\binom{11}{7}=330, so we know that the 2112^{11} digit also is 1, and we're left with finding the 505330=175th505-330=175th number with 11 spaces and 6 1's. Now (106)=210,\binom{10}{6}=210, which is too big, but (96)=84.\binom{9}{6}=84. Thus, the 292^9 digit is 1, and we're now looking for the 17584=91st175-84=91st number with 9 spaces and 5 1's. Continuing the same process, (85)=56\binom{8}{5}=56, so the 282^8 digit is 1, and we're left to look for the 9156=35th91-56=35th number with 8 spaces and 4 1's. But here (74)=35\binom{7}{4}=35, so N must be the last or largest 7-digit number with 4 1's. Thus the last 8 digits of NN must be 0111100001111000, and to summarize, N=1101101111000N=1101101111000 in base 22. Therefore, N=8+16+32+64+256+512+2048+409632(mod1000)N = 8+16+32+64+256+512+2048+4096 \equiv 32 \pmod{1000}, and the answer is 032\boxed{032}.

Video Solution

2012 AIME II #7

Math Problem Solving Skills