In a regular -gon, either or is written at each vertex. Using non-intersecting diagonals, Juku divides this polygon into triangles. Then he writes into each triangle the sum of the numbers at its vertices. Prove that Juku can choose the diagonals in such a way that the maximal and minimal number written into the triangles differ by at most . (Seniors.)
, 2010
Solution
If all numbers written at the vertices of the polygon are equal, then the claim holds trivially. Hence assume that there are both zeros and ones among the numbers at the vertices. We prove by induction that, for every convex polygon, the partition into triangles can be chosen in such a way that Juku writes either or to each triangle.
If , then this claim holds since the sum of the numbers at the vertices of a triangle can be neither nor . If (Fig. 2), then draw the diagonal that connects the vertices where and are written, respectively, or, if such a diagonal does not exist, then an arbitrary diagonal. In both cases, only sums and can arise. If , then choose two consecutive vertices with different labels and a third vertex that is not neighbour to either of them (Fig. 3). Irrespective of whether the label of is or , we can draw the diagonal from it to one of the two consecutive vertices chosen before so that the labels of its endpoints are different. Now the polygon is divided into two convex polygons with smaller number of vertices so that both and occur among their vertex labels. By the induction hypothesis, both polygons can be partitioned into triangles with sum of labels of vertices either or .

Fig. 2

Fig. 3