Smallest Regular Subpolygon
Time limit2sMemory limit512 MB
Given a regular N-gon, find the smallest number of its vertices that themselves form a regular polygon.
- Level
Medium6 of 10
- Topics
- Number theory, Math, Geometry, Combinatorics
- Solved
- No attempts yet
Problem
A regular -gon is given. Choose the smallest number of its vertices that also form a regular polygon.
Input
The input contains a single integer ().
Output
Print a single number: the smallest number of vertices of the given polygon that form a regular polygon.