Hello, Punch!
A six-digit number is to be formed from the digits 1, 2 ,3, 4, 5, 6, 7, 8, 9.
Find how many ways the six-digit number can be formed if the number must be odd
and is less than 600,000 and no digit may appear more than once.
The number is odd; the last digit must be 1, 3, 5, 7 or 9.
The number is less than 600,00; the first digit must 1, 2, 3, 4 or 5.There are two cases to consider.
(1) The last digit is 1, 3 or 5: .$3$ choices.
. . .The first digit has only $4$ choices.
. . .There are $\text{P}(7,4)$ ways to arrange the other four digits.
There are: .$ 3\cdot4\cdot\text{P}(7,4) \,=\,10,080 $ ways.
(2) The last digit is 7 or 9: .$2$ choices.
. . .The first digit has all $5$ choices.
. . .There are $\text{P}(7,4)$ ways to arrange the other four digits.
There are: .$ 2\cdot5\cdot\text{P}(7,4) \,=\,8,400 $ ways.
Therefore, there are: .$10,080 + 8,400 \:=\:18,480 $ ways.