Problem

Source: Polish MO

Tags: number theory, prime numbers



A prime number $p > 2$ and $x,y \in \left\{ 1,2,\ldots, \frac{p-1}{2} \right\}$ are given. Prove that if $x\left( p-x\right)y\left( p-y\right)$ is a perfect square, then $x = y$.