Let denote the greatest integer . Then is equal to
Solution
Core idea. The greatest integer of a square root is constant between consecutive perfect squares.
Concept refresher. For a natural number , exactly when , and the number of such is
Picture the situation. The square root grows slowly, so its greatest integer stays the same over long stretches: it is 1 for the numbers 1 to 3, it is 2 for 4 to 8, it is 3 for 9 to 15, and so on. Each stretch starts at a perfect square and ends just before the next. The sum is each value times the length of its stretch.
Approach. Group the terms into blocks between consecutive squares and add value times count.
Step 1: The blocks
For each , the numbers with all have , and there are of them. The block for runs from 100 to 120, exactly where the sum stops.
Step 2: The sum
Each block contributes . With the squares up to 10 adding to 385 and the integers to 55, the sum is .
Answer. 825
Sanity check. The first three blocks give , and directly the first 15 terms are three 1s, five 2s and seven 3s, which add to 34.
Common wrong answers
- 770: Using numbers per block instead of gives .
Key takeaway
The trap. Each block has one more number than twice its value.
How toppers think. They check that the last block is complete before using the formula.
Remember. Block of : numbers