Problem

Source: Moldova EGMO TST 2022

Tags: combinatorics



Find the smallest nonnegative integer $n$ such that in every set of $n$ numbers there are always two distinct numbers such that their sum or difference is divisible by $2022$.