list p = {a, b, c, c, c, c, d, d, d, d}
how many different permutations can we make of list p?
for ten distinct elements, it would be 10! here, we have two sets of four identical elements. for each one, we need to divide by 4!, because all rearrangements of four identical elements result in identical permutations.