We derive a generating function for the number of integer compositions of into parts (i.e., -compositions of ) with a given number of inversions, and obtain similar results for -compositions of with a given number of descents. Our approach relies on a known bijection that associates each integer composition with a pair , where is a permutation and is an integer partition. We show that the distribution of inversions and the distribution of descents over -compositions are related, respectively, to the distribution of (maj,inv) and to the distribution of (inv,des) over permutations of , where maj, inv, and des denote the classical permutation statistics major index, inversion number, and descent number, respectively.

生成讲解博客的中文版本

生成AI智能校验的中文版本