Problem 920: (1994 AIME, 4)
Find the positive integer $n$ for which \[ \lfloor \log_2{1}\rfloor+\lfloor\log_2{2}\rfloor+\lfloor\log_2{3}\rfloor+\cdots+\lfloor\log_2{n}\rfloor=1994 \] (For real $x$, $\lfloor x\rfloor$ is the greatest integer $\le x.$)
- For $2^k\le n<2^{k+1}$ the term is $k$. Up to $n=255$ the sum is $\sum_{k=0}^7k2^k=6\cdot2^8+2=1538$.
- Each further term is $8$, and $1994-1538=456=8\cdot57$.
- $n=255+57=312$. The answer is $\boxed{312}$.
Find the positive integer $n$ for which \[ \lfloor \log_2{1}\rfloor+\lfloor\log_2{2}\rfloor+\lfloor\log_2{3}\rfloor+\cdots+\lfloor\log_2{n}\rfloor=2778 \] (For real $x$, $\lfloor x\rfloor$ is the greatest integer $\le x.$)