Problem 5
A deck of 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 does it follow that the numbers on the cards are all equal?
Step 5 of 8: Choose the largest card avoiding p
In plain words
The gcd condition guarantees an available card.
Detailed analysis
Because the gcd is , at least one card is not divisible by , so exists. Since is divisible by , .