Problem

Source: Turkey National Mathematical Olympiad 2021 P6

Tags: combinatorics, combinatorics proposed, graph theory



In a school, there are 2021 students, each having exactly $k$ friends. There aren't three students such that all three are friends with each other. What is the maximum possible value of $k$?