Problem

Source: 2022 Mathematics Regional Olympiad of Mexico West P2

Tags: combinatorics



In a classroom there are $20$ rows of $22$ desks each $(22$ desks have noone in front of them). The $440$ contestants of a certain regional math contest are going to sit at the desks. Before the exam, the organizers left some amount of sweets on each desk, which amount can be any positive integer. When the students go into the room, just before sitting down they look at the desk behind them, the one on the left and the one diagonally opposite to the right of theirs, thus seeing how many sweets each one has; if there is no desk in any of these directions, they simply ignore that position. Then they sit and watch their own sweets. A student gets angry if any of the desks he saw has more than one candy more than his. The organizers managed to distribute the sweets in such a way that no student gets angry. Prove that there are $8$ students with the same amount of sweets.