Middle European Mathematical Olympiad 2020 Problem I-1
Let be the set of positive integers. Determine all positive integers for which there exist functions and such that assumes infinitely many values and such that
holds for every positive integer .
(Remark. Here, denotes the function applied times, i.e., .)