Maths Olympiad Prep

Library / SAUDI ARABIAN IMO Booklet /25 of 25

SAUDI ARABIAN IMO Booklet, 2023

Combinatorics Difficulty 9.1 IMO level Prove it Saudi Arabia

Let n>3n > 3 be an integer. Suppose that nn children are arranged in a circle, and nn coins are distributed between them (some children may have no coins). At every step, a child with at least 2 coins may give 1 coin to each of their neighbours on the right and left. Determine all initial distributions of coins from which it is possible that, after a finite number of steps, each child has exactly one coin.

Solution

The answer is: all distributions where ∑i=1nici=n(n+1)2(modn)\sum_{i=1}^n i c_i = \frac{n(n+1)}{2} \pmod n, where cic_i denotes the number of coins the ii-th child starts with.

Encode the sequence cic_i as polynomial p(x)=∑iaixip(x) = \sum_i a_i x_i. The cyclic nature of the problem makes it natural to work modulo xn−1x^n - 1. Child ii performing a step is equivalent to adding xi(x−1)2x^i(x-1)^2 to the polynomial, and we want to reach the polynomial q(x)=1+x+⋯+xn−1q(x) = 1 + x + \dots + x^{n-1}.

Since we only add multiples of (x−1)2(x-1)^2, this is only possible if p(x)=q(x)p(x) = q(x) modulo the ideal generated by xn−1x^n - 1 and (x−1)2(x-1)^2, i.e.
(xn−1,(x−1)2)=(x−1)(xn−1x−1,(x−1))=(x−1)⋅(n,(x−1)) (x^n - 1, (x-1)^2) = (x-1)\left(\frac{x^n - 1}{x-1}, (x-1)\right) = (x-1) \cdot (n, (x-1))
This is equivalent to p(1)=q(1)p(1) = q(1) (which simply translates to the condition that there are nn coins) and p′(1)=q′(1)(modn)p'(1) = q'(1) \pmod n, which translates to the invariant. We also could show that this condition is also sufficient. □\square

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

Source: MathNet, licensed CC-BY-4.0. Statement reproduced verbatim; metadata (topic, difficulty) added by this project.