2 Sets and functions

2.17 Sign

2.17.1 Definition of odd and even permutations

Theorem 2.16.2 says that every permutation can be expressed as a product of transpositions.

Definition 2.17.1.

A permutation is odd if it can be expressed as a product of an odd number of transpositions and even if it can be expressed as a product of an even number of transpositions.

(Sometimes people refer to the parity of a permutation to mean whether it is odd or even. We won’t do this since we want to save the word parity for integers.)

Example 2.17.1.
  • (1,2) is odd.

  • id=(1,2)(1,2) is even.

  • (1,2,3)=(1,2)(2,3) is even.

  • The expression for an m-cycle a=(a0,,am1) as a product of m1 transpositions

    (a0,,am1)=(a0,a1)(a1,a2)(am2,am1)

    in Lemma 2.16.1 shows that an m cycle is even if m is odd and odd if m is even.

2.17.2 The odd xor even theorem

It seems possible that a permutation could be odd AND even at the same time, but this isn’t the case.

Theorem 2.17.1.

No permutation is both odd and even.

To prove this we need to do a little work.

Lemma 2.17.2.

For any k,l0 and any distinct numbers a,b,x1,,xk,y1,,yl we have

(a,b)(a,x1,,xk,b,y1,,yl)=(a,x1,,xk)(b,y1,,yl).
Proof.

This will be a problem set exercise. ∎

We know every permutation can be written as a product of disjoint cycles. We are now going to be interested in how many cycles it takes to express a given permutation, and we will include all 1-cycles in our count. For example, in S4 the identity id=(1)(2)(3)(4) has four cycles, the transposition (1,2)=(1,2)(3)(4) has three cycles, the permutation

(12342314)=(1,2,3)(4)

has two cycles as does (1,2)(3,4), and the permutation (1,2,3,4) has one cycle only.

Lemma 2.17.3.

If sSn has r cycles and t is a transposition then ts has r+1 or r1 cycles.

Proof.

Let s=c1c2cr be a disjoint cycle decomposition for s, remembering that we include any 1-cycles in this product so that each number between 1 and n appears in exactly one of these cycles.

Let t=(a,b). There are two possibilities: either a and b belong to the same ci, or they belong to different cis.

In the first case, because disjoint cycles commute we can assume a and b belong to c1, which we can write as (a,x1,,xk,b,y1,,yl) for some distinct numbers xi and yj. Lemma 2.17.2 then shows us that

ts=(a,x1,,xk)(b,y1,,yl)c2cr

has r+1 cycles.

In the second case, because disjoint cycles commute we can assume a belongs to c1 and b to c2. Write the disjoint cycles c1 as (a,x1,,xk) and c2 as (b,y1,,yl). Then multiplying Lemma 2.17.2 on the left by (a,b) gives

(a,b)(a,x1,,xk)(b,y1,,yl)=(a,x1,,xk,b,y1,,yk) (2.4)

and so

ts=(a,x1,,xk,b,y1,,yk)c3c4cr

has r1 cycles. ∎

Let’s consider two examples to illustrate the two cases in this proof. Take n=7, t=(1,2), c1=(1,4,2,3), c2=(5,7), c3=(6), and

s=c1c2c3=(1,4,2,3)(5,7)(6)

so the number r of cycles in s is equal to 3. We are in the first case of the proof since 1 and 2 both belong to the same cycle c1 from s. You can check that

(1,2)(1,4,2,3)=(1,4)(2,3)

so that

ts=(1,4)(2,3)(4,7)(6)

has r+1=4 cycles.

Next take n=7, t=(1,2) and c1=(1), c2=(3,6,4), c3=(5,2,7), and

s=c1c2c3=(1)(3,6,4)(5,2,7)

so the number r of cycles in s is again 3. We are in the second case of the proof since 1 and 2 belong to c1 and c3. Rewriting c3 as (2,7,5) and using the identity (2.4),

(1,2)(1)(2,7,5)=(1,2,7,5)

(you should check this by computing the left hand side). It follows

ts =tc1c2c3
=tc1c3c2 disjoint cycles commute
=(1,2)(1)(2,7,5)(3,6,4)
=(1,2,7,5)(3,6,4)

and ts has r1=2 cycles.

The parity of an integer is whether it is even or odd. Two integers are said to have the same parity if they are either both even or odd, otherwise they are said to have the opposite parity.

Lemma 2.17.4.

Let t=t1tk be a product of transpositions, each of which belongs to Sn. If n is even then the number of cycles in t has the same parity as k, and if n is odd then the number of cycles in t has the opposite parity to k.

For example, let n be the odd number 3. In S3 the product (1,2)(2,3)(1,2) of two transpositions is equal to (1,3)(2) which has two cycles. The parity of the number of cycles is opposite to the parity of k, and the same is true of any product of transpositions in Sn for any odd n. Now let n be the even number 4. In S4 the product (1,2)(3,4)(2,3)(1,4) of four transpositions is equal to (1,3)(2,4) which has two cycles. The parity of the number of cycles is the same as the parity of k, and the same is true of any product of transpositions in Sn for any even n.

Proof.

We will do the case when n is even, the odd case being similar. We prove by induction on k that the number of cycles in t1t2tk has the same parity as k. The base case is k=1 when the product is just t1 which has n1 cycles (the 2-cycle from t1 and then n2 one-cycles), an odd number of cycles.

For example, if n=6 then t1 might be

(2,4)=(1)(2,4)(3)(5)(6)

which has five cycles.

For the inductive step, consider a product t1t2tk. If k is even then k1 is odd, so by the inductive hypothesis t2tk has an odd number r of cycles, and by Lemma 2.17.3 t1t2tk has r+1 or r1 cycles, which in either case is an even number. If k is odd then k1 is even, so by the inductive hypothesis t2tk has an even number r of cycles and then by the same Lemma as before t1tk has r±1 cycles, an odd number. ∎

Finally we can prove the main theorem, that no permutation is both odd and even.

Proof.

Suppose n is even and we can write sSn as a product of k transpositions, and also as a product of k transpositions. Lemma 2.17.4 shows that both k and k has the same parity as the number of cycles in s, in particular, k and k have the same parity. The argument for odd n is similar. ∎

2.17.3 Sign of a permutation

Definition 2.17.2.
  • The sign of a permutation is 1 if it is even and 1 if it is odd.

  • We write sign(s) for the sign of the permutation s.

So if s can be written as a product of m transpositions, sign(s)=(1)m.

Lemma 2.17.5.

For any two permutations s and t, sign(st)=sign(s)sign(t)

Proof.

If s can be written as a product of m transpositions and t can be written as a product of n transpositions, then st can be written as a product of m+n transpositions. So

sign(st) =(1)n+m
=(1)m(1)n
=sign(s)sign(t)

This rule about the sign of a product means that

  • an even permutation times an even permutation is even,

  • an even permutation times an odd permutation is odd, and

  • an odd permutation times an odd permutation is even

just like when we multiply odd and even integers.

2.17.4 Two results on the sign of a permutation

Lemma 2.17.6.
  1. 1.

    Even length cycles are odd and odd length cycles are even.

  2. 2.

    If s is any permutation, sign(s)=sign(s1).

Proof.
  1. 1.

    We saw in the proof of Lemma 2.16.1 that if a=(a0,,am1) is any m-cycle,

    (a0,am1)=(a0,a1)(a1,a2)(am2,am1)

    so an m-cycle can be written as a product of m1 transpositions. The number of transpositions in this expression therefore has the opposite parity to m, as required.

  2. 2.

    If s=t1tm is a product of m transpositions, s1=tm1t11. But the inverse of a transposition is a transposition, so s1 is also the product of m transpositions.

Another way to express the first part of this lemma would be to say that sign(a0,,am1)=(1)m1.