Middle European Mathematical Olympiad 2022 Problem T-7
Let denote the set of positive integers. Determine all functions such that and the numbers and are both perfect squares for every positive integer .
Let denote the set of positive integers. Determine all functions such that and the numbers and are both perfect squares for every positive integer .