MathorynMathematical Formula Database

Combinatorics

Permutations of a Multiset

The number of distinct arrangements of nn objects in which n1n_1 are alike, n2n_2 are alike, and so on. It is used for counting words with repeated letters.

n!n1! n2!⋯nk!\frac{n!}{n_1!\,n_2!\cdots n_k!}
LaTeX\frac{n!}{n_1!\,n_2!\cdots n_k!}

Variables

nn
total number of objects
nin_i
multiplicity of each kind

Example

How many arrangements of the letters of MISSISSIPPI?

  1. M:1, I:4, S:4, P:2; n=11n=11.
  2. 11!1! 4! 4! 2!\frac{11!}{1!\,4!\,4!\,2!}.

Answer: 3465034650.

Related formulas