IMC 2009 · Problem 3

Day 116th IMC · Budapest, Hungary

Statement

In a town every two residents who are not friends have a friend in common, and no one is a friend of everyone else. Let us number the residents from 11 to nn and let aia_i be the number of friends of the ii-th resident. Suppose that i=1nai2=n2n\sum\limits_{i=1}^{n} a_i^2 = n^2 - n. Let kk be the smallest number of residents (at least three) who can be seated at a round table in such a way that any two neighbors are friends. Determine all possible values of kk.

Official solution

Hidden so you can work on the problem first.