mersenneforum.org

mersenneforum.org (https://www.mersenneforum.org/index.php)
-   Math (https://www.mersenneforum.org/forumdisplay.php?f=8)
-   -   Number of n-element permutations with exactly k inversions (https://www.mersenneforum.org/showthread.php?t=3659)

tytus 2005-01-31 14:53

Number of n-element permutations with exactly k inversions
 
:question: :question: :question:

How to find the number of n-element permutations with exactly k inversions?

A pair of indices (i,j), 1<=i<=j<=n, is an inversion of the permutation A if ai>aj.

:help: :help: :help:

JuanTutors 2005-01-31 19:47

Not to be abnoxious, but is this a homework problem?

tytus 2005-01-31 19:55

No, it's not a homework problem... I just would like to know (maybe I should say I have to know) the formula to get the number of n-element permutations with k inversions with given n,k...

geoff 2005-02-04 10:10

This is problem 3.20 in "Combinatorial Problems and Exercises" by L. Lovász:

Let a[sub]n,k[/sub] denote the number of those permutations [font=symbol]p[/font] of {1, ..., n} which have k inversions (pairs i < j with [font=symbol]p[/font](i) > [font=symbol]p[/font](j)). Prove that [font=symbol]S[/font][sub]k=1[/sub] a[sub]n,k[/sub] x[sup]k[/sup] = (1+x)(1+x+x[sup]2[/sup]) ... (1+x+...+x[sup]n-1[/sup]).

(The upper limit of the summation is n choose 2, I don't know how to code that here.)


All times are UTC. The time now is 18:06.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.