A permutation is a rearrangement of objects. In this paper
we will only consider permutations (rearrangements) of a
finite number of objects, and since the object names don't
really matter, we will often simply consider permutations of the
numbers
. When we work with Rubik's Cube,
however, there are better names for the faces than integers--see
Section 3.
Of course we'll learn about permutations first by looking at permutations of small numbers of items, but if you think of the 54 colored faces of the little cubelets (``cubies'') on Rubik's Cube, you can see that every time you twist a side of the cube, you are rearranging those little faces.
There are plenty of other examples of permutations, many of which are extremely important and practical. For example, when you have a list of items to sort, either by hand or with a computer program, you are essentially faced with the problem of finding a permutation of the objects that will put them in order after the permutation.
If we consider permutations of
objects, there are
of them. To see this, first consider where
object number 1 winds up. There are
possibilities for that.
After the fate of object 1 is determined, there are only
possible fates for object number 2. Thus there are
permutations of
a set of
objects.
For example, if we consider all possible rearrangements of the set
, there are
of them, listed in
Table 1.
A good way to think of permutations is this (using permutations of three objects as an example): Imagine that there are three boxes labelled ``1'', ``2'', and ``3'', and initially, each contains a ball labelled with the same number--box 1 contains ball 1, and so on. A permutation is a rearrangement of the balls but in such a way that when you're done there is still only a single ball in each box.
In the table above, the notation
indicates that
whatever was in box
moves to the box labelled
, so to apply
permutation number 3 above means to take whatever ball is in box
and move it to box
, to leave the contents of box
alone,
and to take the ball from box three and put it into box
. In
other words, permutation number
above tells us to swap the
contents of boxes
and
.
The notation above is pretty clumsy. Here are a couple of other possibilities: