Tom and Jerry got lost in a desert. But they are not bored or afraid at all, because they found a truly interesting thing to do: researching the varied kinds of kakti in the desert!
After careful observations, they found that a kaktus can be seen as a graph consisting of several nodes. To be precise, an nn-node kaktus is an undirected connected graph that has only 11 node as the root, in which every edge belongs to exactly one simple cycle and all nodes are unlabelled. You can refer to sample case for a better understanding.
Finding something new is always exciting, but it brings them new doubts.
"How many different kinds of nn-node kakti are there?" wondered Tom.
"Your problem is simpler than mine. I am wondering how many different kinds of 1,2,3,..,n1,2,3,..,n-node kakti there are." said Jerry.