Boxes and Balls
Source: 2023 Turkey Junior National Olympiad P1
December 22, 2023
combinatorics
Problem Statement
Initially, there are red boxes numbered with the numbers and white boxes numbered with the numbers on the table. At every move, we choose different colored boxes and put a ball on each of them. After some moves, every pair of the same numbered boxes has the property of either the number of balls from the red one is more than the number of balls from the white one or the number of balls from the white one is more than the number of balls from the red one. With that given information find all possible values of