#P5900. 无标号无根树计数
无标号无根树计数
Background
Considering that Luogu does not have this type of problem yet, here is a simple easy problem.
Problem Description
Find the number of unlabeled unrooted trees with nodes. Output the answer modulo .
Input Format
Input one line with a positive integer .
Output Format
Output one line with one integer, representing the answer.
7
11
27
751065460
Hint
Constraints
For of the testdata, ;
For of the testdata, .
Although can also pass, it is not very meaningful. It is recommended to implement a solution.
Translated by ChatGPT 5