In mathematics, a permutation is a bijective function of a finite set onto itself. When the set is represented as an ordered sequence of its members, a permutation amounts to change the place of the members of the set: if f is a permutation, f(i) is the new place of the ith member of the sequence. If the set is naturally ordered (typically the first natural numbers) or if an order of the set members has been chosen, a permutation of a set S is well represented by the sequence of the images of the members of S. For example, the permutation that maps 1,2,3,4 respectively to 1,3,2,4, is well represented by the sequence (1,3,2,4). Similarly, the six permutations of the set {1, 2, 3} are the six 3-tuples (1, 2, 3), (1, 3, 2), (2, 1, 3), (2, 3, 1), (3, 1, 2), and (3, 2, 1). They correspond to the six bijections that map 1, 2, 3, to the first, the second and the third member of the tuple, respectively. Anagrams are example of permutations of sequences of letters. The number of permutations of n distinct objects is the product of the n first positive integers, which is called n factorial and usually written as n!. The function composition of two permutation is called a permutation composition. The collection of all permutations of a set form a group under permutation composition, called the symmetric group of the set. The k-permutations, also called partial permutations, are the ordered sequences of k distinct elements of a set. When k equals the size of the set, these are the permutations of the set. The study of permutations of finite sets is a starting point of combinatorics. The permutations of a finite set form a group, and the fact that every finite group is a subgroup of a permutation group is widely used in group theory. In computer science, a sorting algorithm consists of computing the permutation of a set of data that put them in their natural order. Permutations are also widely used in many branches of mathematics and in many other sciences,
History Permutation-like objects called hexagrams were used in China in the I Ching (Pinyin: Yi Jing) as early as 1000 BC. In Greece, Plutarch wrote that Xenocrates of Chalcedon (396–314 BC) discovered the number of different syllables possible in the Greek language. This would have been the first attempt on record to solve a difficult problem in permutations and combinations. Al-Khalil (717–786), an Arab mathematician and cryptographer, wrote the Book of Cryptographic Messages. It contains the first use of permutations and combinations, to list all possible Arabic words with and without vowels. The rule to determine the number of permutations of n objects was known in Indian culture around 1150 AD. The Lilavati by the Indian mathematician Bhāskara II contains a passage that translates as follows:
The product of multiplication of the arithmetical series beginning and increasing by unity and continued to the number of places, will be the variations of number with specific figures.
In 1677, Fabian Stedman described factorials when explaining the number of permutations of bells in change ringing. Starting from two bells: "first, two must be admitted to be varied in two ways", which he illustrates by showing 1 2 and 2 1. He then explains that with three bells there are "three times two figures to be produced out of three" which again is illustrated. His explanation involves "cast away 3, and 1.2 will remain; cast away 2, and 1.3 will remain; cast away 1, and 2.3 will remain". He then moves on to four bells and repeats the casting away argument showing that there will be four different sets of three. Effectively, this is a recursive process. He continues with five bells using the "casting away" method and tabulates the resulting 120 combinations. At this point he gives up and remarks:
Now the nature of these methods is such, that the changes on one number comprehends the changes on all lesser numbers, ... insomuch that a compleat Peal of changes on one number seemeth to be formed by uniting of the compleat Peals on all lesser numbers into one entire body;
Stedman widens the consideration of permutations; he goes on to consider the number of permutations of the letters of the alphabet and of horses from a stable of 20. A first case in which seemingly unrelated mathematical questions were studied with the help of permutations occurred around 1770, when Joseph Louis Lagrange, in the study of polynomial equations, observed that properties of the permutations of the roots of an equation are related to the possibilities to solve it. This line of work ultimately resulted, through the work of Évariste Galois, in Galois theory, which gives a complete description of what is possible and impossible with respect to solving polynomial equations (in one unknown) by radicals. In modern mathematics, there are many similar situations in which understanding a problem requires studying certain permutations related to it. The study of permutations as substitutions on n elements led to the notion of group as algebraic structure, through the works of Cauchy (1815 memoir). Permutations played an important role in the cryptanalysis of the Enigma machine, a cipher device used by Nazi Germany during World War II. In particular, one important property of permutations, namely, that two permutations are conjugate exactly when they have the same cycle type, was used by cryptologist Marian Rejewski to break the German Enigma cipher in turn of years 1932–1933.
… excerpt ends here. Continue reading the full article.





![Permutation: In the 15 puzzle the goal is to get the squares in ascending order. Initial positions which have an odd number of inversions are impossible to solve.[50]](https://thumb.wikimedia.org/wikipedia/commons/thumb/4/48/15-Puzzle.jpg/500px-15-Puzzle.jpg?utm_source=en.wikipedia.org&utm_campaign=parser&utm_content=thumbnail)