Permutations

Overview

A permutation of some n objects is a (possible) rearrangement of those n objects. The number of permutations is n! since there are n possible ways to pick the first object, (n1) possible ways to pick the second, and so on.

Alternatively, we say a permutation of a set A is a bijective function ϕ:AA. If A={a1,a2,,an} is finite, we may denote permutation ϕ as

ϕ=(a1a2anai1ai2ain),

where i1,i2,,in is a permutation of set {1,2,,n}.

Falling Factorials

If we generalize to choosing kn elements of n objects, we can calculate the k-permutation of n. This is denoted as (n)k, sometimes called the falling factorial.

(n)k=n!(nk)!

The derivation works by noting that we have n0 possible ways to pick the first object, n1 ways to pick the second, up until n(k1) ways to pick the last object.

Derangements

A derangement is a permutation of the elements of a set in which no element appears in its original position. That is, it is a permutation with no fixed points.

Inversions

Let π be a permutation. There is an inversion of π between i and j if i<j and π(i)>π(j).

Powered by Forestry.md