P is a permutation on the set {1,2,...,n}. A permutation is a bijection. So the sets {1,2,...,n}={P(1),P(2),...,P(n)} are the same. That shouldn't be "det P" after the summation sigma. It should be "sgn P" or some other notation for the signature of the permutation. A permutation is said to be even if it's equivalent to an even number of swaps of two elements. For example, the permutation P defined by P(1)=2, P(2)=3, P(3)=1 is even, because you can rearrange (1,2,3) to (2,3,1) by first swapping 1 and 2 to get (2,1,3) and then swapping 1 and 3 to get (2,3,1). Odd permutations are defined similarly. Every permutation is either even or odd. The signature of a permutation is defined to be +1 if the permutation is even, and -1 if the permutation is odd. The most common notation for the signature of P is sgn P. I have also seen the notation ##(-1)^P##.
The specific permutation I used as an example can be written as (2 3 1), i.e. you simply list the numbers that 1,2,3 are taken to, in the appropriate order. The even permutations on the set {1,2,3} are (1 2 3), (2 3 1) and (3 1 2). The odd ones are (2 1 3), (3 2 1) and (1 3 2). So for a 3x3 matrix A,
\begin{align}
&=\det A =\sum_P(\operatorname{sgn}P) A_{1,P(n)}\dots,A_{n,P(n)}=\\
&=A_{11}A_{22}A_{33}+ A_{12}A_{23}A_{31}+A_{13}A_{21}A_{32} -A_{13}A_{22}A_{31} - A_{12}A_{21}A_{33}- A_{11}A_{23}A_{32}
\end{align}