#P10613. [PA 2008] Cliquers
[PA 2008] Cliquers
Problem Description
Count the number of essentially different graphs with vertices such that every connected component is a complete graph.
Compute , where is a prime number.
Input Format
One line with two integers, and .
Output Format
One line with one integer, representing the required result.
3 2
8
Hint
Sample Explanation.
When , the cases are shown in the figure below. Note that you should output the value of .

Constraints.
For all testdata, .
Translated by ChatGPT 5