Maths Olympiad Prep

Library / /15 of 43

Combinatorics Difficulty 7.8 National olympiad, round 2 Find the answer

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_{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.

A number or a short expression. Spacing and $ signs are ignored.

Solution

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}, \ldots, v_{n}\} denote the vertices of G;aiG ; a_{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).ff(v_{i}, v_{j})=(v_{i}, v_{j}, v_{i}) . f is an injection since for il,(vi,vj,vl)i \neq l,(v_{i}, v_{j}, v_{l}) can only be the image of (vi,vl)(v_{i}, v_{l}), and for i=li=l, it can only be the image of (vi,vj)(v_{i}, v_{j}). Since the number of ordered pairs of distinct vertices is n2n,i=1nai2n2nn^{2}-n, \sum_{i=1}^{n} a_{i}^{2} \geq 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.

Want a route through all this instead of an archive? The track puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.

Source: Omni-MATH, licensed Apache-2.0. Statement and solution reproduced as published; topic and difficulty added by this site.