I would like to know how many $22$ letter words can be made that have exactly $7$ A's, $6$ B's , $5$ C's and $4$ D's and have no consecutive letters the same.
This problem is clearly equivalent to finding the number of ways to partition $[22]$ into $4$ sets of sizes $7,6,5,4$ such that no set contains consecutive integers, or to the number of ways of coloring $P_{22}$ properly using $4$ identical colors, with multiplicities $7,6,5$ and $4$
I have been having a lot of trouble with this question. It is a rather well known result that the number of ways to color any tree with $n$ vertices properly, using $k$ colors is $n-1\brace k-1$. But when we add restrictions to the number of vertices of each color it seems to be harder.
Inclusion-Exclusion seems to be useless also.
Other good answers to this problem can be found here and here
http://math.stackexchange.com/questions/129451/find-the-number-of-arrangements-of-k-mbox-1s-k-mbox-2s-cdots/129802#129802
– Aug 11 '15 at 13:26