返回题库

AIME 2007 I · 第 7 题

AIME 2007 I — Problem 7

专题
Contest Math
难度
L4
来源
AIME

题目详情

Problem

Let N=k=11000k(log2klog2k)N = \sum_{k = 1}^{1000} k ( \lceil \log_{\sqrt{2}} k \rceil - \lfloor \log_{\sqrt{2}} k \rfloor )

Find the remainder when NN is divided by 1000. (k\lfloor{k}\rfloor is the greatest integer less than or equal to kk, and k\lceil{k}\rceil is the least integer greater than or equal to kk.)

解析

Solution

The ceiling of a number minus the floor of a number is either equal to zero (if the number is an integer); otherwise, it is equal to 1. Thus, we need to find when or not log2k\log_{\sqrt{2}} k is an integer.

The change of base formula shows that logklog2=2logklog2\frac{\log k}{\log \sqrt{2}} = \frac{2 \log k}{\log 2}. For the log2\log 2 term to cancel out, kk is a power of 22. Thus, NN is equal to the sum of all the numbers from 1 to 1000, excluding all powers of 2 from 20=12^0 = 1 to 29=5122^9 = 512.

The formula for the sum of an arithmetic sequence and the sum of a geometric sequence yields that our answer is [(1000+1)(1000)2(1+2+22++29)]mod1000\left[\frac{(1000 + 1)(1000)}{2} - (1 + 2 + 2^2 + \ldots + 2^9)\right] \mod{1000}.

Simplifying, we get [1000(1000+12)1023]mod1000[50023]mod1000477mod1000.\left[1000\left(\frac{1000+1}{2}\right) -1023\right] \mod{1000} \equiv [500-23] \mod{1000} \equiv 477 \mod{1000}. The answer is 477\boxed{477}