Let and denote the product and the sum, respectively, of the digits of the integer . For example, and . Suppose is a two-digit number such that . What is the units digit of ?
- A)
- B)
- C)
- D)
- E)
Answer
E
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 : , which is not . So most numbers fail.
2. To see which ones work, call the tens digit and the units digit . Then (for example ).
3. The product of the digits is and the sum is . The condition becomes
4. Both sides have a , so take it away from both sides:
5. Take away from both sides: .
6. The tens digit is not (otherwise would not be a two-digit number), so we can divide both sides by . That gives .
7. Check with : , , and . It works. So do , and every one ends in .
The answer is .
Why this works
Writing a two-digit number as 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 ; a leading digit never is.
Alternative approach
Test small numbers, starting with those ending in the answer choices. : , no. : , no. : , no. : , no. : , yes. The units digit is .
The trap
Finding one number that works, such as 19, and then answering with the wrong digit, or trying to pin down the tens digit, which can be anything from 1 to 9.
Concise solution
Let the tens digit be and the units digit be , so with . Then and , and the condition reads
The on each side cancels, leaving , i.e. . Because (it is the leading digit), divide by to get .
Every number works (for instance ), and in all of them the units digit is .
The answer is .
Review in the AoPS books
- Introduction to Number Theory, Chapter 8: Base Numbers
- Introduction to Number Theory, Chapter 9: Base Number Arithmetic
- Introduction to Number Theory, Chapter 6: Special Numbers (§6.5)
Techniques
Set up the equation/formula and compute; no special trick needed