I define a number $x$ to be nice if $x = \text{product of digits of }x + \text{sum of digits of }x$. For example,
$$69 = (6 \times 9) + (6 + 9)$$
Motivated by the niceness of $69$, I wish to characterise all nice numbers.
I thought it would be best to slowly increase the number of digits and try to see a pattern.
$2$ Digits
$$x = \overline{ab} = 10a + b = ab + a + b \implies 9a = ab \implies 9 = b \; \text{as} \; a \neq 0$$ $$\therefore x = \{19, 29, 39, ..., 99\}$$
$3$ Digits
$$x = \overline{abc} = 100a + 10b + c = abc + a + b + c \implies 99a + 9b = abc \implies 11a + b = \frac{abc}{9}$$
Testing $0 \le a, b, c \in \mathbb{Z} \le 9$ and $a \neq0$ s.t. $\frac{abc}{9} \in \mathbb{Z}$, I find no solutions exist.
It seems that as we increase the number of digits, no more nice numbers exist. How do I prove this?
Other interesting questions I thought of:
- nice numbers in different base systems?
- considering clusters of digits instead of individual digits?
You don’t have to answer these questions, but if you want to give any insights on them, feel free to do so.