Question 46
Let $P(n)$ and $S(n)$ denote the product and the sum, respectively, of the digits of the integer $n$. For example, $P(23) = 6$ and $S(23) = 5$. Suppose $N$ is a two-digit number such that $N = P(N) + S(N)$. What is the units digit of $N$?
Xem đáp án và lời giải
Đáp án: $9$
Let $N = 10a + b$, where $a \in \{1, 2, \dots, 9\}$ is the tens digit and $b \in \{0, 1, \dots, 9\}$ is the units digit. Then $P(N) = ab$ and $S(N) = a + b$. The given condition is \[ 10a + b = ab + (a + b). \] Subtracting $a + b$ from both sides gives \[ 9a = ab. \] Since $a \ne 0$, we can divide by $a$ to obtain \[ b = 9. \] Thus the units digit of $N$ is 9.