返回题库

AIME 2007 I · 第 11 题

AIME 2007 I — Problem 11

专题
Contest Math
难度
L4
来源
AIME

题目详情

Problem

For each positive integer pp, let b(p)b(p) denote the unique positive integer kk such that kp<12|k-\sqrt{p}| < \frac{1}{2}. For example, b(6)=2b(6) = 2 and b(23)=5b(23) = 5. If S=p=12007b(p),S = \sum_{p=1}^{2007} b(p), find the remainder when SS is divided by 1000.

解析

Solution 1

(k12)2=k2k+14\left(k- \frac 12\right)^2=k^2-k+\frac 14 and (k+12)2=k2+k+14\left(k+ \frac 12\right)^2=k^2+k+ \frac 14. Therefore b(p)=kb(p)=k if and only if pp is in this range, or k2k.Therearek^2-k. There are2knumbersinthisrange,sothesumofnumbers in this range, so the sum ofb(p)overthisrangeisover this range is(2k)k=2k^2..44<\sqrt{2007}<45,soallnumbers, so all numbers1toto44havetheirfullrange.Summingthisupwiththeformulaforthesumofthefirsthave their full range. Summing this up with the formula for the sum of the firstnsquares(squares (\frac{n(n+1)(2n+1)}{6}),weget), we get\sum_{k=1}^{44}2k^2=2\frac{44(44+1)(2*44+1)}{6}=58740.Weneedonlyconsiderthe. We need only consider the740becauseweareworkingwithmodulobecause we are working with modulo1000$.

Now consider the range of numbers such that b(p)=45b(p)=45. These numbers are 442+4522=1981\left\lceil\frac{44^2 + 45^2}{2}\right\rceil = 1981 to 20072007. There are 20071981+1=272007 - 1981 + 1 = 27 (1 to be inclusive) of them. 2745=121527*45=1215, and 215+740=955215+740= \boxed{955}, the answer.

Solution 2

Let pp be in the range of a2p<(a+1)2a^2 \le p < (a+1)^2. Then, we need to find the point where the value of b(p)b(p) flips from kk to k+1k+1. This will happen when pp exceeds (a+12)2(a+\frac{1}{2})^2 or a(a+1)+14a(a+1)+\frac{1}{4}. Thus, if a2pa(a+1)a^2 \le p \le a(a+1) then b(p)=ab(p)=a. For a(a+1)<p<(a+1)2a(a+1) < p < (a+1)^2, then b(p)=a+1b(p)=a+1. There are a+1a+1 terms in the first set of pp, and aa terms in the second set. Thus, the sum of b(p)b(p) from a2p<(a+1)2a^2 \le p <(a+1)^2 is 2a(a+1)2a(a+1) or 4(a+12)4\cdot\binom{a+1}{2}. For the time being, consider that S=p=14421b(p)S = \sum_{p=1}^{44^2-1} b(p). Then, the sum of the values of b(p)b(p) is 4(22)+4(32)++4(442)=4((22)+(32)++(442))4\binom{2}{2}+4\binom{3}{2}+\cdots +4\binom{44}{2}=4\left(\binom{2}{2}+\binom{3}{2}+\cdots +\binom{44}{2}\right). We can collapse this to 4(453)=567604\binom{45}{3}=56760. Now, we have to consider pp from 442p<200744^2 \le p < 2007. Considering pp from just 442p198044^2 \le p \le 1980, we see that all of these values have b(p)=44b(p)=44. Because there are 4545 values of pp in that range, the sum of b(p)b(p) in that range is 4544=198045\cdot44=1980. Adding this to 5676056760 we get 5874058740 or 740740 mod 10001000. Now, take the range 1980<p20071980 < p \le 2007. There are 2727 values of pp in this range, and each has b(p)=45b(p)=45. Thus, that contributes 2745=121527*45=1215 or 215215 to the sum. Finally, adding 740740 and 215215 we get 740+215=955740+215=\boxed{955}.

~firebolt360

Video Solution

2007 AIME I #11

MathProblemSolvingSkills.com