2009 AMC 10A Problem 5
What is the sum of the digits of the square of ?
Show solution without answering
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 .
Concise solution
A shorter write-up, the way contest solutions are usually written. It may take a different route from the solution above.
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)
Similar problems
Problem © Mathematical Association of America (MAA), American Mathematics Competitions. Reproduced for non-commercial educational use. Solution and commentary are original to this site.