AMC 10 Step by Step

2003 AMC 10B Problem 7

P1-10~2 minPrint

The symbolism ⌊x⌋\lfloor x \rfloor denotes the largest integer not exceeding xx . For example, ⌊3⌋=3,\lfloor 3 \rfloor = 3, and ⌊9/2⌋=4\lfloor 9/2 \rfloor = 4 . Compute ⌊1⌋+⌊2⌋+⌊3⌋+⋯+⌊16⌋.\lfloor \sqrt{1} \rfloor + \lfloor \sqrt{2} \rfloor + \lfloor \sqrt{3} \rfloor + \cdots + \lfloor \sqrt{16} \rfloor.

Log in to save your progress.
Show solution without answering

Key insight

The rounded-down square root stays the same between perfect squares: it is 1 three times, 2 five times, 3 seven times, then 4 once at 16.

Solution

  1. ⌊n⌋\lfloor \sqrt{n} \rfloor means: take the square root, then drop anything after the decimal point. It only changes value when nn passes a perfect square, so split 11 to 1616 at the perfect squares 1,4,9,161, 4, 9, 16.
  2. Make a table:
nnn\sqrt{n} is between⌊n⌋\lfloor \sqrt{n} \rfloorHow many nn
1,2,31, 2, 311 and 221133
4,5,6,7,84, 5, 6, 7, 822 and 332255
9,10,…,159, 10, \ldots, 1533 and 443377
1616exactly 444411

3. Add each value times how many times it appears:
3⋅1+5⋅2+7⋅3+1⋅4=3+10+21+4=38.3 \cdot 1 + 5 \cdot 2 + 7 \cdot 3 + 1 \cdot 4 = 3 + 10 + 21 + 4 = 38.

The answer is (B) 38\boxed{\textbf{(B)}\ 38}.

Why this works

Between two perfect squares the rounded-down root does not change, so sixteen separate values collapse into four groups. The group for value kk runs from k2k^2 up to just before (k+1)2(k+1)^2, which is 2k+12k + 1 numbers: 3,5,7,…3, 5, 7, \ldots. When a sum has many equal terms, group them and multiply.

Concise solution

A shorter write-up, the way contest solutions are usually written. It may take a different route from the solution above.

⌊n⌋=k\lfloor \sqrt{n} \rfloor = k exactly when k2≤n<(k+1)2k^2 \le n < (k+1)^2. Split 11 through 1616 by the perfect squares 1,4,9,161, 4, 9, 16:

  • n=1,2,3n = 1, 2, 3: three terms, each equal to 11;
  • n=4,…,8n = 4, \dots, 8: five terms, each equal to 22;
  • n=9,…,15n = 9, \dots, 15: seven terms, each equal to 33;
  • n=16n = 16: one term equal to 44.

Adding,
3⋅1+5⋅2+7⋅3+1⋅4=3+10+21+4=38.3 \cdot 1 + 5 \cdot 2 + 7 \cdot 3 + 1 \cdot 4 = 3 + 10 + 21 + 4 = 38.

The answer is (B) 38\boxed{\textbf{(B)}\ 38}.

Review in the AoPS books

Similar problems

Problem © Mathematical Association of America (MAA), American Mathematics Competitions. Reproduced for non-commercial educational use. Solution and commentary are original to this site.