AMC 10 Step by Step

2025 AMC 10B Problem 18

P16-20~5 minPrint

What is the ones digit of the sum ⌊1⌋+⌊2⌋+⌊3⌋+⋯+⌊2025⌋?\lfloor \sqrt{1} \rfloor + \lfloor \sqrt{2} \rfloor + \lfloor \sqrt{3} \rfloor + \dots + \lfloor \sqrt{2025} \rfloor? (Recall that ⌊x⌋\lfloor x \rfloor represents the greatest integer less than or equal to xx .)

Log in to save your progress.
Show solution without answering

Key insight

The value n appears 2n + 1 times, from n² to just before (n+1)². So add n(2n + 1) for n = 1 to 44, plus 45.

Solution

  1. Look at the first few terms.
kk11 to 3344 to 8899 to 15151616 to 2424
⌊k⌋\lfloor \sqrt{k} \rfloor11223344
how many terms33557799

The value nn starts at k=n2k = n^2 and lasts until just before (n+1)2(n+1)^2. That is (n+1)2−n2=2n+1(n+1)^2 - n^2 = 2n + 1 terms.

  1. Where does it stop? 2025=4522025 = 45^2. So the values 1,2,…,441, 2, \ldots, 44 each get their full stretch, ending at k=2024k = 2024. Then k=2025k = 2025 alone gives 4545.

3. Write the sum.
S=(1⋅3+2⋅5+3⋅7+⋯+44⋅89)+45.S = \bigl(1\cdot 3 + 2 \cdot 5 + 3 \cdot 7 + \cdots + 44 \cdot 89\bigr) + 45.
Each piece is n(2n+1)=2n2+nn(2n+1) = 2n^2 + n, so
S=2 (12+22+⋯+442)+(1+2+⋯+44)+45.S = 2\,(1^2 + 2^2 + \cdots + 44^2) + (1 + 2 + \cdots + 44) + 45.

4. Use the standard sum formulas.
1+2+⋯+44=44⋅452=990,12+22+⋯+442=44⋅45⋅896=29370.1 + 2 + \cdots + 44 = \frac{44 \cdot 45}{2} = 990, \qquad 1^2 + 2^2 + \cdots + 44^2 = \frac{44 \cdot 45 \cdot 89}{6} = 29370.

5. Add.
S=2⋅29370+990+45=58740+990+45=59775.S = 2 \cdot 29370 + 990 + 45 = 58740 + 990 + 45 = 59775.
The ones digit is 55. (You can see this even sooner: 5874058740 and 990990 both end in 00, so the ones digit comes from the 4545.)

The answer is (D) 5\boxed{\textbf{(D)}\ 5}.

Why this works

A floor function stays the same for long stretches, so instead of working out 20252025 terms, ask how long each stretch is. The gaps between squares are the odd numbers 3,5,7,…3, 5, 7, \ldots, which turns the sum into a sum of squares. Always check the top end, where the last stretch is usually cut short; here it is just one term.

Alternative approach

Only the ones digit is wanted, so track only ones digits. The ones digit of n(2n+1)n(2n+1) depends only on the ones digit of nn. For n=1n = 1 to 1010 the pieces are 3,10,21,36,55,78,105,136,171,2103, 10, 21, 36, 55, 78, 105, 136, 171, 210, with ones digits 3,0,1,6,5,8,5,6,1,03, 0, 1, 6, 5, 8, 5, 6, 1, 0, adding to 3535.

  • n=1n = 1 to 4040: four such blocks, 4×35=1404 \times 35 = 140, ones digit 00.
  • n=41n = 41 to 4444: same ones digits as 11 to 44, which are 3+0+1+6=103 + 0 + 1 + 6 = 10, ones digit 00.
  • The last term: 4545, ones digit 55.

So the ones digit is 0+0+5→50 + 0 + 5 \to 5.

Concise solution

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

Group the terms by their common value. For a positive integer nn,
⌊k⌋=n  ⟺  n2≤k≤(n+1)2−1,\lfloor \sqrt{k} \rfloor = n \iff n^2 \le k \le (n+1)^2 - 1,
and that block contains (n+1)2−n2=2n+1(n+1)^2 - n^2 = 2n + 1 integers.

Since 2025=4522025 = 45^2, the values k=1,2,…,2024k = 1, 2, \dots, 2024 are exactly the complete blocks for n=1,2,…,44n = 1, 2, \dots, 44 (the last one ends at 452−1=202445^2 - 1 = 2024), and k=2025k = 2025 is left over on its own, contributing 4545. Hence
S=∑n=144n(2n+1)+45=2∑n=144n2+∑n=144n+45.S = \sum_{n=1}^{44} n(2n+1) + 45 = 2\sum_{n=1}^{44} n^2 + \sum_{n=1}^{44} n + 45 .

Now ∑n=144n2=44⋅45⋅896=29370\displaystyle\sum_{n=1}^{44} n^2 = \frac{44 \cdot 45 \cdot 89}{6} = 29370 and ∑n=144n=44⋅452=990\displaystyle\sum_{n=1}^{44} n = \frac{44 \cdot 45}{2} = 990, so
S=58740+990+45=59775.S = 58740 + 990 + 45 = 59775 .

Only the ones digit is wanted, and it can be read off before the additions are finished: 2⋅293702 \cdot 29370 ends in 00, 990990 ends in 00, so the ones digit is the ones digit of 4545, namely 55.

The answer is (D) 5\boxed{\textbf{(D)}\ 5}.

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.