Problem

Source: IMO 2020 Problem 5

Tags: IMO 2020, IMO, number theory, arithmetic mean, geometric mean, IMO Shortlist, IMO Shortlist 2020



A deck of $n > 1$ cards is given. A positive integer is written on each card. The deck has the property that the arithmetic mean of the numbers on each pair of cards is also the geometric mean of the numbers on some collection of one or more cards. For which $n$ does it follow that the numbers on the cards are all equal? Proposed by Oleg Košik, Estonia