logo AlgoBeat OnlineJudge
登录 注册

#215776. [JAG 2023 Summer Camp #3] Camp room assignment

内存限制:1024 MiB 时间限制:2000 ms 标准输入输出
题目类型:VJudge(洛谷) 评测方式:VJudge
上传者: 匿名

题目描述

In the JAG country, there are a total of universities, and we plan to invite students to a training camp. Each student is affiliated with one of the universities. During the training camp, the students will be accommodated in twin rooms, meaning that each room will be assigned to exactly two students.

To promote diverse interactions among the students, our goal is to achieve a "good room assignment". A room assignment is considered good if and only if the students sharing the same room come from different universities.

Here, we are wondering how often a good room assignment is feasible. There are possible sequences of universities to which each student belongs, and please find for how many of them there is a good room assignment.

Actually, we don't yet know how many rooms we can provide. Therefore, for each of , please find for how many of the sequences of universities there is a good room assignment.

Since the answer may be huge, print the answers modulo .

输入格式

The input is a single line containing an integer between and , inclusive.

输出格式

Output lines. In the -th line, you should output the answer for .

样例

样例输入 1

3

样例输出 1

6
54
510

样例输入 2

5

样例输出 2

20
540
14300
370300
9454620

样例输入 3

20

样例输出 3

380
158460
63889400
636003875
443532759
163564701
433390846
160318339
979712600
445802634
862134704
374397421
898644169
181404073
884138261
856576908
608198482
349239556
724235122
812173715