atcoder#ARC102C. [ARC102E] Stop. Otherwise...

[ARC102E] Stop. Otherwise...

Score : 700700 points

Problem Statement

Takahashi throws NN dice, each having KK sides with all integers from 11 to KK. The dice are NOT pairwise distinguishable. For each i=2,3,...,2Ki=2,3,...,2K, find the following value modulo 998244353998244353:

  • The number of combinations of NN sides shown by the dice such that the sum of no two different sides is ii.

Note that the dice are NOT distinguishable, that is, two combinations are considered different when there exists an integer kk such that the number of dice showing kk is different in those two.

Constraints

  • 1K20001 \leq K \leq 2000
  • 2N20002 \leq N \leq 2000
  • KK and NN are integers.

Input

Input is given from Standard Input in the following format:

KK NN

Output

Print 2K12K-1 integers. The tt-th of them (1t2K1)(1\leq t\leq 2K-1) should be the answer for i=t+1i=t+1.

3 3
7
7
4
7
7
  • For i=2i=2, the combinations $(1,2,2),(1,2,3),(1,3,3),(2,2,2),(2,2,3),(2,3,3),(3,3,3)$ satisfy the condition, so the answer is 77.
  • For i=3i=3, the combinations $(1,1,1),(1,1,3),(1,3,3),(2,2,2),(2,2,3),(2,3,3),(3,3,3)$ satisfy the condition, so the answer is 77.
  • For i=4i=4, the combinations (1,1,1),(1,1,2),(2,3,3),(3,3,3)(1,1,1),(1,1,2),(2,3,3),(3,3,3) satisfy the condition, so the answer is 44.
4 5
36
36
20
20
20
36
36
6 1000
149393349
149393349
668669001
668669001
4000002
4000002
4000002
668669001
668669001
149393349
149393349