AMC 10 Step by Step

2002 AMC 10B Problem 3

P1-10~2 minPrint

The arithmetic mean of the nine numbers in the set {9,99,999,9999,…,999999999}\{9, 99, 999, 9999, \ldots, 999999999\} is a 99 -digit number MM , all of whose digits are distinct. The number MM doesn't contain the digit

Log in to save your progress.
Show solution without answering

Key insight

Every number made of nines is 9 times a number made of ones. So the mean is 1 + 11 + 111 + ... + 111111111, which is 123456789.

Solution

The mean is the total divided by 99. Every number in the set is made of nines, and dividing by 99 is easy for those, so divide first and add afterwards.

1. Notice 9=9×19 = 9 \times 1, 99=9×1199 = 9 \times 11, 999=9×111999 = 9 \times 111, and so on. A number made of kk nines is 99 times the number made of kk ones.
2. So the total is 9×(1+11+111+⋯+111111111)9 \times (1 + 11 + 111 + \cdots + 111111111), and dividing by 99 gives
M=1+11+111+⋯+111111111.M = 1 + 11 + 111 + \cdots + 111111111.
3. Add this column by column. Line the numbers up on the right:

columnonestenshundreds…\ldotsleftmost
how many 1s998877…\ldots11

Every one of the nine numbers has a ones digit, eight of them have a tens digit, and so on, until only the longest number reaches the ninth column.
4. No column adds to more than 99, so nothing carries. Reading the columns from left to right gives
M=123456789.M = 123456789.
5. The digits are 11 through 99. The only digit missing is 00.

The answer is (A) 0\boxed{\textbf{(A)}\ 0}.

Why this works

Numbers like 999…9999\ldots9 are almost always easier to handle as 9×111…19 \times 111\ldots1 (or as a power of ten minus one). Here, dividing by 99 before adding turned a messy sum into stacked rows of ones, and those add with no carrying. Next time you see all-nines numbers, try one of these two rewrites first.

Alternative approach

Each number is a power of ten minus one: 9=10−19 = 10 - 1, 99=100−199 = 100 - 1, and so on up to 109−110^9 - 1. The powers of ten add to 11111111101111111110, and there are nine "minus ones", so the total is 1111111110−9=11111111011111111110 - 9 = 1111111101. Long division by 99 gives 123456789123456789, which has no 00.

Concise solution

A shorter write-up, the way contest solutions are usually written. It may take a different route from the solution above.

A string of kk nines equals 99 times a string of kk ones. So dividing each member of the set by 99 before adding, the mean is
M=1+11+111+⋯+111111111.M = 1 + 11 + 111 + \cdots + 111111111.

Add by columns. The units column contains a 11 from every one of the nine terms, so it sums to 99. The tens column gets a 11 from the eight terms with at least two digits, giving 88; the hundreds column gives 77; and so on down to the leftmost column, which gets a single 11. Every column total is at most 99, so there are no carries, and reading the columns from left to right gives
M=123456789.M = 123456789.

The digits of MM are 11 through 99; the missing digit is 00.

The answer is (A) 0\boxed{\textbf{(A)}\ 0}.

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. Also appeared as 2002 12B #1.