Unofficial archive — problems, solutions & results © IMC, reproduced with permission.

IMC / 2009 / Problems / Day 1, P3

IMC 2009 · Day 1 · P3

hard

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 1 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.

Solution (official)

Let us define the simple, undirected graph GG so that the vertices of GG are the town's residents and the edges of GG are the friendships between the residents. Let V(G)={v1,v2,,vn}V(G) = \{v_1, v_2, \dots, v_n\} denote the vertices of GG; aia_i is degree of viv_i for every ii. Let E(G)E(G) denote the edges of GG. In this terminology, the problem asks us to describe the length kk of the shortest cycle in GG.

Let us count the walks of length 2 in GG, that is, the ordered triples (vi,vj,vl)(v_i, v_j, v_l) of vertices with vivj,vjvlE(G)v_i v_j, v_j v_l \in E(G) (i=li = l being allowed). For a given jj the number is obviously aj2a_j^2, therefore the total number is i=1nai2=n2n\sum_{i=1}^{n} a_i^2 = n^2 - n.

Now we show that there is an injection ff from the set of ordered pairs of distinct vertices to the set of these walks. For vivjE(G)v_i v_j \notin E(G), let f(vi,vj)=(vi,vl,vj)f(v_i, v_j) = (v_i, v_l, v_j) with arbitrary ll such that vivl,vlvjE(G)v_i v_l, v_l v_j \in E(G). For vivjE(G)v_i v_j \in E(G), let f(vi,vj)=(vi,vj,vi)f(v_i, v_j) = (v_i, v_j, v_i). ff is an injection since for i=li = l, (vi,vj,vl)(v_i, v_j, v_l) can only be the image of (vi,vj)(v_i, v_j), and for ili \ne l, it can only be the image of (vi,vl)(v_i, v_l).

Since the number of ordered pairs of distinct vertices is n2nn^2 - n, i=1nai2n2n\sum_{i=1}^{n} a_i^2 \ge n^2 - n. Equality holds iff ff is surjective, that is, iff there is exactly one ll with vivl,vlvjE(G)v_i v_l, v_l v_j \in E(G) for every i,ji, j with vivjE(G)v_i v_j \notin E(G) and there is no such ll for any i,ji, j with vivjE(G)v_i v_j \in E(G). In other words, iff GG contains neither C3C_3 nor C4C_4 (cycles of length 3 or 4), that is, GG is either a forest (a cycle-free graph) or the length of its shortest cycle is at least 5.

It is easy to check that if every two vertices of a forest are connected by a path of length at most 2, then the forest is a star (one vertex is connected to all others by an edge). But GG has nn vertices, and none of them has degree n1n - 1. Hence GG is not forest, so it has cycles. On the other hand, if the length of a cycle CC of GG is at least 6 then it has two vertices such that both arcs of CC connecting them are longer than 2. Hence there is a path connecting them that is shorter than both arcs. Replacing one of the arcs by this path, we have a closed walk shorter than CC. Therefore length of the shortest cycle is 5.

Finally, we must note that there is at least one GG with the prescribed properties – e.g. the cycle C5C_5 itself satisfies the conditions. Thus 5 is the sole possible value of kk.

How the field did

contestants scored
334
average (of 10)
3.50
solved (≥ 80%)
25.1%
near-0 (≤ 10%)
44.0%
discrimination
0.55

Score distribution (field cohort)

Computed on contestants with a meaningful total (field cohort); discrimination is the corrected item–total correlation.

Similar problems

IMC 2015 · Day 2 · P8hardavg 2.3/10 · solved 21% · near-0 75% · disc 0.55
IMC 2022 · Day 2 · P6hardavg 3.1/10 · solved 21% · near-0 55% · disc 0.53
IMC 2007 · Day 1 · P4hardavg 2.0/10 · solved 16% · near-0 69% · disc 0.61
IMC 2001 · Day 2 · P9hardavg 2.3/10 · solved 16% · near-0 66% · disc 0.48