Maths Olympiad Prep

Library / /14 of 63

, 2023

Combinatorics Difficulty 7.7 National olympiad, round 2 Prove it Turkey

In a school having nn students any student has exactly 20232023 friends and if two students are not friends then they have exactly 20222022 common friends. Find all possible values of nn.

Solution

Answer: n=2024,2026,2028,2696,4044n = 2024, 2026, 2028, 2696, 4044.

Let us reformulate a more general version of the problem in terms of the graph theory: In a regular graph GG on nn vertices each vertex has a degree k<n1k < n-1 and if two vertices are not neighbours then they have exactly k1k-1 common neighbours. Find all pairs (n,k)(n, k) satisfying these conditions.

If n=2024n = 2024 then the complete graph satisfies the conditions. The answer in the remaining cases: all pairs (n,k)=(2ab,2a(b1)+1)(n, k) = (2ab, 2a(b-1)+1) where a>1a > 1 and bb are positive integers and also all pairs (n,n3)(n, n-3) (if n=4bn = 4b then all pairs (n,n3)(n, n-3) are among pairs given by (n,k)=(2ab,2a(b1)+1)(n, k) = (2ab, 2a(b-1)+1)).

Let ww be a vertex with neighbours v1,,vkv_1, \dots, v_k. If some vertex is not a neighbour of ww then it is directly connected to k1k-1 neighbours of ww and hence it has exactly 11 neighbour among remaining vertices. Therefore, all vertices in the graph G{w,v1,,vk}G - \{w, v_1, \dots, v_k\} have degree 11 and consequently the number of vertices not directly connected to ww is even. Let us denote them by u1,,u2lu_1, \dots, u_{2l}. Since 1+l+2l=n1 + l + 2l = n we get that 2l=nk12l = n - k - 1. Without loss of generality

for 1tl1 \le t \le l let u2t1u_{2t-1} and u2tu_{2t} be neighbours. When l=1l = 1 we get a pair (n,n3)(n, n-3). Let l2l \ge 2. For any t3t \ge 3 the vertices u1u_1 and utu_t are not neighbours and their unique neighbours among vertices uiu_i are not common. Hence, u1u_1 and utu_t have k1k-1 neighbours among vertices viv_i. The same is true for u2u_2 and utu_t. Therefore, all these vertices are connected to the same k1k-1 vertices of ww. Without loss of generality, let v1v_1 be the vertex not connected to uiu_i, 1i2l1 \le i \le 2l. Since the degree of v1v_1 is kk it is directly connected to each viv_i. Therefore, for each 2ik2 \le i \le k the degree of viv_i in G{w,v1,u1,,u2l}G - \{w, v_1, u_1, \dots, u_{2l}\} is k112l=2kn1k-1-1-2l = 2k-n-1. Then the graph on the vertices v2,,vkv_2, \dots, v_k satisfies problem conditions with new parameters (k1,2kn1)(k-1, 2k-n-1). Since (k1)(2kn1)=nk(k-1)-(2k-n-1) = n-k, by repeating the same procedure we get that the graph GG contains pieces with 2l+22l+2 vertices and each piece contains l+1l+1 perfectly matching edges and all possible edges between different pieces are drawn. By denoting l+1l+1 by aa and the number of pieces by bb we get the desired answer.

When k=2023k = 2023 from 2a(b1)+1=20232a(b-1)+1 = 2023 we get that a1011=3337a|1011 = 3 \cdot 337. Therefore the possible values for aa are a=3,337,1011a = 3, 337, 1011 and we get n=2ab=2028,2696,4044n = 2ab = 2028, 2696, 4044. The pair (n,n3)(n, n-3) yields n=2026n = 2026.

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: MathNet, licensed CC-BY-4.0. Statement and solution reproduced as published; topic and difficulty added by this site.