Problem 916
Restricted Permutations
Let
- There is no ascending subsequence with more than
elements, and - There is no descending subsequence with more than two elements.
Note that subsequences need not be contiguous. For example, the permutation
Find
有限制排列
令
- 不存在长度超过
的递增子序列,且 - 不存在长度超过
的递减子序列。
注意子序列不必连续。例如,排列
求
Gitalking ...