返回题库

AIME 2003 I · 第 13 题

AIME 2003 I — Problem 13

专题
Contest Math
难度
L4
来源
AIME

题目详情

Problem

Let NN be the number of positive integers that are less than or equal to 20032003 and whose base-22 representation has more 11's than 00's. Find the remainder when NN is divided by 10001000.

解析

Solution 1

In base-22 representation, all positive numbers have a leftmost digit of 11. Thus there are (nk){n \choose k} numbers that have n+1n+1 digits in base 22 notation, with k+1k+1 of the digits being 11's.

In order for there to be more 11's than 00's, we must have k+1>n+12    k>n12    kn2k+1 > \frac{n+1}{2} \implies k > \frac{n-1}{2} \implies k \ge \frac{n}{2}. Therefore, the number of such numbers corresponds to the sum of all numbers on or to the right of the vertical line of symmetry in Pascal's Triangle, from rows 00 to 1010 (as 2003<21112003 < 2^{11}-1). Since the sum of the elements of the rrth row is 2r2^r, it follows that the sum of all elements in rows 00 through 1010 is 20+21++210=2111=20472^0 + 2^1 + \cdots + 2^{10} = 2^{11}-1 = 2047. The center elements are in the form (2ii){2i \choose i}, so the sum of these elements is i=05(2ii)=1+2+6+20+70+252=351\sum_{i=0}^{5} {2i \choose i} = 1 + 2 +6 + 20 + 70 + 252 = 351.

The sum of the elements on or to the right of the line of symmetry is thus 2047+3512=1199\frac{2047 + 351}{2} = 1199. However, we also counted the 4444 numbers from 20042004 to 2111=20472^{11}-1 = 2047. Indeed, all of these numbers have at least 66 11's in their base-22 representation, as all of them are greater than 1984=1111100000021984 = 11111000000_2, which has 55 11's. Therefore, our answer is 119944=11551199 - 44 = 1155, and the remainder is 155\boxed{155}.

Solution 2

We seek the number of allowed numbers which have kk 1's, not including the leading 1, for k=0,1,2,,10k=0, 1, 2, \ldots , 10.

For k=0,,4k=0,\ldots , 4, this number is

(kk)+(k+1k)++(2kk)\binom{k}{k}+\binom{k+1}{k}+\cdots+\binom{2k}{k}.

By the Hockey Stick Identity, this is equal to (2k+1k+1)\binom{2k+1}{k+1}. So we get

(11)+(32)+(53)+(74)+(95)=175\binom{1}{1}+\binom{3}{2}+\binom{5}{3}+\binom{7}{4}+\binom{9}{5}=175.

For k=5,,10k=5,\ldots , 10, we end on (10k)\binom{10}{k} - we don't want to consider numbers with more than 11 digits. So for each kk we get

(kk)+(k+1k)++(10k)=(11k+1)\binom{k}{k}+\binom{k+1}{k}+\ldots+\binom{10}{k}=\binom{11}{k+1}

again by the Hockey Stick Identity. So we get

(116)+(117)+(118)+(119)+(1110)+(1111)=2112=210=1024\binom{11}{6}+\binom{11}{7}+\binom{11}{8}+\binom{11}{9}+\binom{11}{10}+\binom{11}{11}=\frac{2^{11}}{2}=2^{10}=1024.

The total is 1024+175=11991024+175=1199. Subtracting out the 4444 numbers between 20032003 and 20482048 gives 11551155. Thus the answer is 155155.

Solution 3

We will count the number of it <211=2048< 2^{11}=2048 instead of 20032003 (In other words, the length of the base-2 representation is at most 1111. If there are even digits, 2n2n, then the leftmost digit is 11, the rest, 2n12n-1, has odd number of digits. In order for the base-2 representation to have more 11's, we will need more 11 in the remaining 2n12n-1 than 00's. Using symmetry, this is equal to 29+27+..+212\frac{2^9+2^7+..+2^1}{2} Using similar argument where there are odd amount of digits. The remaining even amount of digit must contains the number of 11's at least as the number of 00's. So it's equal to (105)+210+(84)+28+(63)+26+...+(00)+202\frac{\binom{10}{5}+2^{10}+\binom{8}{4}+2^8+\binom{6}{3}+2^6+...+\binom{0}{0}+2^0}{2} Summing both cases, we have 20+21+..+210+(00)+..+(105)2=199\frac{2^0+2^1+..+2^{10}+\binom{0}{0}+..+\binom{10}{5}}{2} = 199. There are 4444 numbers between 20042004 and 20472047 inclusive that satisfy it. So the answer is 19944=155199-44=\boxed{155}

~minor edits by minediamonds