What is the ones digit of the sum (Recall that represents the greatest integer less than or equal to .)
- A)
- B)
- C)
- D)
- E)
Answer
D
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 .
The trap
Counting 2n terms for each value instead of 2n + 1, which leaves out the perfect squares themselves and changes the ones digit.
Concise solution
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)
Techniques
Set up the equation/formula and compute; no special trick needed · Compute small cases, spot the pattern, generalize