How do I calculate the amount of different probable values for X in the following scenario.
It can be between 1 and 9 digits (no zero). No digits can repeat inside X.
Invalid:
943288 (repeated 8), 3229 (repeated 2), 11 (repeated 1), 128809 (zero present)
Valid:
928516, 123, 15