Problem

Source: JBMO Shortlist 2022

Tags: combinatorics, geometry, Junior, Balkan, shortlist, combinatorial geometry



Let $S$ be a finite set of points in the plane, such that for each $2$ points $A$ and $B$ in $S$, the segment $AB$ is a side of a regular polygon all of whose vertices are contained in $S$. Find all possible values for the number of elements of $S$. Proposed by Viktor Simjanoski, Macedonia