2007 AIME I Problem 11

Attempt Problem 11 of the 2007 AIME I below, then check your answer against the professionally curated solution from LIVE by Po-Shen Loh. You can also try the full timed exam, view all 2007 AIME I solutions, or check the answer key.

All problems are used with official legal permission of the Mathematical Association of America (MAA).

11.

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.
Answer: 955
Concepts:floor and ceiling functionssum of first n squarescounting integers in a range
Small hint:
b(p)=kb(p) = k exactly when k2−k+1≤p≤k2+k,k^2 - k + 1 \le p \le k^2 + k, a block of 2k2k values of pp
Big hint:
Complete blocks for k≤44k \le 44 cover p≤1980;p \le 1980; every remaining pp up to 20072007 has b(p)=45b(p) = 45
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.
LIVE by Po-Shen Loh
Programs

LIVE Classes

Self-Paced Classes

Stars

Scholarship

About Us

Who Is Po-Shen Loh?

Email Contact

Newsletter

Jobs

Become a Star

For a more Thought Full world.

© 2026 Expii, Inc.