For a permutation π of { 1 , 2 , 3 , … , n } , define
For example, for the permutation π = ( 3 , 2 , 4 , 1 ) , the inversion number is 4 ( for ( i , j ) = ( 1 , 2 ) , ( 1 , 4 ) , ( 2 , 4 ) , ( 3 , 4 ) ) , and the major index is also 4 ( for i = 1 , 3 ) .
Let S 1 6 be the set of permutations on { 1 , 2 , 3 , … , 1 6 } . Compute
π ∈ S 1 6 ∑ ( − 1 ) inv ( π ) ⋅ maj ( π ) .
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
If I'm interpreting it correctly, h is not an involution: it brings π ( 1 ) , π ( 2 ) , π ( 4 ) to π ( 4 ) , π ( 1 ) , π ( 2 ) , so doing it again gives π ( 2 ) , π ( 4 ) , π ( 1 ) .
But indeed, I did write this problem with sign-reversing involution in mind. Turned out it was difficult to apply as is due to those exceptions, so I just destroyed the sum apart until what's left can be done with sign-reversing involution.
Log in to reply
Ahhh of course - let me find another way to kill it ...
Log in to reply
Swap π ( 2 ) with π ( 3 ) , and π ( 1 ) with π ( 4 ) .
Log in to reply
@Ivan Koswara – Edit: the last cancellations did not requrie to be an involution, but just a bijection was sufficient, because all I needed to do was to find a one-to-one correspondence between subsets C and D that match up the exceptions. Would you like to check what I updated in the solution?
(I doubt the involution you suggested works with cancelling the exceptions)
Log in to reply
@Yong See Foo – The bijection in general doesn't have to be an involution, it just needs to be sign-reversing. But if you don't make it an involution, you need to show that all the domain elements have positive sign and all the image elements have negative sign.
Also, my involution should work; the only term you care about is the possibility of 2 in the major index (the rest have been canceled elsewhere), so by swapping π ( 2 ) and π ( 3 ) you always have the 2 toggled.
Log in to reply
@Ivan Koswara – Yep indeed in only needed to be sign-reversing, but that's taken care of because of how C and D are defined. Regarding the involution you're suggesting, I think the difference is that I'm trying to take care of both the third and fourth cases of exceptions together, hence the replacements that tackle both the π C ( 2 ) > π C ( 3 ) and π D ( 1 ) > π D ( 3 ) conditions.
I have to add though, that your manipulation of the sum was very nice! I kind of brute-forced my way through the exceptions.
Oh wait, why are the extra term for A + π ( 1 ) and not + 1 ? Shouldn't the extra terms be + 1 , − 1 , + 2 , − 2 for A, B, C, D?
Log in to reply
I'll give an example. Consider the even permutation π that maps ( 1 , 2 , 3 , 4 ) → ( 4 , 3 , 2 , 1 ) . I am using the notation π ( 1 ) = 4 , π ( 2 ) = 3 , π ( 3 ) = 2 , π ( 4 ) = 1 . f ( π ) ( 1 ) = 3 , f ( π ) ( 2 ) = 4 , f ( π ) ( 3 ) = 2 , f ( π ) ( 4 ) = 1 . Note that π belongs to:
A because the 4-3 descent is lost after applying f (hence exception of + π ( 1 ) )
C because the 3-2 descent is lost after applying f (hence exception of + π ( 2 ) )
D because the 4-2 descent is new after applying f (hence exception of − π ( 1 ) )
The first exception is countered by g ( π ) : ( 1 , 2 , 3 , 4 ) → ( 3 , 4 , 1 , 2 ) as it contains the type- B exception where f ( g ( π ) ) : ( 1 , 2 , 3 , 4 ) → ( 3 , 4 , 1 , 2 ) . In short, this is because π ( 1 ) − g ( π ) ( 2 ) = 0 .
The other two exceptions are similar countered by h ( π ) .
Oh wow, this is amazing! I think that the reader would find it easier to follow your argument if you add an initial paragraph to explain what you will be doing.
Log in to reply
This solution is an application of "sign-reversing involution", linked in the above. (Although this particular problem is inspired from a different paper that asks for ∑ ( − 1 ) inv ( π ) + maj ( π ) or something.)
Sign-reversing involution is a proof method, similar to bijective proof that it maps some set to some other set, but allowing some elements to remain not mapped. The first set has "positive weight" and the second set has "negative weight"; all mapped elements thus cancel each other because their weight sum to zero, and we only need to count the remaining unmapped elements.
I want to write a wiki for it some time, but I need the motivation to do it, so we'll see.
The motivation for this solution is, of course, seeing that ( − 1 ) inv ( π ) term in the sum. Alternating sums can usually be solved with sign-reversing involution. The problem is now to find the involution, the rule that maps between positive and negative weights. The simplest rule is to just swap the first and the second elements, thus changing the inversion number by one (and hence the sign changes); however, this comes at the cost that the major index might also be changed. After breaking down the major index into its components, a lot of the components indeed remain the same after the involution (e.g. if 3 contributes to the major index before mapping, then 3 also contributes after mapping, and vice versa); the only remaining ones are indices 1 and 2, which got canceled in a different way.
The trick is to note that we can consider each index for the major index separately. For those who contribute a 1 to the major index, half of them have even inversion number and half have odd, so they add up to 0. Likewise for those who contribute a 2 to the major index, and so on. In total, they all cancel each other, for a total of 0.
First, we need a simple lemma.
Lemma : If π ′ is obtained from a permutation π by transposing (exchanging) two elements, then inv ( π ) and inv ( π ′ ) have different parities.
Suppose we exchange π ( a ) and π ( b ) . Clearly if ( a , b ) is an inversion in π , then it isn't in π ′ , since π ′ ( a ) = π ( b ) < π ( a ) = π ′ ( b ) , and vice versa. So that's a change of one inversion. Any other pair that doesn't involve the indices a , b remain the same; if ( i , j ) is an inversion in π where i , j ∈ { a , b } , then it's also an inversion in π ′ , and vice versa.
Now, consider the two pairs ( a , i ) , ( i , b ) . (We assume a < i < b ; the other two cases i < a and b < i are handled similarly.) If ( a , i ) , ( i , b ) are inversions in π , then π ( a ) > π ( i ) > π ( b ) , so in π ′ , we have π ′ ( a ) < π ′ ( i ) < π ′ ( b ) , so they aren't inversions in π ′ . Similarly, if ( a , i ) , ( i , b ) are not inversions in π , then they are inversions in π ′ . If ( a , i ) is an inversion in π and ( i , b ) isn't, then π ( a ) > π ( i ) and π ( i ) < π ( b ) , so in π ′ we have π ′ ( a ) = π ( b ) > π ( i ) = π ′ ( i ) and π ′ ( i ) = π ( i ) < π ( a ) = π ′ ( b ) , so ( a , i ) is also an inversion and ( i , b ) is also not an inversion in π ′ . The other case where ( i , b ) is an inversion and ( a , i ) isn't is similar. In all cases, the number of inversions changes by either − 2 , 0 , + 2 , so they don't change the parity.
Summing over all i , we see that the parity is only changed on the pair ( a , b ) . Since that's a total of one parity change, the net result is inv ( π ′ ) has a different parity from inv ( π ) .
We will generalize the claim: for any n ≥ 4 ,
π ∈ S n ∑ ( − 1 ) inv ( π ) ⋅ maj ( π ) = 0
For π ∈ S n and i ∈ { 1 , 2 , … , n − 1 } , define f ( π , i ) as 1 if π ( i ) > π ( i + 1 ) and 0 otherwise. Then maj ( π ) = i = 1 ∑ n − 1 i ⋅ f ( π , i ) . The sought sum is then
π ∈ S n ∑ ( − 1 ) inv ( π ) ⋅ maj ( π ) = π ∈ S n ∑ ( ( − 1 ) inv ( π ) ⋅ i = 1 ∑ n − 1 ( i ⋅ f ( π , i ) ) ) = π ∈ S n ∑ i = 1 ∑ n − 1 ( − 1 ) inv ( π ) ⋅ i ⋅ f ( π , i ) = i = 1 ∑ n − 1 π ∈ S n ∑ ( − 1 ) inv ( π ) ⋅ i ⋅ f ( π , i ) = i = 1 ∑ n − 1 ( i ⋅ π ∈ S n ∑ ( ( − 1 ) inv ( π ) ⋅ f ( π , i ) ) )
(The first equality is by substitution. The second equality is by distributive property. The third equality is valid because they are finite sums. The fourth equality is factoring i out.)
Now, if we can show that π ∈ S n ∑ ( − 1 ) inv ( π ) ⋅ f ( π , i ) = 0 for all i , we're done.
Define g i ( π , j , k ) to be 1 if π ( i ) = j , π ( i + 1 ) = k , and 0 otherwise. Then f ( π , i ) = j = 2 ∑ n k = 1 ∑ j − 1 g i ( π , j , k ) ; f ( π , i ) is 1 exactly if for some j , k where j > k , we have π ( i ) = j , π ( i + 1 ) = k .
So what do we do now? Why, of course.
π ∈ S n ∑ ( − 1 ) inv ( π ) ⋅ f ( π , i ) = π ∈ S n ∑ ( ( − 1 ) inv ( π ) ⋅ j = 2 ∑ n k = 1 ∑ j − 1 g i ( π , j , k ) ) = π ∈ S n ∑ j = 2 ∑ n k = 1 ∑ j − 1 ( − 1 ) inv ( π ) ⋅ g i ( π , j , k ) = j = 2 ∑ n k = 1 ∑ j − 1 π ∈ S n ∑ ( − 1 ) inv ( π ) ⋅ g i ( π , j , k ) = j = 2 ∑ n k = 1 ∑ j − 1 π ∈ S n , g i ( π , j , k ) = 1 ∑ ( − 1 ) inv ( π )
(The first equality is by substitution again. The second equality is by distributive property again. The third equality is because it's a finite sum again. The fourth equality is because g i ( π , j , k ) is either 0 or 1; the terms that contribute to the sum are precisely those when g i ( π , j , k ) = 1 , and for them, we can just remove g i ( π , j , k ) .)
Now, π ∈ S n , g i ( π , j , k ) = 1 ∑ ( − 1 ) inv ( π ) asks that, among all permutations π such that π ( i ) = j , π ( i + 1 ) = k , what is the signed difference between the number of permutations with even inversion number to the number of permutations with odd inversion number? If we show that these two are equal, we're done, since this sum becomes 0.
For this, we use sign-reversing involution . We pair off permutations with even inversion number to permutations with odd inversion number in a reversible manner (thus "involution", a bijection that is its own inverse). For each pair, one of them contributes + 1 to the sum and the other − 1 , so they cancel each other out (thus "sign-reversing"); thus, if we can pair off everything, all of them cancel out with each other, for a total of 0.
This involution is simple. Because n ≥ 4 , there are at least two indices besides i , i + 1 . Take the two smallest ones. For i = 1 , this means the indices 3 , 4 ; for i = 2 , this means the indices 1 , 4 ; for other i , this means the indices 1 , 2 . The involution is then to transpose the two elements on these indices. This is an involution, since applying it again gives the original permutation. This is sign-reversing, because transposing two elements means we change the parity of the inversion number (by the lemma). And this pairs off all permutations, so there's nothing missing.
Thus we have proven that π ∈ S n , g i ( π , j , k ) = 1 ∑ ( − 1 ) inv ( π ) = 0 for any i , j , k . Walking back through the equations, we end up with our claim:
π ∈ S n ∑ ( − 1 ) inv ( π ) ⋅ maj ( π ) = 0
Substituting for n = 1 6 gives our answer.
The approach above doesn't work for n = 2 , 3 precisely because the involution doesn't exist. (When we fix two elements, there is only one permutation, so we can't pair it off to cancel it.) For n = 1 , the sum is also 0, but for another reason: because there's not enough space for the major index to be anything other than 0.
Problem Loading...
Note Loading...
Set Loading...
This is a great exercise for alternating sums using 'killing involution'. A great resource can be found here: D.I.E. . In fact, I am going to follow the format as described in that article.
Quick overview: The motivation for this solution is seeing that ( − 1 ) inv ( π ) term in the sum. Alternating sums can usually be solved with sign-reversing involution, and so we have to find the rule that maps between positive and negative weights. The simplest rule is to just swap the first and the second elements, thus changing the inversion number by one (and hence the sign changes); however, this comes at the cost that the major index might also be changed. After breaking down the major index into its components, a lot of the components indeed remain the same after the involution (e.g. if 3 contributes to the major index before mapping, then 3 also contributes after mapping, and vice versa); the only remaining ones are indices 1 and 2, which get canceled in a different way.
I will also appeal to the well-known fact that the parity of a permutation shares the same parity with the involution number. It is also known that swapping two terms in a permutation alters this parity. Ivan has already provided a proof that I shall omit.
Description: ∑ π ∈ S 1 6 maj ( π ) sums the sums of the indices of the ascents across all permutations of size 1 6 , which is taken straight from the given definition.
Involution: Simply swap the values of π ( 1 ) and π ( 2 ) ! This ensures that the parity is swapped and an involution can occur. For clarity's sake, let this swap be interpreted as applying a function f on a permutation π . Then f ( f ( π ) ) = π , inv ( π ) = inv ( f ( π ) ) ± 1 .
Exception: Consider ( − 1 ) inv ( X ) maj ( π ) + ( − 1 ) inv ( f ( π ) ) maj ( f ( π ) ) for all even permutations π . This simplifies to maj ( π ) − maj ( f ( π ) ) . Most of the indices would kill each other off, with these exceptions of some extra terms:
+ π A ( 1 ) if π A ( 1 ) > π A ( 2 ) by considering how the 1-2 adjacency changes
− π B ( 2 ) if π B ( 2 ) > π B ( 1 ) by considering how the 1-2 adjacency changes
+ π C ( 2 ) if π C ( 2 ) > π C ( 3 ) by considering how the 2-3 adjacency changes
− π D ( 1 ) if π D ( 1 ) > π D ( 3 ) by considering how the 2-3 adjacency changes
We claim that after summing through all permutations, these exceptions all sum to zero. Define subset A = { π A ∈ S ∣ π A ( 1 ) > π A ( 2 ) and ( − 1 ) inv ( π A ) = 1 } . Define subsets B , C , D similarly according to the inequalities above, ensuring that the permutations are even.
Consider the bijection g : A → B , where g swaps π ( 1 ) ↔ π ( 2 ) and π ( 3 ) ↔ π ( 4 ) . This bijection, (its inverse is itself) keeps the permutations to be even. So the first two exceptions kill each other off, in the sense that π A ( 1 ) = π B ( 2 ) .
Consider the bijection h : C → D , where h replaces ( π ( 1 ) , π ( 2 ) , π ( 4 ) ) with ( π ( 4 ) , π ( 1 ) , π ( 2 ) ) . This bijection (its inverse is just taking the replacement backwards) keeps the permutations to be even (because of how this is achieved by two swaps: ( 2 , 4 ) ( 1 , 2 ) ). So the last two exceptions kill each other off too, in the sense that π C ( 2 ) = π D ( 1 ) .
Hence the claim is justified, and the answer is 0 .