• A permutation of a set with elements is a bijection .
  • A permutation can be viewed as a rearrangement of the elements of where means that the element is moved to the position of element .
  • The number of permutations of a set with elements is:
  • The number of bijective functions between two sets of the same size

Partial Permutation

  • k-permutations of a set with distinct elements.
  • The number of ways to arrange distinct objects in order, chosen from available objects.
  • The number of ways to distribute  distinct balls into distinct cells, where each cell can contain either one or no ball.
  • The number of injective (one-to-one) functions from a set of size to a set of size . ()

Permutations of Multisets

  • Multinomial Coefficient
  • The number of ways to arrange a multiset of size where are the multiplicities of the elements of the multiset. (i.e. )

Permutations with Repetition

  • The number of ways to form a string of length from an alphabet of size (repetition allowed)
  • The number of ways to distribute distinct balls into distinct cells (a cell can be empty, or contain any number of balls)

Number of Surjective Functions

  • The number of surjective (onto) functions from a set of size to a set of size . ()
  • The number of ways to distribute  distinct balls into distinct cells, where each cell must contain at least one ball.

is Second kind (Stirling partition number)

Other

  • Distribute  distinct balls into distinct cells, where the first cells must contain at least balls total
  • The number of ways to distribute  distinct balls into distinct cells, where the order of balls within the cells is matter

Derangement

  • A derangement of a set with elements is a permutation such that .
    • A derangement can represent an arrangement of a sequence of elements such that no element appears in its original position.
    • A derangement is a permutation that has no fixed points.
    • (aka: אי סדר מלא, בלבול, תמורה ללא נקודות שבת)
  • The number of derangements of a set of size is known as the subfactorial of or the -th derangement number, denoted by or and is given by any of the following formulas:
    • for with and .
A000166
01234567
10129442651854

Derivation by inclusion–exclusion principle

For we define to be the set of permutations of objects that fix the -th object.

Dis. objects into indist. boxes of size r

  • The number of ways to distribute distinguishable objects into indistinguishable boxes each of size (where ) is given by