The applet below has two purposes. First, it shows an additional way to visualize a permutation (three other possibilities have been described elsewhere.) The members of the set Nn, i.e., numbers from 1 through n, are arranged on a circle sequentially in a natural order. A permutationf: kf(k) is then represented by a set of arrows that join each i with the corresponding f(i), provided of course the two are different.
Second, the applet has been written with a certain solution to the Fifteen Puzzle in mind. Specifically, it helps one grasp an assertion about the representation of permutations as a product of disjoint cycles. A single move in the Fifteen puzzle consists in swapping a blank spot with an adjacent tile. The applet shows what happens when a permutation is multiplied by a transposition, i.e. a permutation that swaps two elements and leaves the rest untouched.
(To perform the feat click on the two elements in sequence.)