Skip to main content
OlympiadHQ

Browse · MathNet

Print

66th Belarusian Mathematical Olympiad

Belarus counting and probability

Problem

An array of () integer numbers is written on a blackboard. Per move one change the array using the following rule: let be the arithmetic mean of all numbers of the current array, then each number which is less than or equal to is increased by 1 and each number which is greater than or equal to is decreased by 1; all other numbers are not changed. Prove that after finite number of the moves the numbers on the blackboard cannot be changed. (E. Zhibrik)
Solution
Let denote the arithmetic mean of all numbers written on the blackboard after moves, and be the greatest and the smallest of the written numbers. Show that if then Indeed, since , we see that the segment along with its ends, contains at least one positive integer number. Hence, at least one of the inequalities or holds (). If exactly one of these inequalities holds, then ; if both the inequalities hold, then . Hence, inequality (1) holds. Since the difference decreases when increases, after some moves this difference will be equal either to 0 or to 1. If , then all numbers on the blackboard are equal, hence they coincide with their arithmetic mean, therefore they will not be changed ever after the -th move.

If , then there are only two distinct numbers on the blackboard: and . So their arithmetic mean is a number between and , hence, by condition, the numbers on the blackboard will not be changed after the -th move.

Techniques

Invariants / monovariantsInduction / smoothing