coloring vertices of regular 2002-gon
Source: VIII May Olympiad (Olimpiada de Mayo) 2002 L2 P4
September 19, 2022
combinatoricscombinatorial geometry
Problem Statement
The vertices of a regular -sided polygon are numbered through , clockwise. Given an integer , , color vertex blue, then, going clockwise, count vertices starting at the next of , and color blue. And so on, starting from the vertex that follows the last vertex that was colored, n vertices are counted, colored or uncolored, and the number is colored blue. When the vertex to be colored is already blue, the process stops. We denote to the set of blue vertices obtained with this procedure when starting with vertex . For example, is made up of vertices , , , , , , , , , , and .
Determine all integers , , such that has exactly vertices,