#P2144. [FJOI2007] 轮状病毒

    ID: 1122 远端评测题 1000ms 125MiB 尝试: 0 已通过: 0 难度: 8 上传者: 标签>动态规划,dp高精度递推2007各省省选福建

[FJOI2007] 轮状病毒

Description

There are many variants of rotaviruses. Many rotaviruses are generated from a wheel base. An nn-wheel base consists of nn distinct base atoms on a circular ring and one core atom at the center. An edge between 22 atoms represents the information channel between these 22 atoms, as shown in Figure 1.

The generation rule of an nn-rotavirus is to delete some edges in the nn-wheel base so that there is a unique information path between any two atoms. For example, there are 1616 different 33-rotaviruses, as shown in Figure 2.

Given n (n100)n\ (n \le 100), write a program to compute how many different nn-rotaviruses there are.

Input Format

The first line contains 11 positive integer nn.

Output Format

Output 11 line, the number of different nn-rotaviruses.

3

16

Hint

Translated by ChatGPT 5