Problem

Source: IMO Shortlist 2017 C7

Tags: IMO Shortlist, combinatorics



For any finite sets X and Y of positive integers, denote by fX(k) the kth smallest positive integer not in X, and let XY=X{fX(y):yY}.Let A be a set of a>0 positive integers and let B be a set of b>0 positive integers. Prove that if AB=BA, then A(A(A(AA))) A appears b times=B(B(B(BB))) B appears a times. Proposed by Alex Zhai, United States