返回题库

AIME 1994 · 第 4 题

AIME 1994 — Problem 4

专题
Contest Math
难度
L4
来源
AIME

题目详情

Problem

Find the positive integer nn\, for which

log21+log22+log23++log2n=1994\lfloor\log_2{1}\rfloor+\lfloor\log_2{2}\rfloor+\lfloor\log_2{3}\rfloor+\cdots+\lfloor\log_2{n}\rfloor=1994 (For real xx\,, x\lfloor x\rfloor\, is the greatest integer x.\le x.\,)

解析

Solution 1

Note that if 2xa<2x+12^x \le a<2^{x+1} for some xZx\in\mathbb{Z}, then log2a=log22x=x\lfloor\log_2{a}\rfloor=\log_2{2^{x}}=x.

Thus, there are 2x+12x=2x2^{x+1}-2^{x}=2^{x} integers aa such that log2a=x\lfloor\log_2{a}\rfloor=x. So the sum of log2a\lfloor\log_2{a}\rfloor for all such aa is x2xx\cdot2^x.

Let kk be the integer such that 2kn<2k+12^k \le n<2^{k+1}. So for each integer j,therearej, there are2^jintegersintegersa\le nsuchthatsuch that\lfloor\log_2{a}\rfloor=j,andthereare, and there aren-2^k+1suchintegerssuchthatsuch integers such that\lfloor\log_2{a}\rfloor=k$.

Therefore, log21+log22+log23++log2n=j=0k1(j2j)+k(n2k+1)=1994\lfloor\log_2{1}\rfloor+\lfloor\log_2{2}\rfloor+\lfloor\log_2{3}\rfloor+\cdots+\lfloor\log_2{n}\rfloor= \sum_{j=0}^{k-1}(j\cdot2^j) + k(n-2^k+1) = 1994.

Through computation: j=07(j2j)=1538<1994\sum_{j=0}^{7}(j\cdot2^j)=1538<1994 and j=08(j2j)=3586>1994\sum_{j=0}^{8}(j\cdot2^j)=3586>1994. Thus, k=8k=8.

So, j=0k1(j2j)+k(n2k+1)=1538+8(n28+1)=1994n=312\sum_{j=0}^{k-1}(j\cdot2^j) + k(n-2^k+1) = 1538+8(n-2^8+1)=1994 \Rightarrow n = \boxed{312}.

Alternatively, one could notice this is an arithmetico-geometric series and avoid a lot of computation.

Solution 2

For this solution, we notice that values between ranges of 2n2^n are the same. Let's look at these ranges and their total value. It is trivial to conclude log21=0\log_2{1} = 0 so we will not write that.

\begin{array}{c|c} \text{Range of } k & \text{Expression (Total)} \\ \hline 2 \leq k < 2^2 & 1 \cdot (2^2 - 2) = 2 \\ 2^2 \leq k < 2^3 & 2 \cdot (2^3 - 2^2) = 8 \\ 2^3 \leq k < 2^4 & 3 \cdot (2^4 - 2^3) = 24 \\ 2^4 \leq k < 2^5 & 4 \cdot (2^5 - 2^4) = 64 \\ 2^5 \leq k < 2^6 & 5 \cdot (2^6 - 2^5) = 160 \\ 2^6 \leq k < 2^7 & 6 \cdot (2^7 - 2^6) = 384 \\ 2^7 \leq k < 2^8 & 7 \cdot (2^8 - 2^7) = 896 \\ \end{array}

Sum of the values up to 11 less than 2k2^k is 15381538. This seems close enough to our desired value of 19941994 as any additional groups would exceed 19941994. The difference is 19961538=4561996 - 1538 = 456. Since the next numbers of the sequence will always be 8 since log228+n<29=8\lfloor \log_2{2^8 + n < 2^9} \rfloor = 8, we can just find the number of '8's, which is 4568=57\frac{456}{8} = 57. So there are exactly 57 integers in that range. The largest integer, which is aa, is equal to 28+56=3122^8 + 56 = \boxed{312}. ~Totient4Breakfast

Solution 3 (Variation of Solution 1)

Like in solution 1, continue upon realization that we get the series 0+2(1)+4(2)+8(3)++k(n)0 + 2(1) + 4(2) + 8(3) + \dots + k(n).

Then, this series can be written as

k=0nk2k=1994\sum_{k=0}^n k2^k = 1994 Continuing forth with solution 1, we can see that if n=7n=7, we get 1538<19941538 < 1994, and if n=8n=8, we get 3586>19943586 > 1994.

Then, we see that there must be m(8)m(8) such that 1538+8m=19941538 + 8m = 1994. Solving for mm we get m=57m=57.

We see that 2k+2k+1+2k+2++2k+n2^k + 2^{k+1} + 2^{k+2} + \dots + 2^{k+n} is the number of terms in this sequence for 0k70 \le k \le 7 and n=7n=7, and we include the additional 57 terms. To do this, we don't want to include the arithmetic portion of our series, turning our arithmetico-geometric series into

(k=0n2k)+57\left(\sum_{k=0}^n 2^k\right) + 57 The finite geometric sum results in 255, in which the value of nn is determined as 255+57=255 + 57 = 312\boxed{312}.

~Pinotation