2025 AMC 10B Problem 18
What is the ones digit of the sum (Recall that represents the greatest integer less than or equal to .)
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
- Look at the first few terms.
| to | to | to | to | |
|---|---|---|---|---|
| how many terms |
The value starts at and lasts until just before . That is terms.
- Where does it stop? . So the values each get their full stretch, ending at . Then alone gives .
3. Write the sum.
Each piece is , so
4. Use the standard sum formulas.
5. Add.
The ones digit is . (You can see this even sooner: and both end in , so the ones digit comes from the .)
The answer is .
Why this works
A floor function stays the same for long stretches, so instead of working out terms, ask how long each stretch is. The gaps between squares are the odd numbers , 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 depends only on the ones digit of . For to the pieces are , with ones digits , adding to .
- to : four such blocks, , ones digit .
- to : same ones digits as to , which are , ones digit .
- The last term: , ones digit .
So the ones digit is .
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 ,
and that block contains integers.
Since , the values are exactly the complete blocks for (the last one ends at ), and is left over on its own, contributing . Hence
Now and , so
Only the ones digit is wanted, and it can be read off before the additions are finished: ends in , ends in , so the ones digit is the ones digit of , namely .
The answer is .
Review in the AoPS books
- Introduction to Algebra, Chapter 21: Sequences & Series (§21.1, §21.2, §21.3, §21.4)
- Introduction to Number Theory, Chapter 1: Integers: The Basics
- Prealgebra, Chapter 15: Problem-Solving Strategies (§15.1)
- Intermediate Algebra, Chapter 17: More Sequences and Series (§17.1, §17.2)
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.