MathDB
Stable Configuration

Source: Turkey National Olympiad 2002 - D1 - P1

March 11, 2011
combinatorics unsolvedcombinatorics

Problem Statement

Let (a1,a2,,an)(a_1, a_2,\ldots , a_n) be a permutation of 1,2,,n,1, 2, \ldots , n, where n  \geq 2. For each k=1,,nk = 1, \ldots , n, we know that aka_k apples are placed at the point kk on the real axis. Children named A,B,CA,B,C are assigned respective points xA,xB,xC{1,,n}.x_A, x_B, x_C \in \{1, \ldots , n\}. For each k,k, the children whose points are closest to k k divide aka_k apples equally among themselves. We call (xA,xB,xC)(x_A, x_B, x_C) a stable configuration if no child’s total share can be increased by assigning a new point to this child and not changing the points of the other two. Determine the values of nn for which a stable configuration exists for some distribution (a1,,an)(a_1, \ldots, a_n) of the apples.