1 Problem description

1 Problem description

There is an interesting combinatorial problem that arose while I was computing the wedge product of two alternating tensors. Let Sk+lsubscript𝑆𝑘𝑙 be the permutation group on the set {1,2,,k+l}12𝑘𝑙, and Sk,lsubscript𝑆𝑘𝑙 be the set of all (k,l)𝑘𝑙-shuffles, i.e., σSk,l𝜎subscript𝑆𝑘𝑙 means that σSk+l𝜎subscript𝑆𝑘𝑙 and satisfies

σ(1)<<σ(k)andσ(k+1)<<σ(k+l).formulae-sequence𝜎1𝜎𝑘and𝜎𝑘1𝜎𝑘𝑙

Let the number of inversions of σ𝜎 be inv(σ)inv𝜎. Then its sign is sgn(σ)=(1)inv(σ)sgn𝜎superscript1inv𝜎. Suppose f𝑓 and g𝑔 are two alternating k𝑘- and l𝑙-tensors on a vector space V𝑉. The wedge product of f𝑓 and g𝑔 is

(fg)(v1,,vk+l)=σSk,lsgn(σ)f(vσ(1),,vσ(k))g(vσ(k+1),,vσ(k+l)),𝑓𝑔subscript𝑣1subscript𝑣𝑘𝑙subscript𝜎subscript𝑆𝑘𝑙sgn𝜎𝑓subscript𝑣𝜎1subscript𝑣𝜎𝑘𝑔subscript𝑣𝜎𝑘1subscript𝑣𝜎𝑘𝑙

where v1,,vk+lVsubscript𝑣1subscript𝑣𝑘𝑙𝑉. This naturally leads to the following question:

How many positive terms in the above summation, or equivalently, how many (k,l)𝑘𝑙-shuffles that have an even number of inversions?

First observe that there are (k+lk)binomial𝑘𝑙𝑘 shuffles. Since the entries within each block remain in increasing order, every inversion must occur between the first k𝑘 positions and the last l𝑙 positions. More precisely, let Aσ={σ(1),,σ(k)}subscript𝐴𝜎𝜎1𝜎𝑘 and Bσ={σ(k+1),,σ(k+l)}=Aσcsubscript𝐵𝜎𝜎𝑘1𝜎𝑘𝑙superscriptsubscript𝐴𝜎𝑐, and define ρ(Aσ)=#{(a,b):aAσ,bBσ,a>b}𝜌subscript𝐴𝜎#conditional-set𝑎𝑏formulae-sequence𝑎subscript𝐴𝜎formulae-sequence𝑏subscript𝐵𝜎𝑎𝑏. Then inv(σ)=ρ(Aσ)inv𝜎𝜌subscript𝐴𝜎. Suppose the number of even and odd shuffles are E𝐸 and O𝑂, respectively. Then we have

{E+O=(k+lk)EO=σSk,l(1)ρ(Aσ).cases𝐸𝑂binomial𝑘𝑙𝑘otherwise𝐸𝑂subscript𝜎subscript𝑆𝑘𝑙superscript1𝜌subscript𝐴𝜎otherwise

The main difficulty is to give a formulation for EO𝐸𝑂. As we shall see, the appropriate tool for this purpose is the q𝑞-binomial coefficient.

2 q𝑞-binomial coefficient

The q𝑞-binomial coefficient, also called the Gaussian binomial coefficient, is a q𝑞-analogy of the binomial coefficient. A more detailed theory can be found in the book [1]. Given a number q𝑞, the q𝑞-binomial coefficient is defined as

(nr)q=(1qn)(1qn1)(1qnr+1)(1q)(1q2)(1qr)subscriptbinomial𝑛𝑟𝑞1superscript𝑞𝑛1superscript𝑞𝑛11superscript𝑞𝑛𝑟11𝑞1superscript𝑞21superscript𝑞𝑟 (1)

where nr𝑛𝑟 are nonnegative integers, and for r=0𝑟0 the value is 11. It satisfies the q𝑞-Pascal’s identity

(nr)q=(n1r)q+qnr(n1r1)q.subscriptbinomial𝑛𝑟𝑞subscriptbinomial𝑛1𝑟𝑞superscript𝑞𝑛𝑟subscriptbinomial𝑛1𝑟1𝑞 (2)

Combining this identity with the mathematical induction, it is obvious that (nr)qsubscriptbinomial𝑛𝑟𝑞 is a polynomial of q𝑞 with nonnegative integer coefficients, and the degree is r(nr)𝑟𝑛𝑟. To further investigate its properties, define the q𝑞-number

[k]q=1+q+q2++qk1={1qk1q,q1k,q=1,subscriptdelimited-[]𝑘𝑞1𝑞superscript𝑞2superscript𝑞𝑘1cases1superscript𝑞𝑘1𝑞𝑞1otherwise𝑘𝑞1otherwise

and the q𝑞-factorial

[k]q!=[1]q[2]q[k1]q[k]q.subscriptdelimited-[]𝑘𝑞subscriptdelimited-[]1𝑞subscriptdelimited-[]2𝑞subscriptdelimited-[]𝑘1𝑞subscriptdelimited-[]𝑘𝑞

Then we can write (nr)qsubscriptbinomial𝑛𝑟𝑞 equivalently as

(nr)q=[n]q![nr]q![r]q!.subscriptbinomial𝑛𝑟𝑞subscriptdelimited-[]𝑛𝑞subscriptdelimited-[]𝑛𝑟𝑞subscriptdelimited-[]𝑟𝑞 (3)

A basic relationship between the q𝑞-factorial and the inversions is stated as follows.

Proposition 1.

Let Snsubscript𝑆𝑛 be the permutation group on the set {1,2,,n}12𝑛. Then

σSnqinv(σ)=[n]q!subscript𝜎subscript𝑆𝑛superscript𝑞inv𝜎subscriptdelimited-[]𝑛𝑞 (4)
Proof.

For any element in Snsubscript𝑆𝑛, it can be constructed by putting n𝑛 in a position between {1,2,,n}12𝑛, and the number of the increase of the inversions equals to the number of elements that in the right side of n𝑛. Therefore, it holds that

σSnqinv(σ)subscript𝜎subscript𝑆𝑛superscript𝑞inv𝜎 =σSn1j=0n1qinv(σ)+jabsentsubscriptsuperscript𝜎subscript𝑆𝑛1superscriptsubscript𝑗0𝑛1superscript𝑞invsuperscript𝜎𝑗
=(σSn1qinv(σ))(1+q++qn1)absentsubscriptsuperscript𝜎subscript𝑆𝑛1superscript𝑞invsuperscript𝜎1𝑞superscript𝑞𝑛1
=[n]qσSn1qinv(σ).absentsubscriptdelimited-[]𝑛𝑞subscriptsuperscript𝜎subscript𝑆𝑛1superscript𝑞invsuperscript𝜎

For n=1𝑛1, we have σS1qinv(σ)=q0=1subscript𝜎subscript𝑆1superscript𝑞inv𝜎superscript𝑞01. Therefore, we obtain

σSnqinv(σ)=[n]q[n1]qσSn2qinv(σ)==[n]q!.subscript𝜎subscript𝑆𝑛superscript𝑞inv𝜎subscriptdelimited-[]𝑛𝑞subscriptdelimited-[]𝑛1𝑞subscript𝜎subscript𝑆𝑛2superscript𝑞inv𝜎subscriptdelimited-[]𝑛𝑞

The proof is completed. ∎

3 The value of EO𝐸𝑂

Now we come back to the original question. A key observation is that any permutation in Sk+lsubscript𝑆𝑘𝑙 has a unique decomposition:

σ=πτ,𝜎𝜋𝜏

where τ𝜏 is a (k,l)𝑘𝑙-shuffle and π=(π1,π2)Sk×Sl𝜋subscript𝜋1subscript𝜋2subscript𝑆𝑘subscript𝑆𝑙 with π1subscript𝜋1 and π2subscript𝜋2 act on the sets Aτsubscript𝐴𝜏 and Bτsubscript𝐵𝜏, respectively. Moreover, the number of inversions of σ𝜎 satisfies

inv(σ)=ρ(Aτ)+inv(π1)+inv(π2).inv𝜎𝜌subscript𝐴𝜏invsubscript𝜋1invsubscript𝜋2

Therefore, we have

σSk+lqinv(σ)subscript𝜎subscript𝑆𝑘𝑙superscript𝑞inv𝜎 =τSk,l(π1,π2)Sk×Slqρ(Aτ)+inv(π1)+inv(π2)absentsubscript𝜏subscript𝑆𝑘𝑙subscriptsubscript𝜋1subscript𝜋2subscript𝑆𝑘subscript𝑆𝑙superscript𝑞𝜌subscript𝐴𝜏invsubscript𝜋1invsubscript𝜋2
=τSk,lqρ(Aτ)π1Skqinv(π1)π2Slqinv(π2)absentsubscript𝜏subscript𝑆𝑘𝑙superscript𝑞𝜌subscript𝐴𝜏subscriptsubscript𝜋1subscript𝑆𝑘superscript𝑞invsubscript𝜋1subscriptsubscript𝜋2subscript𝑆𝑙superscript𝑞invsubscript𝜋2
=τSk,lqρ(Aτ)[k]q![l]q!.absentsubscript𝜏subscript𝑆𝑘𝑙superscript𝑞𝜌subscript𝐴𝜏subscriptdelimited-[]𝑘𝑞subscriptdelimited-[]𝑙𝑞

By Proposition 1, this implies

τSk,lqρ(Aτ)=[k+l]q![k]q![l]q!=(k+lk)q,subscript𝜏subscript𝑆𝑘𝑙superscript𝑞𝜌subscript𝐴𝜏subscriptdelimited-[]𝑘𝑙𝑞subscriptdelimited-[]𝑘𝑞subscriptdelimited-[]𝑙𝑞subscriptbinomial𝑘𝑙𝑘𝑞 (5)

and thereby EO=(k+lk)1𝐸𝑂subscriptbinomial𝑘𝑙𝑘1. To compute (Nk)1subscriptbinomial𝑁𝑘1 for any Nk0𝑁𝑘0, using the q𝑞-Pascal’s identity

(Nk)1=(N1k)1+(1)Nk(N1k1)1subscriptbinomial𝑁𝑘1subscriptbinomial𝑁1𝑘1superscript1𝑁𝑘subscriptbinomial𝑁1𝑘11

and the initial values (N0)1=1subscriptbinomial𝑁011 and (kk)1=1subscriptbinomial𝑘𝑘11, we can recursively obtain all the values.

For σSk,l𝜎subscript𝑆𝑘𝑙 with k+l=N𝑘𝑙𝑁, write the elements in Aσsubscript𝐴𝜎 as i1<i2<<iksubscript𝑖1subscript𝑖2subscript𝑖𝑘. Then the number of inversions of σ𝜎 is ρ(Aσ)=(i11)+(i22)++(ikk)𝜌subscript𝐴𝜎subscript𝑖11subscript𝑖22subscript𝑖𝑘𝑘. Now consider the polynomial pN(x)=i=0N1(1+qix)subscript𝑝𝑁𝑥superscriptsubscriptproduct𝑖0𝑁11superscript𝑞𝑖𝑥. The coefficient of the xksuperscript𝑥𝑘 term is

ck=SXkqj1+j2++jk,subscript𝑐𝑘subscript𝑆subscript𝑋𝑘superscript𝑞subscript𝑗1subscript𝑗2subscript𝑗𝑘

where Xk={S=(j1,j2,,jk):0j1<j2<<jkN1}subscript𝑋𝑘conditional-set𝑆subscript𝑗1subscript𝑗2subscript𝑗𝑘0subscript𝑗1subscript𝑗2subscript𝑗𝑘𝑁1. It is easy to verify the one-to-one correspondace between the tuples (j1,j2,,jk)subscript𝑗1subscript𝑗2subscript𝑗𝑘 and the above (k,l)𝑘𝑙-shuffles by letting jt=it1subscript𝑗𝑡subscript𝑖𝑡1. Therefore, we have

t=1kjt=t=1k(it1)=ρ(Aσ)+t=1ktk=ρ(Aσ)+k(k1)2.superscriptsubscript𝑡1𝑘subscript𝑗𝑡superscriptsubscript𝑡1𝑘subscript𝑖𝑡1𝜌subscript𝐴𝜎superscriptsubscript𝑡1𝑘𝑡𝑘𝜌subscript𝐴𝜎𝑘𝑘12

This implies that

ck=qk(k1)/2σSk,lqρ(Aσ)=qk(k1)/2(Nk)q.subscript𝑐𝑘superscript𝑞𝑘𝑘12subscript𝜎subscript𝑆𝑘𝑙superscript𝑞𝜌subscript𝐴𝜎superscript𝑞𝑘𝑘12subscriptbinomial𝑁𝑘𝑞

This gives the relation between the q𝑞-binomial coefficient and the coefficient of the xksuperscript𝑥𝑘 term of the polynomial i=0N1(1+qix)superscriptsubscriptproduct𝑖0𝑁11superscript𝑞𝑖𝑥.

Using the above relation, substituting q=1𝑞1 into the polynomial pN(x)subscript𝑝𝑁𝑥 and comparing the coefficient of the xksuperscript𝑥𝑘 term, we finally obtain

EO=(k+lk)1={0,kl1(mod2)((k+l)/2k/2),else.𝐸𝑂subscriptbinomial𝑘𝑙𝑘1cases0𝑘𝑙1mod2otherwisebinomial𝑘𝑙2𝑘2elseotherwise (6)

Returning to the original problem, this means that in the wedge product of a k𝑘-tensor and an l𝑙-tensor, the number of positive terms exceeds the number of negative terms by the amount ((k+l)/2k/2)binomial𝑘𝑙2𝑘2, or they are equal when both k𝑘 and l𝑙 are odd integers.

References

  • [1] W. Koepf (2014) Hypergeometric summation—an algorithmic approach to summation and special function identities. 2nd edition, Springer. External Links: Link Cited by: §2.