What is the sum of the digits of the square of ?
- A)
- B)
- C)
- D)
- E)
Answer
E
Key insight
Squaring 11, 111 and 1111 gives 121, 12321 and 1234321; the digits climb to the number of ones and come back down, with no carrying up to nine ones.
Solution
The number is too big to square by hand quickly, so start with smaller numbers made of ones and look for a pattern.
- Small cases:
| Number | Square |
|---|---|
2. The pattern: with ones, the square's digits count up and then back down to .
3. With nine ones this gives
4. Add the digits. The numbers to appear twice and appears once:
The answer is .
Why this works
Why does the pattern keep working up to nine ones? In long multiplication of by itself, each column gets a stack of s: one in the rightmost column, two in the next, and so on up to nine in the middle, then back down. Nine is still a single digit, so nothing carries and the column totals are exactly the digits. With ten or more ones there would be carrying and the pattern would break. Trying small cases is a good way to discover a pattern, but check why it holds before trusting it for a big case.
Alternative approach
Since nothing carries, the digit sum equals the total number of s written in all the columns of the long multiplication. Each of the ones in the top number times each of the ones in the bottom number puts one somewhere, so the total is .
The trap
Remembering only the climbing half, 123456789 with digit sum 45, and forgetting that the digits come back down.
Concise solution
Try small cases: , , . A string of ones squared (for ) gives the palindrome : the digits climb from to and then descend back to .
With ,
Its digit sum is
The answer is .
Review in the AoPS books
- Introduction to Number Theory, Chapter 8: Base Numbers
- Prealgebra, Chapter 15: Problem-Solving Strategies (§15.1)
- Introduction to Number Theory, Chapter 9: Base Number Arithmetic
- Introduction to Number Theory, Chapter 12: Introduction to Modular Arithmetic (§12.6)
Techniques
Compute small cases, spot the pattern, generalize