Calculate the number of ways to sort the numbers $1,2,...,n$ with $n\ge 4$ with the condition:
$i)\space1$ goes before $2$, and $3$ goes before $4$
$ii)\space1$ goes before $2$ and $3$, and $3$ goes before $4$
So for solving $i)$ I tried writing the solutions for $n=4$ and I got out of the possible $24$ permutations only $6$ are working which are:
$1,2,3,4.$
$1,3,2,4.$
$1,3,4,2.$
$3,4,1,2.$
$3,1,4,2.$
$3,1,2,4.$
Now, if I have a bigger n, for example just $n=5$ I noticed that the 5 will only be able to go in 5 positions for each combination. For example in the $1,2,3,4:$
$*1*2*3*4* $ the 5 can just go in the $*$.
Therefore I figured that the formula for an n would be: $$6{n\choose4}$$ where $n$ is the total number of numbers in the set. For $ii)$ following the same method I got:
$$2{n\choose4}$$
Is this correct?
i) $$\frac{n!}{4}$$ There are only six possibilities of $S_4 = 4!$ to place the first $4$ numbers. $$ n! \frac{6}{4!} = n! \frac{6}{24} = \frac{n!}{4}$$
ii) $$\frac{n!}{8}$$ There are only three possibilities of $S_4 = 4!$ to place the first $4$ numbers. $$ n! \frac{3}{4!} = n! \frac{3}{24} = \frac{n!}{8}$$