we would like to arrange the numbers: $ 1, 2, \ldots , N$ in a line.
what is the probability that digits $1, 2$ are not arranged next to each other?
what is the probability that digits $1, 2$ are not arranged next to each other, and also the digits $3, 4$ are arranged next to each other?
my attempt:
This is mostly a combinatorics question, as the "Probability", meaning: $$\Omega = N!$$
- I treated $1, 2$ as a unit, looking for the number of different ways to arrange them next to each other - which would be the Complementary event. $$P(A)^C = \frac{(N-1)! \cdot 2 }{N!}$$ where there's in fact $N-1$ needed to be arranged, ans 2 is the number of permutations.
so that $$P(A) = 1- \frac{(N-1)! \cdot 2 }{N!} = 1 - \frac{2}{N}$$
for the second sections - I'm not sure. suppose I'd be looking the number of different ways to arrange $1, 2, \ldots N$ in a line so that the digits $1, 2$ and $ 3, 4$ are always arranged next to each other, then that will be: $$\frac{(N-2)! \cdot 2 \cdot 2}{N!}$$ where 4 is the number of permutations (2 for each unit of digits) but does that mean that there's $$\left(N! - {(N-2)! \cdot 2 \cdot 2}\right) \cdot \left((N-2)! \cdot 2 \right)$$ ways to arrange the numbers?
that doesn't seem right.
Regardless of the other numbers in the list, there are $2(N-1)$ ways to position $1$ and $2$ next to each other in a list of size $N$. Assume they take the first position, then you have to sort the other $N-2$ values into a list of size $N-2$. Thus we have that the total ways of satisfying the question is: $$2(N-1)\cdot (N-2)!=2(N-1)! $$
The probability follows nicely from this, it is $$\frac{2(N-1)!}{N!}=\frac 2N $$
This approach should also work for (b).