2012 AIME II Problem 7

Below is the professionally curated solution for Problem 7 of the 2012 AIME II, from LIVE by Po-Shen Loh. You can also try the full timed exam, view all 2012 AIME II solutions, or check the answer key.

All of the real AMC 8, AMC 10, AMC 12, and AIME problems in our complete solution collection are used with official legal permission of the Mathematical Association of America (MAA).

Concepts:number basecombinationssystematic listing

Difficulty rating: 2790

7.

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.

Solution:

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+28+26+25+24+23=7032,2^{12} + 2^{11} + 2^9 + 2^8 + 2^6 + 2^5 + 2^4 + 2^3 = 7032, so the remainder upon division by 10001000 is 32.32.

← Problem 6Full ExamProblem 8

Problem 7 in Other Years