8VC Venture Cup 2017 - Elimination Round
G
PolandBall and Many Other Balls
Codeforces
3200
原题
← F→
翻译中…

PolandBall is standing in a row with Many Other Balls. More precisely, there are exactly $*n*$ Balls. Balls are proud of their home land — and they want to prove that it's strong.

翻译中…

The Balls decided to start with selecting exactly $*m*$ groups of Balls, each consisting either of single Ball or two neighboring Balls. Each Ball can join no more than one group.

翻译中…

The Balls really want to impress their Enemies. They kindly asked you to calculate number of such divisions for all $*m*$ where $1 ≤ *m* ≤ *k*$. Output all these values modulo $998244353$, the Enemies will be impressed anyway.

翻译中…

Input

翻译中…

There are exactly two numbers $*n*$ and $*k*$ ($1 ≤ *n* ≤ 10^{9}$, $1 ≤ *k* < 2^{15}$), denoting the number of Balls and the maximim number of groups, respectively.

翻译中…

Output

翻译中…

You should output a sequence of $*k*$ values. The $*i*$-th of them should represent the sought number of divisions into exactly $*i*$ groups, according to PolandBall's rules.

翻译中…

Note

翻译中…

In the first sample case we can divide Balls into groups as follows:

翻译中…

${1}$, ${2}$, ${3}$, ${12}$, ${23}$.

翻译中…

${12}{3}$, ${1}{23}$, ${1}{2}$, ${1}{3}$, ${2}{3}$.

翻译中…

${1}{2}{3}$.

翻译中…

Therefore, output is: 5 5 1.

翻译中…

样例

Input #1
3 3
Output #1
5 5 1
InputCopy OutputCopy
Input #2
1 1
Output #2
1
InputCopy OutputCopy
Input #3
5 10
Output #3
9 25 25 9 1 0 0 0 0 0
InputCopy OutputCopy
题目信息
题号
755G
时间限制
6 s
内存限制
256 MB
标签
组合数学
分治
动态规划
FFT
数学
数论

题面与样例版权归 Codeforces 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。