#P5393. 下降幂多项式转普通多项式
下降幂多项式转普通多项式
Background
This is a template problem.
Problem Description
You are given a falling-factorial polynomial $F(x)=\displaystyle\sum_{i=0}^{n-1}a_ix^{\underline{i}}$.
Find an ordinary polynomial .
Such that .
All operations are performed modulo .
Input Format
The first line contains a positive integer , as described above.
The second line contains numbers, where the -th number represents .
Output Format
Output one line with numbers, where the -th number is .
3
1 2 1
1 1 1
Hint
For all testdata, .
This problem has subtasks.
Among them, subtasks have .
The other subtasks have .
Constraints
Translated by ChatGPT 5