Maths Olympiad Prep

Library / /2 of 3

, 2017

Combinatorics Difficulty 7.6 National olympiad, round 2 Prove it Balkan Mathematical Olympiad

We have nn students sitting at a round table. Initially each student is given one candy. At each step each student having candies either picks one of its candies and gives it to one of its neighbouring students, or distributes all of its candies to its neighbouring students in any way he wishes. A distribution of candies is called legal if it can be reached from the initial distribution via a sequence of steps.
Determine the number of legal distributions. (All the candies are identical.)

Solution

The answer turns out to be (2n1n)\binom{2n-1}{n} if nn is odd and (2n1n)2(3n1n)\binom{2n-1}{n} - 2\binom{3n-1}{n} if nn is even.

Case 1. Suppose nn is odd, say n=2m+1n=2m+1. In this case we will show that any distribution of candies is legal. Thus the number of legal distributions is indeed (2n1n)\binom{2n-1}{n}.

In this case we can achieve the above claim by letting each student to always distribute all of its candies to its two neighbouring students in some way. Thus at each step each candy will move either one position clockwise or one anticlockwise.

We now look at the initial distribution of candies and the required final distribution. We specify arbitrarily for each candy in the initial distribution, the position we wish this candy to end up in the required final distribution. Because nn is odd, either the clockwise distance or the anticlockwise distance between the initial position of the candy and the required final position is even and at most mm.

Thus after an even number of steps (at most mm) we can move each candy to its required final position. (Note that if the candy reaches the required position earlier, we can move it back and forth until all candies reach their required position.) This completes the proof of our claim in this case.

Case 2. Suppose nn is even, say n=2mn=2m. Let x1,,x2mx_1, \dots, x_{2m} be the students in this cyclic order.

Observe that initially the students with even indices (even students) have at least one candy in total, and so do the students with odd indices (odd students). This property is preserved after each step.

We will show that every distribution in which the even students have at least one candy in total and the odd students also have at least one candy in total is legal.

Let us suppose that the required final distribution has aa candies in odd positions and bb candies in even positions. (Where a,b1a, b \ge 1.) It will be enough to reach any position with aa candies in even positions and bb candies in odd positions as then we can follow the same approach as in Case 1.

To achieve this we will first move all candies to students x1x_1 and x2x_2. This is easy by specifying that at each step x1x_1 moves all of its candies to x2x_2 while for 1r2m11 \le r \le 2m-1 student xr+1x_{r+1} moves all of its candies to xrx_r.

Suppose that we now have a+ka+k candies at x1x_1 and bkb-k candies at x2x_2 where without loss of generality k0k \ge 0. If k=0k=0 we have reached our target. If not, in the next step x1x_1 moves a candy to x2x_2 and x2x_2 moves a candy to x3x_3. In the next step x1x_1 (it still has a+k1a>0a+k-1 \ge a > 0 candies) moves a candy to x2x_2, x2x_2 moves a candy to x1x_1 and x3x_3 moves a candy to x2x_2. We now have a+k1a+k-1 candies in x1x_1 and b+1kb+1-k in x2x_2. Repeating this process another k1k-1 times we end up with aa candies in x1x_1 and bb candies in x2x_2 as required.

It remains to count the total number of legal configurations in this case. This is indeed equal to
(2n1n)2(3n1n) \binom{2n-1}{n} - 2\binom{3n-1}{n}
as (2n1n)\binom{2n-1}{n} counts the total number of configurations while (3n1n)\binom{3n-1}{n} counts the number of illegal configurations where either all nn candies belong to the n2\frac{n}{2} odd positions or all nn candies belong to the n2\frac{n}{2} even positions.

Want a route through all this instead of an archive? The track puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.

Source: MathNet, licensed CC-BY-4.0. Statement and solution reproduced as published; topic and difficulty added by this site.