2. The product of all digits of positive integer M is 105 How many such M's are there with distinct digits?
I tried 6 for the problem above but it wasn't right... Any thoughts on why?
----------
I think the answer is not 6 because 1 can also be a digit of M.
105 = 3 * 5 * 7
So 5, 3, and 7 must be digits of M, while 1 might be a digit of M.
So the possiblites are:
357
375
537
573
735
753
In addition to:
| 1357 1375 1537 1573 1735 1753 | ____ | 3157 3175 3517 3571 3715 3751 | ____ | 5137 5173 5317 5371 5713 5731 | ____ | 7135 7153 7315 7351 7513 7531 |
the total number of possibilities = 3! + 4! = 6 + 6*4 = 6 + 24 = 30