We have to place natural numbers that are not all equal at the vertices of a regular -sided polygon , with center at in such a way that for every vertex there exist two vertices and , that are symmetrical with respect to the line and the equation holds. For which can we do this?
(Bogdan Rublyov)
Solution
Let us assume we managed to place numbers properly. Let , . If , then , hence there have to be at least 3 of the smallest numbers, similarly for the biggest. It is easy to fill in numbers when

Fig. 40
is composite. Let , . Then we place in vertices , and we place in the rest of the vertices. It is clear that we satisfy conditions since we split vertices of our polygon into regular -sided polygons, with the same number at each vertex, and a number in each vertex of a polygon is the arithmetic mean of numbers in the rest of the vertices of the same polygon, hence we satisfy the condition for -sided polygon.
Now we consider the case when is prime. Let us represent this number as , where . Next we propose the following arrangement of numbers in vertices of -sided polygon.
First for . For the sake of simplification, on Fig. 40 we denote vertex as , as black disk, and as a white disk. Now for every disk we have to indicate a pair of disks of the same color that are located symmetrically (on equal distance from , hence with index and (mod )). In case there are 3 or more consecutive disks of the same color, then we have to consider only those on the sides of the group since for the rest of them the desired pair is two adjacent disks. Therefore for the group of black vertices we have to find a pair for the disk with index (due to symmetry we have a similar answer for ). It is obvious that a pair for will be 1 and a symmetric disk. We can calculate that its index is , since it has to satisfy . Hence it will be black if or . Due to symmetry, for the white group it is enough to consider indices .
For 2 a pair is and 4. Now we consider . One could be a disk with the least possible index of . The other one has to have an index of
A distinct black vertex with index of 1 clearly satisfies conditions, for instance, its pair of symmetric vertices could be and . Therefore this construction will do when , meaning .
Now we consider (Fig. 41). For the group of black vertices we have to find a pair for the disk with index . The desired pair is 1 and a symmetric disk with index of , since it has to satisfy . Hence it will be black when or .
For the white group for 2 the pair is and 4. Now we consider . One could be a disk with the least possible index of . The other one has to have an index of
A distinct black vertex with index of 1 clearly satisfies conditions, its pair of symmetric vertices could be and . Therefore this construction will do when , meaning .
Now we have to consider the following prime numbers: 17, 13, 11 and 7.
Let's present construction for the first three of them.
Have a look at Fig. 42 for . Non-obvious pairs are for the following vertices:
Have a look at Fig. 43 for . Non-obvious pairs are for the following vertices:
Have a look at Fig. 44 for . Black and white disks are located symmetrically thus it is enough to indicate pairs for one of the colors.
There is a distinct gray disk, therefore for number the following equation has to be satisfied, for instance, , , .
It is impossible to satisfy conditions for . Assume there are no more minimal than maximal. Then there are no more than 3 of them. It is clear that there cannot be 2 of them. Same goes for their location, since in case they are consecutive, then the ones on the sides do not have a pair, in case two are adjacent, then each of them does not have a pair. In case they are all distinct, we have an alternating placement and two of them do not have a pair.
Therefore, the answer is: for all .