#P6295. 有标号 DAG 计数
有标号 DAG 计数
Description
Count the number of labeled directed acyclic graphs (DAGs) on vertices with the requirement that the graph is weakly connected (that is, after replacing all directed edges with undirected edges, the resulting graph is connected). Output the answer modulo .
Input Format
An integer .
Output Format
There are lines. On the -th line , output the answer when .
5
1
2
18
446
26430
Hint
The first test point has .
The second test point has .
Translated by ChatGPT 5
京公网安备 11011102002149号