Problem

Source: XIII Rioplatense Mathematical Olympiad (2004), Level 3

Tags: modular arithmetic, number theory unsolved, number theory



Find the smallest integer $n$ such that each subset of $\{1,2,\ldots, 2004\}$ with $n$ elements has two distinct elements $a$ and $b$ for which $a^2-b^2$ is a multiple of $2004$.