Question 721
Let $\clubsuit(x)$ denote the sum of the digits of the positive integer $x$. For example, $\clubsuit(8) = 8$ and $\clubsuit(123) = 1 + 2 + 3 = 6$. For how many two-digit values of $x$ is $\clubsuit(\clubsuit(x)) = 3$?
Xem đáp án và lời giải
Đáp án: $10$
Let $y = \clubsuit(x)$. For a two-digit integer $10 \leqslant x \leqslant 99$, the maximum digit sum is $9 + 9 = 18$, so $1 \leqslant y \leqslant 18$. If $\clubsuit(y) = 3$, the possible values of $y \leqslant 18$ are: \[ y = 3 \text{ or } y = 12. \] Now we find the two-digit integers $x$ such that $\clubsuit(x) = y$: For $\clubsuit(x) = 3$: the two-digit numbers are $12, 21, 30$ ($3$ numbers). For $\clubsuit(x) = 12$: the two-digit numbers are $39, 48, 57, 66, 75, 84, 93$ ($7$ numbers). In total, there are $3 + 7 = 10$ such values of $x$.