AMC 10 Step by Step

2001 AMC 10 Problem 6

P1-10~2 minPrint

Let P(n)P(n) and S(n)S(n) denote the product and the sum, respectively, of the digits of the integer nn . For example, P(23)=6P(23) = 6 and S(23)=5S(23) = 5 . Suppose NN is a two-digit number such that N=P(N)+S(N)N = P(N)+S(N) . What is the units digit of NN ?

Log in to save your progress.
Show solution without answering

Key insight

Write the number as 10 times the tens digit plus the units digit. The units digit cancels, and what is left forces it to be 9.

Solution

1. Try one number to see what the condition means. For N=23N = 23: P+S=6+5=11P + S = 6 + 5 = 11, which is not 2323. So most numbers fail.
2. To see which ones work, call the tens digit aa and the units digit bb. Then N=10a+bN = 10a + b (for example 23=10⋅2+323 = 10 \cdot 2 + 3).
3. The product of the digits is abab and the sum is a+ba + b. The condition N=P(N)+S(N)N = P(N) + S(N) becomes
10a+b=ab+a+b.10a + b = ab + a + b.
4. Both sides have a + b+\,b, so take it away from both sides:
10a=ab+a.10a = ab + a.
5. Take aa away from both sides: 9a=ab9a = ab.
6. The tens digit aa is not 00 (otherwise NN would not be a two-digit number), so we can divide both sides by aa. That gives b=9b = 9.
7. Check with N=19N = 19: P=9P = 9, S=10S = 10, and 9+10=199 + 10 = 19. It works. So do 29,39,…,9929, 39, \ldots, 99, and every one ends in 99.

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

Why this works

Writing a two-digit number as 10a+b10a + b turns a digit puzzle into ordinary algebra. Here the units digit shows up on both sides and cancels, which is why the question asks only about the units digit: the tens digit can be anything. Before dividing by a letter, always make sure it cannot be 00; a leading digit never is.

Alternative approach

Test small numbers, starting with those ending in the answer choices. 1212: 2+3=52 + 3 = 5, no. 1313: 3+4=73 + 4 = 7, no. 1616: 6+7=136 + 7 = 13, no. 1818: 8+9=178 + 9 = 17, no. 1919: 9+10=199 + 10 = 19, yes. The units digit is 99.

Concise solution

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

Let the tens digit be aa and the units digit be bb, so N=10a+bN = 10a + b with a≥1a \ge 1. Then P(N)=abP(N) = ab and S(N)=a+bS(N) = a + b, and the condition reads
10a+b=ab+a+b.10a + b = ab + a + b.
The bb on each side cancels, leaving 10a=ab+a10a = ab + a, i.e. 9a=ab9a = ab. Because a≠0a \neq 0 (it is the leading digit), divide by aa to get b=9b = 9.

Every number 19,29,…,9919, 29, \dots, 99 works (for instance 19=9+1019 = 9 + 10), and in all of them the units digit is 99.

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

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 2001 12 #2.