-1
$\begingroup$

There are $n$ persons present at a meeting. Every two persons are either friends of each other or strangers to each other. No to friends have a friend in common. Every to strangers have two and only two friends in common.Prove that each person has the same number of friends at the meeting. If this number is $5$, find $n$.

I tried to solve it like this I assumed that every person has same number of friends. I tried to make combinations such that first every one has $2$ friends then every one has $3$ friends and so on

But I was not able to find and possibly configuration for every one had same number of friends for $3$ and $4$

I tried to do so so that I can find a pattern so that might give an insight into proving the solution

$\endgroup$
11
  • 2
    $\begingroup$ Welcome to MSE. You'll get a lot more help if you show that you have made a real effort to solve the problem yourself, even if you haven't made much progress. What are your thoughts? What have you tried? How far could you get? Where are you stuck? This question will likely be closed if you don't add more context. Please respond by editing the question body. Clarifications don't belong in the comments. $\endgroup$
    – saulspatz
    Commented May 7, 2021 at 11:25
  • 1
    $\begingroup$ Hint: Draw a graph. $\endgroup$ Commented May 7, 2021 at 11:27
  • $\begingroup$ You can see this problem as a strongly regular graph with parameters $(n,5,0,2)$. By the wikipedia article en.wikipedia.org/wiki/Strongly_regular_graph you obtain $n=...$. $\endgroup$
    – Jfischer
    Commented May 7, 2021 at 11:29
  • 1
    $\begingroup$ @Jfischer, the assignment asks to prove that the graph is regular. So, you can use the formula that you suggest only to calculate $n$ after you have shown that the graph is regular. Right? $\endgroup$
    – frabala
    Commented May 7, 2021 at 11:37
  • $\begingroup$ This has been edited with an attempt ; thanks for adding it. I have made some edits regarding the presentation and MathJax of your post : this can be noted for future reference. Thanks. $\endgroup$ Commented May 7, 2021 at 11:53

2 Answers 2

2
$\begingroup$

We consider the "meeting" as a graph $G=(V,E)$ with $|V|=n$ individuals and $E$ represents the relationships. For any $v\in V$ we denote the number of relationships (the degree in $G$) as $d(v)$. $G$ is connected since any non-adjacent vertices have a two common friends. (The diameter of $G$ is $2$.)

So, consider two friends $v,w\in V$, i.e., $\langle v,w\rangle\in E$. Since they have no common friends, there are $d(v)-1$ and $d(w)-1$ individuals, denoted by $(v_i)_{i=1}^{d(v)-1}$ and $(w_j)_{j=1}^{d(w)-1}$, respectively, such that $v_i$ and $w$ as well as $v$ and $w_j$ are not friends for any $i$ or $j$, respectively. Hence, $v_i$ and $w$ as well as $v$ and $w_j$ have each two friends in common, one of them being $v$ and $w$, respectively. Therefore, we obtain from the first case $d(w) \geq |\{v,v_1,...,v_{d(v)-1}\}|=d(v)$ and from the second case $d(v) \geq |\{w,w_1,...,w_{d(v)-1}\}|=d(w)$. Consequently, $d(v) = d(w)$. This immediately implies that $d(v)=d(w)$ if $v$ and $w$ are connected by a path. Hence, on any connected component of $G$ we have identical degrees.

$n$ can then be obtained as discussed in the comments via considering a strongly regular graph $srg(n,5,0,2)$ and the formula $2(n-5-1)=5(5-0-1)$ from the wikipedia article.

$\endgroup$
3
  • $\begingroup$ I don't quite follow this. $v_1$ and $w$ have a common friend, say $x_1$ where $x_1\neq v$. Similarly, $v_2$ and $w$ have a common friend, say $x_2$ where $x_2\neq v$ You seem to be assuming $x_1\neq x_2$, but I don't see why this is. $v_1$ and $v_2$ have a common friend $x\neq v$. Why can't $x$ be a neighbor of $\endgroup$
    – saulspatz
    Commented May 7, 2021 at 21:56
  • $\begingroup$ @saulspatz Each $v_i$ has a unique $w_j$ that is a friend, thus establishing the bijection. $\quad$ (This is a much shorter version of my proof, nice.) $\endgroup$
    – Calvin Lin
    Commented May 8, 2021 at 5:53
  • $\begingroup$ @CalvinLin I see it now. The $x_i$ are among the $w_j$. So if $v_1$ and $v_2$ are both friends with $w_1$, then $w_1$ has three friends in common with $w$. $\endgroup$
    – saulspatz
    Commented May 8, 2021 at 12:54
0
$\begingroup$

Note: Jfisher's solution is much shorter than mine, and uses the same ideas. I encourage you to read theirs instead.
They show that any 2 friends must have the same number of friends, hence the result follows immediately.

Set up the standard graph interpretation. Color an edge red if they are friends, blue if they are not. We consider the (red) degree, unless explicitly stated as blue degree.
The conditions are:

  1. No two friends have a friend in common $ \Rightarrow$ There is no red triangle.
  2. Every to strangers have two and only two friends in common $\Rightarrow$ Every blue edge is the base of exactly 2 red-red-blue triangles.

Claim: Any 2 vertices connected by a blue edge have the same red degree.

Proof: Pick any blue $v_i v_j$. Divide the rest of the vertices into the following groups:
L: $\deg (v_i) - 2$ vertices that are friends with $v_i$ but not $v_j$
C: 2 vertices that are friends with $v_i$ and $v_j$.
R: $ \deg (v_j) - 2$ vertices that are friends with $v_j$ but not $v_i$.
B: All other vertices, which are neither friends with $v_j$ or $v_j$.
We want to show that $|L| = |R|$.

Pick a vertex $v_l$ in L.
Since $v_l v_j$ are not friends, and $v_l v_i v_j$ is one blue-red-blue triangle, there is exactly 1 other vertex $v_r$ in R that $v_l$ is friends with.
This establishes a bijection between $L$ and $R$, showing that $ \deg v_i = \deg v_j$.

Claim: Every vertex has at least 1 blue edge

Proof: Suppose there is a vertex that has only red edges.
Then, since there are no red triangles, all the edges in the $n-1$ complete graph are blue.
This contradicts condition 2, since for any blue edge, there is exactly 1 red-red-blue triangle.

Claim: For $n \geq 5$, any 2 vertices are connected by a blue path

Proof: Suppose not. Let $v_i, v_j$ not be connected by a blue path.
Let $B (v_i)$ (resp $B(v_j)$) be the set of vertices connected to $v_i$ (resp $v_j$) by a blue path.
Since $B(v_i)$ and $B(v_j)$ are not connected by a blue path, any edges between these 2 sets are red.

From the previous claim, $ |B(v_i) | \geq 2$.
If $|B(v_i) | \geq 3$, then consider any blue edge in $ B(v_j)$, this contradicts condition 2. Hence $|B(v_i) | = 2$, which means that $v_i$ is blue-connected to only 1 other vertex. Then, we have $n-2 \geq 3$ red-red-blue triangles, which is a contradiction.

Corollary: For $n \geq 5$, the degrees of the vertices are equal.

Corollary: For $ n \leq 4$, the only case we have to consider is when $|B(v_i) | = 2$ and $ B(v_j) | = 2$, which gives us $n = 4$.
This is a valid case of 4 red edges and 2 blue, with the degree of each edge equal to 2, hence all equal.

Hence, the degrees are all equal.


I leave the second part to you. show what you've tried.

$\endgroup$
3
  • $\begingroup$ Thank you for your time and consideration $\endgroup$ Commented May 8, 2021 at 7:52
  • $\begingroup$ Why haven't you upvoted Jfisher's answer, then? $\endgroup$
    – saulspatz
    Commented May 8, 2021 at 12:56
  • $\begingroup$ @saulspatz lol because it was late and I fell asleep. Just did. $\endgroup$
    – Calvin Lin
    Commented May 8, 2021 at 14:32

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .