How many 9-digit numbers can you write with the numbers from 1 to 9 (without repeating) such that 3,4 and 5 are together (not necessarily in order) and 6 is somewhere on the left of 5?
I've come up with this problem and I'd like to know if you get the same result as I did: $15 120$
I thought about it like this:
- $6$ $\color{red}5$ $\color{red}4$ $\color{red}3$ _ _ _ _ _ Here you have ${\color{red}{3!}}\times 5! \times 1$
- $6$ _ $5$ $4$ $3$ _ _ _ _ Here you have $3! \times 5! \times 2$
and so on until I got $3!\times 5! \times (1+2+3+4+5+6)=15 120$
Thank you for the input.
First think of it as writing $7$-digit numbers with the seven digits $0,1,2,6,7,8,9$ where $6$ comes before $0$ and no repetition is allowed.
There are $\frac12\times7!$ possibilities.
Then afterwards replace digit $0$ by one of the $3$-digits words written with the three digits $3,4,5$ where again no repetition is allowed.
That gives $3!\times\frac12\times7!$ possibilities.