Unlimited candy in PAGMO
Source: Pan-American Girls' Mathematical Olympiad 2021, P5
October 6, 2021
combinatoricsPAGMO
Problem Statement
Celeste has an unlimited amount of each type of types of candy, numerated type 1, type 2, ... type n. Initially she takes candy pieces and places them in a row on a table. Then, she chooses one of the following operations (if available) and executes it: She eats a candy of type , and in its position in the row she places one candy type followed by one candy type (we consider type to be type 1, and type 0 to be type ). She chooses two consecutive candies which are the same type, and eats them.Find all positive integers for which Celeste can leave the table empty for any value of and any configuration of candies on the table.