#P6598. 烷烃计数
烷烃计数
Description
How many structural isomers (stereoisomers not considered) are there for an alkane with carbon atoms?
Hint: If you do not know what an alkane is, you can consider this problem equivalent to counting the number of unlabelled unrooted trees with nodes, where the degree of each node is .
Input Format
An integer representing the number of carbon atoms.
Output Format
Output an integer representing the answer, taken modulo .
5
3
Hint
Explanation for Sample 1

Constraints
For all testdata, it is guaranteed that .
Translated by ChatGPT 5
京公网安备 11011102002149号