I am not really sure I fully understand the formula for finding the number of permutation of duplicate items.
The formula is:
$$\frac{n!}{p!q!r!\cdots}$$
Where do the factorials in the denominator exactly come from?
If we asssume the string "ANNA" and we want the count of the permutation of duplicate items.
We have $4$ characters so since we have $4$ options for the first character, $3$ for the second, $2$ for the third and $1$ for the last we have $4!$ different permutations.
But some of the characters are duplicates.
We have "A" and "N" repeated, meaning it adds more permutations to the outcome.
If $p=2$ is the number of occurences of "A" and if $q = 2$ is the number of occurences for "N" then would the $p!$ and $q!$ essentially be selecting $1$ item at a time from $2$ (or $p$) duplicates? So essentially are the denominators the binomial $\binom{2}{1}$ (or generally $\binom{p}{1}$ where $p$ are the number of repeated characters) where order does not matter?
Is my understanding correct?
Pick which of the spaces are used by the objects of the first type.the part that is confusing to me is that the number of spaces across the length of the string is not taken into account. I think that is the root of my confusion – Jim Feb 24 '21 at 16:58BANANAwe begin with six spaces:_ _ _ _ _ _We choose three of those spaces to be used by the letterA, as a visual example of one such way of choosing three spaces it might have beenA _ A A _ _. We then choose one more of these spaces to be used for the letterB. Building on the previous visual example, we might have chosen to place theBat the end for our current example becomingA _ A A _ B. We now place the twoN's in the final two remaining spaces making our running exampleA N A A N B– JMoravitz Feb 24 '21 at 17:10BANANA– JMoravitz Feb 24 '21 at 17:11