#P5825. 排列计数
排列计数
Problem Description
We say a permutation has ascents if and only if there exist positions such that .
Now given the permutation length , for all integers , find how many permutations have exactly ascents.
Input Format
An integer .
Output Format
One line with integers. The -th integer indicates the number of permutations of length with exactly ascents, taken modulo .
4
1 11 11 1 0
Hint
For of the testdata, .
Translated by ChatGPT 5