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 is taken by exactly 2n+1 consecutive terms, so the sum is sum n(2n+1) for n up to 44 plus the single leftover term 45.
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 .
Why this works
A floor function is constant on long stretches, so the right move is always to ask how long each stretch is rather than to evaluate terms one by one. Here the stretch lengths are the odd numbers, which is why the sum reduces to a sum of squares. The same grouping handles , and similar sums; the only care needed is at the top end, where the last block is usually incomplete.
Alternative approach
Count each term by how many squares it dominates: . Swapping the order of summation,
This version avoids having to notice that the last block is a single term.
The trap
Using 2n terms per block instead of 2n+1, which loses the perfect squares themselves and changes the ones digit.
Common mistakes
- Using terms per block instead of , which loses the perfect squares themselves and changes the ones digit.
- Running the blocks up to , which would cover up to instead of stopping at .
- Computing the whole sum with the digit-by-digit arithmetic done carelessly; tracking only the last digit of each of the three pieces is far safer.
Techniques
Set up the equation/formula and compute; no special trick needed · Compute small cases, spot the pattern, generalize