For any finite sets X and Y of positive integers, denote by fX(k) the kth smallest positive integer not in X, and let X∗Y=X∪{fX(y):y∈Y}.Let A be a set of a>0 positive integers and let B be a set of b>0 positive integers. Prove that if A∗B=B∗A, then A appears b timesA∗(A∗⋯(A∗(A∗A))⋯)= B appears a timesB∗(B∗⋯(B∗(B∗B))⋯).Proposed by Alex Zhai, United States IMO Shortlistcombinatorics