#abc230h. [abc230_h]Bullion
[abc230_h]Bullion
Problem Statement
Takahashi won a claw machine competition and was awarded "all-you-can-stuff" gold blocks.
There are unlimited numbers of blocks weighing kilograms each, and an unlimited number of bags weighing kilogram each to stuff them.
Takahashi can bring home one non-empty bag.
A bag can contain zero or more other non-empty bags and zero or more gold blocks.
After arranging a truck with a load capacity of kilograms, he gets interested in the number of ways to stuff gold blocks and bring home a bag that weighs kilograms in total for .
Find the number, modulo , of possible states of the bag for each . Here,
- two gold blocks are said to be the same when their weights are the same;
- two bags are said to be in the same state when the two multisets whose elements are the bags and gold blocks in the two bags are the same.
Constraints
- All values in input are integers.
Input
Input is given from Standard Input in the following format:
Output
Print the answer in lines.
The -th line should contain the count for .
Sample Input 1
4 1
1
Sample Output 1
1
2
4
The figure below enumerates the possible states of the bag for . (A circle represents a bag.)
Sample Input 2
10 10
1 2 3 4 5 6 7 8 9 10
Sample Output 2
1
3
7
18
45
121
325
904
2546