Given $2n$ letters, two of each of $n$ types. How many arrangements of these letters are there with no pair of consecutive letters the same? Please check my solution and tell me where my mistake is!
So such arrangements where the pairs of identical letters are distinguishable. Then $∑^n_k (−1)^k2^k(2n−k)! C(n,k)$ gives the number of such arrangements by inclusion-exclusion (there are $(2n−k)!$ ways for $k$ given pairs to be together (by merging the those pairs into single elements) and the rest arbitrarily ordered, $2^k$ ways to order within those given pairs, and $C(n, k)$ ways to pick those $k$ pairs).So we can obtain the formula :$∑^n_k(−1)^k2^k(2n−k)!C(n,k)$.