MathLabs

Problem 5

A deck of n>1n>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 nn does it follow that the numbers on the cards are all equal?
Step 6 of 8: The critical mean is not divisible by p
In plain words

The mean lies strictly above the largest p-free card.

x=M+ak2,ak<x<M,p∤xx=\frac{M+a_k}{2},\qquad a_k<x<M,\qquad p\nmid x
Detailed analysis

Both MM and aka_k are odd, so xx is an integer by Step 2, and x>akx>a_k. If p∣xp\mid x, then p∣2x=M+akp\mid2x=M+a_k; since p∣Mp\mid M and pp is odd, this would give p∣akp\mid a_k, a contradiction.