Problem

Source: 2023 Turkey TST D1 P2

Tags: combinatorics, graph theory



There is a school with $n$ students. Suppose that every student has exactly $2023$ friends and every couple of student that are not friends has exactly $2022$ friends in common. Then find all values of $n$