Given a problem as follows.
How many 4-permutations of "aaabbccdef" are there?
Attempt
Divide the problem into disjoint cases:
- 4-permutation of $\{a,b,c,d,e,f\}$
- permutation of $\{2*x, y, z\}$
- permutation of $\{2*x, 2*y\}$
- permutation of $\{3*a, x\}$
The number of permutations for
- case 1: $P^6_4=360$
- case 2: $C^3_1\times C^5_2\times\frac{4!}{2!}=360$
- case 3: $C^3_2\times \frac{4!}{2!\times 2!}=18$
- case 4: $C^5_1\times \frac{4!}{3!}=20$
Total number of permutation is $758$.
Question
Is there any simpler approach which is very useful for longer words to be made?
Permutations[StringSplit["aaabbccdef", ""], {4}] // Lengthand my answer is correct but it becomes complicated for longer words. – Display Name Aug 17 '20 at 01:41