AMC 10 Step by Step

2009 AMC 10A Problem 5

P1-10~2 minPrint

What is the sum of the digits of the square of 111,111,111111,111,111 ?

Log in to save your progress.
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.

  1. Small cases:
NumberSquare
1111121121
1111111232112321
1111111112343211234321

2. The pattern: with nn ones, the square's digits count up 1,2,…,n1, 2, \ldots, n and then back down to 11.
3. With nine ones this gives
111,111,1112=12,345,678,987,654,321.111{,}111{,}111^2 = 12{,}345{,}678{,}987{,}654{,}321.
4. Add the digits. The numbers 11 to 88 appear twice and 99 appears once:
2(1+2+⋯+8)+9=2×36+9=81.2(1 + 2 + \cdots + 8) + 9 = 2 \times 36 + 9 = 81.

The answer is (E) 81\boxed{\textbf{(E)}\ 81}.

Why this works

Why does the pattern keep working up to nine ones? In long multiplication of 111,111,111111{,}111{,}111 by itself, each column gets a stack of 11s: 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 11s written in all the columns of the long multiplication. Each of the 99 ones in the top number times each of the 99 ones in the bottom number puts one 11 somewhere, so the total is 9×9=819 \times 9 = 81.

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: 112=12111^2 = 121, 1112=12321111^2 = 12321, 11112=12343211111^2 = 1234321. A string of nn ones squared (for n≤9n \le 9) gives the palindrome 12…n…2112\ldots n\ldots21: the digits climb from 11 to nn and then descend back to 11.

With n=9n = 9,
111,111,1112=12,345,678,987,654,321.111{,}111{,}111^2 = 12{,}345{,}678{,}987{,}654{,}321.

Its digit sum is
2(1+2+⋯+8)+9=2⋅36+9=81.2(1 + 2 + \cdots + 8) + 9 = 2 \cdot 36 + 9 = 81.

The answer is (E) 81\boxed{\textbf{(E)}\ 81}.

Review in the AoPS books

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.