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

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

where v1,…,vk+l∈Vsubscript𝑣1…subscript𝑣𝑘𝑙𝑉. 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):a∈Aσ,b∈Bσ,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)E−O=∑σ∈Sk,l(−1)ρ⁢(Aσ).cases𝐸𝑂binomial𝑘𝑙𝑘otherwise𝐸𝑂subscript𝜎subscript𝑆𝑘𝑙superscript1𝜌subscript𝐴𝜎otherwise

The main difficulty is to give a formulation for E−O𝐸𝑂. 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=(1−qn)⁢(1−qn−1)⁢⋯⁢(1−qn−r+1)(1−q)⁢(1−q2)⁢⋯⁢(1−qr)subscriptbinomial𝑛𝑟𝑞1superscript𝑞𝑛1superscript𝑞𝑛1⋯1superscript𝑞𝑛𝑟11𝑞1superscript𝑞2⋯1superscript𝑞𝑟 (1)

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

(nr)q=(n−1r)q+qn−r⁢(n−1r−1)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⁢(n−r)𝑟𝑛𝑟. To further investigate its properties, define the q𝑞-number

[k]q=1+q+q2+⋯+qk−1={1−qk1−q,q≠1k,q=1,subscriptdelimited-[]𝑘𝑞1𝑞superscript𝑞2⋯superscript𝑞𝑘1cases1superscript𝑞𝑘1𝑞𝑞1otherwise𝑘𝑞1otherwise

and the q𝑞-factorial

[k]q!=[1]q⋅[2]q⁢⋯⁢[k−1]q⋅[k]q.subscriptdelimited-[]𝑘𝑞⋅⋅subscriptdelimited-[]1𝑞subscriptdelimited-[]2𝑞⋯subscriptdelimited-[]𝑘1𝑞subscriptdelimited-[]𝑘𝑞

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

(nr)q=[n]q![n−r]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𝜎 =∑σ′∈Sn−1∑j=0n−1qinv⁢(σ′)+jabsentsubscriptsuperscript𝜎′subscript𝑆𝑛1superscriptsubscript𝑗0𝑛1superscript𝑞invsuperscript𝜎′𝑗
=(∑σ′∈Sn−1qinv⁢(σ′))⁢(1+q+⋯+qn−1)absentsubscriptsuperscript𝜎′subscript𝑆𝑛1superscript𝑞invsuperscript𝜎′1𝑞⋯superscript𝑞𝑛1
=[n]q⁢∑σ′∈Sn−1qinv⁢(σ′).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⁢[n−1]q⁢∑σ∈Sn−2qinv⁢(σ)=⋯=[n]q!.subscript𝜎subscript𝑆𝑛superscript𝑞inv𝜎subscriptdelimited-[]𝑛𝑞subscriptdelimited-[]𝑛1𝑞subscript𝜎subscript𝑆𝑛2superscript𝑞inv𝜎⋯subscriptdelimited-[]𝑛𝑞

The proof is completed. ∎

3 The value of E−O𝐸𝑂

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τ)⁢∑π1∈Skqinv⁢(π1)⁢∑π2∈Slqinv⁢(π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 E−O=(k+lk)−1𝐸𝑂subscriptbinomial𝑘𝑙𝑘1. To compute (Nk)−1subscriptbinomial𝑁𝑘1 for any N≥k≥0𝑁𝑘0, using the q𝑞-Pascal’s identity

(Nk)−1=(N−1k)−1+(−1)N−k⁢(N−1k−1)−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𝑖2⋯subscript𝑖𝑘. Then the number of inversions of σ𝜎 is ρ⁢(Aσ)=(i1−1)+(i2−2)+⋯+(ik−k)𝜌subscript𝐴𝜎subscript𝑖11subscript𝑖22⋯subscript𝑖𝑘𝑘. Now consider the polynomial pN⁢(x)=∏i=0N−1(1+qi⁢x)subscript𝑝𝑁𝑥superscriptsubscriptproduct𝑖0𝑁11superscript𝑞𝑖𝑥. The coefficient of the xksuperscript𝑥𝑘 term is

ck=∑S∈Xkqj1+j2+⋯+jk,subscript𝑐𝑘subscript𝑆subscript𝑋𝑘superscript𝑞subscript𝑗1subscript𝑗2⋯subscript𝑗𝑘

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

∑t=1kjt=∑t=1k(it−1)=ρ⁢(Aσ)+∑t=1kt−k=ρ⁢(Aσ)+k⁢(k−1)2.superscriptsubscript𝑡1𝑘subscript𝑗𝑡superscriptsubscript𝑡1𝑘subscript𝑖𝑡1𝜌subscript𝐴𝜎superscriptsubscript𝑡1𝑘𝑡𝑘𝜌subscript𝐴𝜎𝑘𝑘12

This implies that

ck=qk⁢(k−1)/2⁢∑σ∈Sk,lqρ⁢(Aσ)=qk⁢(k−1)/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=0N−1(1+qi⁢x)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

E−O=(k+lk)−1={0,k⁢l≡1⁢(mod2)(⌊(k+l)/2⌋⌊k/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)/2⌋⌊k/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.