902. Permutation Powers

A permutation π of {1,…,n} can be represented in one-line notation as π(1),…,π(n). If all n! permutations are written in lexicographic order then rank(π) is the position of π in this 1-based list.

For example, rank(2,1,3)=3 because the six permutations of {1,2,3} in lexicographic order are:

1,2,31,3,22,1,32,3,13,1,23,2,1

For a positive integer m, we define the following permutation of {1,…,n} with n=m(m+1)2:

σ(i)={k(k−1)2+1if i=k(k+1)2 for k∈{1,…,m};i+1otherwise;τ(i)=((109+7)imodn)+1π(i)=τ−1(σ(τ(i)))

where τ−1 is the inverse permutation of τ.

Define P(m)=∑k=1m!rank(πk), where πk is the permutation arising from applying π k times.
For example, P(2)=4, P(3)=780 and P(4)=38810300.

Find P(100). Give your answer modulo (109+7).

902. 置换的幂

我们可以用 一行表示法 π(1),⋯,π(n) 表示 {1,2,⋯,n} 的一个排列 π。我们将 {1,2,⋯,n} 的所有 n! 个排列按字典序升序排序,放入下标从 1 开始的列表内,记 rank(π) 为 π 在这个列表中的位置。

例如,rank(2,1,3)=3。因为 {1,2,3} 的所有 6 个排列按字典序升序排序后的结果是:

1,2,31,3,22,1,32,3,13,1,23,2,1

对正整数 m,令 n=m(m+1)2,我们定义如下 {1,…,n} 的排列:

σ(i)={k(k−1)2+1若对某 k∈{1,…,m} 有 i=k(k+1)2i+1其他情况;τ(i)=((109+7)imodn)+1π(i)=τ−1(σ(τ(i)))

其中,τ−1 是 τ 的逆置换。

记 P(m)=∑k=1m!rank(πk),其中 πk 是 π 自身复合 k 次得到的排列。已知:P(2)=4、P(3)=780、P(4)=38810300。

求 P(100) 模 (109+7) 的值。


点 这个链接 回到源站。

点 这个链接 回到详细版题目目录。