AMC 10 Step by Step

2013 AMC 10B Problem 18

P16-20~4 minPrint

The number 20132013 has the property that its units digit is the sum of its other digits, that is 2+0+1=32+0+1=3 . How many integers less than 20132013 but greater than 10001000 share this property?

Log in to save your progress.
Show solution without answering

Key insight

For numbers 1bcd, the last digit is 1 + b + c, so b + c is at most 8: that gives 45 numbers. Add 2002.

Solution

The numbers run from 10011001 to 20122012. Split them into the ones starting with 11 and the ones starting with 22.

Numbers from 10011001 to 19991999.

  1. Write such a number with digits 1,b,c,d1, b, c, d. We need d=1+b+cd = 1 + b + c.
  2. Once bb and cc are chosen, dd is fixed. The only catch is that dd must be a single digit, at most 99, so b+cb + c can be at most 88.
  3. Count the pairs (b,c)(b, c) for each possible sum:
b+cb + c012345678
number of pairs123456789

(For example, sum 22 has the pairs (0,2),(1,1),(2,0)(0,2), (1,1), (2,0).) The total is 1+2+⋯+9=451 + 2 + \cdots + 9 = 45.
4. The pair b=c=0b = c = 0 gives 10011001, which is more than 10001000, so it counts.

Numbers from 20002000 to 20122012.

  1. These have digits 2,0,c,d2, 0, c, d with c=0c = 0 or 11. We need d=2+cd = 2 + c. With c=0c = 0 we get 20022002, which works. With c=1c = 1 we get 20132013, which is not less than 20132013, so it is out. That is 11 more number.

Total: 45+1=4645 + 1 = 46.

The answer is (D) 46\boxed{\textbf{(D)}\ 46}.

Why this works

Once the first digit is fixed, the last digit is decided by the middle two, so the problem becomes counting pairs of digits with a limited sum, which gives 1+2+⋯+91 + 2 + \cdots + 9. The upper limit 20132013 is a deliberate edge: always check the short, awkward range at the end separately.

Concise solution

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

Write the number as abcd‾\overline{abcd} with a∈{1,2}a \in \{1, 2\} and the condition d=a+b+cd = a + b + c, which requires a+b+c≤9a + b + c \le 9.

Thousands digit 11. Numbers 10011001 to 19991999: we need d=1+b+cd = 1 + b + c, so b+c≤8b + c \le 8, and each such pair (b,c)(b, c) determines dd uniquely. For each sum s=b+cs = b + c from 00 to 88 there are s+1s + 1 pairs, so the count is
1+2+⋯+9=45.1 + 2 + \cdots + 9 = 45.
(The pair b=c=0b = c = 0 gives 10011001, which is greater than 10001000 and allowed.)

Thousands digit 22. Only 20002000 to 20122012 are in range, so b=0b = 0 and c∈{0,1}c \in \{0, 1\}. With c=0c = 0, d=2d = 2: 20022002 works. With c=1c = 1, d=3d = 3 gives 20132013, which is excluded. That is 11 more.

Total: 45+1=4645 + 1 = 46.

The answer is (D) 46\boxed{\textbf{(D)}\ 46}.

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.