It's party time at this week's Riddler:
It’s Friday and that means it’s party time! A group of N people are in attendance at your shindig, some of whom are friends with each other. (Let’s assume friendship is symmetric — if person A is friends with person B, then B is friends with A.) Suppose that everyone has at least one friend at the party, and that a person is “proud” if her number of friends is strictly larger than the average number of friends that her own friends have. (A competitive lot, your guests.)
Importantly, more than one person can be proud. How large can the share of proud people at the party be?
This is the type of puzzle I'd normally try to simulate first to get an idea of what the answer might be. I think this one seems easy enough to solve directly, though I've thought that before and my initial impressions turned out to be wrong, so we'll see.
It should be easy to see that 100% of the people at the party can't all be proud. In order for someone to be proud, at least one of their friends must have fewer friends. For that person to be proud, one of their friends must have fewer friends, and on and on we go until we get to some hypothetical person that has the fewest friends out of everyone. That last person clearly cannot be proud, because all of their friends have even more friends than they do.
(It also follows from the fact that the sum of all the friendships at the party can't be more than the sum of all the averages, because someone with more friends contributes more frequently to the averages than someone with fewer friends.)
This leads us to the next question: Can people be proud? Similar reasoning shows that they cannot. First, we should note that because everyone at the party must have at least one friend, and no one can have more than friends, then by the pigeonhole principle at least two people have the same number of friends. If these two people have the least number of friends at the party, then neither of them is proud. If they are somewhere further up the chain, then again by the pigeonhole principle we're going to reach a point where we run out of places to assign friends while ensuring that everyone has at least one friend with fewer friends than they do.
For example, imagine that one person has one friend, and two people have two friends. In order for both of the latter people to be proud, each of them must be friends with the person who has one friend. But that's obviously a contradiction, and the only way to resolve it is to make the person with one friend have two friends. But now all three of these people have the fewest friends at the party, and thus none of them are proud.
So is too many, but it's easy to see how people can be proud. Let's call two people at the party Andy and Bill. Of the rest of the partygoers, assume they're all friends with each other. In addition, half of them are friends with Andy (but not Bill) and the other half are friends with Bill (but not Andy).* Thus, all of these people have friends. And all of their friends have friends, except for Andy/Bill, who each have friends. So their average works out to:
Since , all of these guests are proud. So the largest possible proportion of proud people at the party is .
* - They don't have to be split in half like that, I just chose that so I could easily show the example mathematically. It's sufficient to say that some of the N-2 guests are friends with Andy, and the rest are friends with Bill. The point remains that each of the N-2 partygoers is friends with N-2 others, but the average of their friends' friends is something less than N-2 because of the inclusion of Andy or Bill.