A number is self-dividing from the left if each digit is a divisor of the number formed by the digits to its left, e.g.: 513 because 5 is divisible by 1, and 51 is divisible by 3. A number is self-dividing from the right if each digit is a divisor of the number formed by the digits that follow, e.g.: 7210 because 0 is divisible by 1, 10 is divisible by 2, and 210 is divisible by 7.
Determine the smallest number that is self-dividing from the left, that contains all odd digits at least once.
Numbers can also be self-dividing from both the left and the right. This applies, for example, to 3333 and 44444. In other words, to all numbers made up of the same digit.
What is the maximum number of different digits a number can contain if it is self-dividing from both the left and the right? These digits may occur more than once. Give as your answer the smallest number that contains that many different digits.