We prove the statement by induction on N. If N=0, then Ο is the identity permutation, so sgn(Ο)=1=(β1)0.
Assume the statement holds for products of Nβ1 adjacent transpositions, and suppose
Ο=Οr1ββββ―βΟrNββ.
Set
Ο=Οr1ββββ―βΟrNβ1ββ,
so that Ο=ΟβΟrNββ. By the induction hypothesis,
sgn(Ο)=(β1)Nβ1.
It is therefore enough to prove that for every adjacent transposition Οrβ one has
sgn(ΟβΟrβ)=βsgn(Ο).
Fix rβ{1,β¦,nβ1} and write
a=Ο(r),b=Ο(r+1).
Then aξ =b, and the permutation ΟβΟrβ is obtained from Ο by swapping the values a and b in positions r and r+1.
We compare the inversion numbers of Ο and ΟβΟrβ. Any inversion pair (i,j) with {i,j}β©{r,r+1}=β
has the same status for both permutations, because the values at all positions other than r and r+1 are unchanged.
Now consider the pair (r,r+1). In Ο, this pair is an inversion exactly when a>b. In ΟβΟrβ, this pair is an inversion exactly when b>a. Thus the inversion status of (r,r+1) flips.
Next let j<r. We compare the two pairs (j,r) and (j,r+1). In Ο, these involve the values Ο(j),a,b, while in ΟβΟrβ the roles of a and b are interchanged. There are three possibilities:
Ο(j)<min{a,b},Ο(j)>max{a,b},min{a,b}<Ο(j)<max{a,b}.
In the first two cases, either both pairs are inversions or neither is an inversion, both before and after the swap. In the third case, exactly one of the two pairs is an inversion before the swap and exactly one is an inversion after the swap. Hence the total number of inversions contributed by the two pairs (j,r) and (j,r+1) changes by an even integer, in fact by 0.
The same argument applies for each j>r+1, now comparing the pairs (r,j) and (r+1,j). Again, their total contribution to the inversion count changes by an even integer, in fact by 0.
Therefore every affected pair except (r,r+1) changes the inversion count by an even amount, while the pair (r,r+1) changes it by exactly 1 modulo 2. It follows that
N(ΟβΟrβ)β‘N(Ο)+1(mod2).
By the definition Sign of a Permutation of sign in terms of inversion parity, this gives
sgn(ΟβΟrβ)=βsgn(Ο).
Applying this with r=rNβ, we obtain
sgn(Ο)=sgn(ΟβΟrNββ)=βsgn(Ο)=β(β1)Nβ1=(β1)N.
This completes the induction.