Problem

Source: 2017 Turkey Junior National Olympiad

Tags: combinatorics



In a chess festival that is held in a school with $2017$ students, each pair of students played at most one match versus each other. In the end, it is seen that for any pair of students which have played a match versus each other, at least one of them has played at most $22$ matches. What is the maximum possible number of matches in this event?