I have a word, for example SANTACLAUSE and want to calculate all permutations of variable length, but each letter can only be used as often as it it used in SANTACLAUSE.
For length = 11 its $\frac{11!}{3!2!}$. For length = 0 its 1, for length = 1 its 11 - 3 = 8. But I have no idea how to get a general formula for length n.
I am currently brute forcing it with python to get a feel for the number, but it takes a while and it gets big...
I thought about first selecting the n elements we use from all elements and then permutating the selected elements, that would be $\binom{11}{n} * n!$ but I would get duplicates and I don't know how I can eliminate them...