- #456
mfb
Mentor
- 37,274
- 14,120
Pen and paper approach for 108:
The number must be divisible by 9, which means the sum of its digits must be divisible by 9. There are just two digits left out. As 0+1+...+9 is divisible by 9 these two missing digits must add to 9. We can leave out 0 and 9, or 1 and 8, and so on, but we want to get the smallest number, so the best option is to leave out 4 and 5. That gives us the approach 1023xxxx with the remaining digits 6,7,8,9. It must be divisible by 4, it has to end in 68, 76 or 96. Out of that 96 leads to the smallest number, 10237896.