Mock CCO '19 Contest 1 Problem 4 - A Chemistry Problem

View as PDF

Submit solution

Points: 15 (partial)
Time limit: 0.6s
Memory limit: 162M

Problem types

A circle is drawn with center at O and N points p1 through pN are equally spaced around the circle.

Line segments are drawn to connect O to each of these N points.

Compute the number of ways to delete N of the line segments or arcs such that the N+1 points are still connected.

Constraints

1N100

In test data worth 10% of marks, you may assume N10.

Input Specification

The first and only line contains a single positive integer, N.

Output Specification

Output the number of desired configurations.

Sample Input

Copy
3

Sample Output

Copy
16

Comments

There are no comments at the moment.