朋友数必有相同
Counting on friends
题目详情
在一个有 人的聚会上,人与人之间的“朋友关系”是对称的(若 A 是 B 的朋友,则 B 也是 A 的朋友)。
证明:至少存在两个人,他们的朋友数量相同。
At a party of people, there are some friendships. Prove that there are at-least two people with the same count of friends.
Assume that and that the friendships are symmetric, i.e, if is friends with , then is in turn friends with .
Hint
Pigeonhole Principle
解析
用抽屉原理。
每个人的朋友数只能是 。
但不可能同时有人朋友数为 0(没人认识)且有人朋友数为 (认识所有人),因为后者会认识前者。
因此实际可能的朋友数取值至多只有 种,而有 个人,于是至少两个人朋友数相同。
Original Explanation
Since there are possibilities for friend-count and total people, atleast two people must have the same count.
Solution
The question can be solved by using the Pigeonhole Principle, which essentially states that if there are more pigeons than pigeonholes, then there must be at least one pigeonhole with more than one pigeon.
In this party of people, indexed from to . The maximum number of friends a person can have is , because one can be friends with every other person but not with oneself. So the possible number of friends one can have ranges from to , a total of possibilities.
Note: If someone has zero friends, then someone else can have atmost friends, alternatively if someone has friends then someone else must have at-least friends.
Hence, the total possibilities of the count of friends ranges from to or from to , i.e, total possibilities, but there are only people at the party.
Let's consider the count of friends as "pigeonholes" and people as "pigeons". Notice that there are people ("pigeons") and different count of friends ("pigeonholes").
So, by the Pigeonhole Principle, at least two people must have the same count of friends in the party of people.
There's another way to solve this.
Proof by Contradiction: Assume that every person has a different number of friends from to . We would have a situation where one person has friends and another person has friends. This, however, contradicts the premise that friendships are symmetric, because if one person has friends, there cannot be someone with friends. Hence not everyone has a different number of friends