#Lutece3233. 简单的数列题
简单的数列题
Migrated from Lutece 3233 简单的数列题
All parts of this problem, including description, images, samples, data and checker, might be broken. If you find bugs in this problem, please contact the admins.
Description
注:本题不计一血 波波王得到了一个数列,它满足这样的递推关系:
$$a_n=\sum_{i=0}^{n-1}a_ia_{n-1-i},n\geq 2\\ a_0=a_1=1 $$波波王希望给你 个值 ,对于每个 ,你可以求出 的值。 由于这个值可能会很大,因此你需要对 取模。
Input
第一行一个数 ,表示 的数量。 接下来 行,第 行一个整数,表示 .
Output
行,每行一个数,第 行表示 对 取模的结果。
Samples
2
1
3
1
5
Constraints
Resources
2024 UESTC ICPC Training for Math