Skip to main content

2007 AIME I Problem 11

Problem 11 of 15HarderAlgebraCombinatorics

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

Your answer

Integer from 0 to 999
Show solution

Solution

For a positive integer k,k, the condition ∣k−p∣<12|k - \sqrt{p}| \lt \frac{1}{2} means (k−12)2<p<(k+12)2,\left(k - \frac{1}{2}\right)^2 \lt p \lt \left(k + \frac{1}{2}\right)^2, which for integers pp is exactly k2−k+1≤p≤k2+k.k^2 - k + 1 \le p \le k^2 + k. So b(p)=kb(p) = k for precisely 2k2k values of p.p. Since 442+44=1980,44^2 + 44 = 1980, the blocks k=1,…,44k = 1, \ldots, 44 exactly cover p≤1980p \le 1980 and contribute ∑k=144k⋅2k=2⋅44⋅45⋅896=58740.\begin{aligned} \sum_{k=1}^{44} k \cdot 2k &= 2 \cdot \frac{44 \cdot 45 \cdot 89}{6} \\ &= 58740. \end{aligned} The remaining 2727 values p=1981,…,2007p = 1981, \ldots, 2007 each have b(p)=45,b(p) = 45, adding 27⋅45=1215.27 \cdot 45 = 1215. Thus S=58740+1215=59955,S = 58740 + 1215 = 59955, and the remainder is 955.955.
AoPS wiki

Tagged: floor and ceiling functions · sum of first n squares · counting integers in a range

More practice