#P10982. Connected Graph
Connected Graph
Background
This problem is a simplified version of P4841 [CTT Homework 2013] City Planning, with the polynomial part from the original problem removed.
Problem Description
Find the number of labeled undirected connected graphs with vertices.
Input Format
Input one positive integer .
Output Format
Output the answer modulo ( ).
3
4
4
38
Hint
Constraints: .
Translated by ChatGPT 5