Permutations with repetition

The permutations with repetition of n elements in which the first element recurs n1 times, the second n2 times... and the last one repeats itself nr times, the different groups are of nelements that can be formed so that in every group, every element appears the stated number of times. Also, two groups differ only in the order of placement. It is represented by Pnn1,,nr.

To know how many permutations with repetition of n elements, in which the first element recurs n1 times, the second n2 times... and the last one repeats itself nr times, we use the following formula: Pnn1,,nr=n!n1!nr! To understand it better, let's consider the following example:

Example

We want to know how many five-figure numbers there are in which 2 appears only once, while 7 and 9 both appear twice. In this case: n=5, n1=1,n2=2 and n3=2.

Some possibilities are: 27799,72799,92977,92779,77992,72979... but there are many others, and to find them all would take a long time.

Nevertheless, by means of the previous formula we can quickly learn that the number of possibilities is 30: P51,2,2=5!1!2!2!