combinatorics - How many permutations if no two balls of the same color to be adjacent to each other?
Number of possible permutations of n1 1's, n2 2's, n3 3's, n4 4's such that no two adjacent elements are same?