Putting two colored papers into folders
Source: Azerbaijan IMO TST 2018, D3 P1
August 3, 2023
combinatorics
Problem Statement
Let and be natural numbers. Professor Mubariz has folders and Professor Nazim has folders; initially, all folders are empty. Every day, where the day numbers are marked as Prof. Mubariz is given blue papers, and Prof. Nazim is given orange papers. On day they both perform the following operations:[*] If the papers given to this professor are not enough to place papers in each of his folders, then he distributes all the papers given to him to his students. If the papers given to this professor are enough to place papers in each of his folders, firstly, he places papers in each of his folders.
[*] If this professor still has papers left after the first step, he places them in the other professor's folders, with the same number in each folder and as many as possible.
[*] If this professor still has papers left after the second step, he distributes them to his students.Prove that after years, the number of blue papers in one folder of Prof. Nazim will be equal to the number of orange papers in one folder of Prof. Mubariz.