The digits that are given are 0, 1, 3, 5, 7 and 9. Any number that is divisible by 10 must contain 0 at the end of that number. Thus fix 0 at the units place of the 6 digit number. Then 5 digits are left which will be rearranged in such a way that no digit is repeated. It can be done when all the vacant spaces are occupied by the remaining 5 digits taken all at a time.
The formula for the permutation is,
Substitute 5 for n and 5 for r in the above formula.
The formula to calculate
Thus the factorial of 5 is,
Thus, the number of ways the 6 digit numbers are formed is 120.