Jerry wrote down the ones digit of each of the first positive squares: . What is the sum of all the numbers Jerry wrote down?
- A)
- B)
- C)
- D)
- E)
Answer
D
Key insight
The ones digit of n^2 depends only on the ones digit of n, so the list repeats with period 10 and each block of ten sums to 45.
Solution
The ones digit of is determined by the ones digit of , so Jerry's list repeats with period . Squaring gives ones digits
which sum to .
Now split . The squares of through form complete blocks, contributing
The remaining terms come from , whose ones digits are ; their squares end in , a further .
The total is .
The answer is .
Why this works
Only matters for the ones digit of , which turns an apparently enormous sum into one block sum times a count plus a short remainder. The same routine handles any digit-of-a-power sum: find the period, sum one period, divide the range by the period, and add the partial block by hand. The symmetry also explains why the block reads as a palindrome around the .
The trap
Taking 2025/10 = 202 complete blocks and stopping at 202 * 45 = 9090, forgetting the five leftover squares, which is choice (C).
Common mistakes
- Taking 2025/10 = 202 complete blocks and stopping at 202 * 45 = 9090, forgetting the five leftover squares, which is choice (C).
- Starting the block at and summing , which is still but shifts the leftover terms by one, giving the wrong tail.
Techniques
Set up the equation/formula and compute; no special trick needed · Compute small cases, spot the pattern, generalize