Adam, Benin, Chiang, Deshawn, Esther, and Fiona have internet accounts. Some, but not all, of them are internet friends with each other, and none of them has an internet friend outside this group. Each of them has the same number of internet friends. In how many different ways can this happen?
- A)
- B)
- C)
- D)
- E)
Answer
B
Key insight
Everyone has 1 to 4 friends. Swapping friends and non-friends turns 1 into 4 and 2 into 3, so count only 1 and 2 friends, then double.
Solution
Draw the six people as dots and each friendship as a line between two dots. Everyone has the same number of friends; call it .
1. Possible values of . "Some" are friends, so . Each person has only others to be friends with, and "not all" rules out . So is , , or .
2. A shortcut. Swap every line for a non-line and every non-line for a line. Someone with friends now has friends. Swapping twice gets back to the start, so the setups match up one-for-one with the setups, and matches . So we only need to count and .
3. : everyone has exactly one friend. The six people split into three pairs. Adam's friend can be any of the other . Among the people left, take the first one alphabetically; their friend can be any of the other . The last two people must be friends. That gives ways.
4. : everyone has exactly two friends. Start at one person and walk from friend to friend. You go around a closed loop. A loop needs at least people, so the six people form either one loop of six or two loops of three.
- One loop of six. Seat the six around a round table and make each person friends with their two neighbours. There are seatings, but turning the table ( ways) or flipping it over ( ways) gives the same friendships. That leaves ways.
- Two loops of three. Choose Adam's two loop-mates: ways. The other three form the second loop. That gives ways.
- Total for : .
5. By the shortcut, also gives and also gives .
6. Total: .
The answer is .
Why this works
Swapping "friends" with "not friends" turns one case into another, so you only have to count half the cases. When everyone has exactly two friends, the friendships always form closed loops, which makes that case easy to list. When a problem looks the same after swapping yes and no, count the smaller half and use the match-up for the rest.
Alternative approach
Count directly to check the shortcut. With six people and three friends each, there are two shapes. First, two groups of three where everyone is friends with all of the other group: choose the groups in ways. Second, two triangles with each corner of one joined to one corner of the other, like the edges of a triangular prism: ways. That is , the same as .
The trap
Forgetting that "everyone has two friends" includes two separate groups of three as well as one loop of six, or counting the same loop several times by not allowing for turning or flipping it.
Concise solution
Picture the six people as points and each friendship as a segment between two points. Every person has the same number of friends. "Some" friendships means ; "not all" rules out everyone being friends with everyone, so .
Complement symmetry: if we swap every friendship for a non-friendship and vice versa, a configuration in which everyone has friends becomes one in which everyone has friends, and swapping back undoes it. So there are as many configurations as , and as many as . Only and need to be counted.
: the six people split into three friend pairs. Adam's friend can be any of people; the first person not yet paired has choices; the last pair is forced. That is .
: each person's two friendships link into closed loops that cover all six people, and a loop needs at least three people, so the loops are either one loop of six or two loops of three.
- One loop of six: seat six people around a circle, ways, because rotating or reflecting the circle gives the same friendships.
- Two loops of three: choose Adam's two loop-mates in ways; the other three form the second loop.
So gives , hence gives and gives . Total: .
The answer is .
Review in the AoPS books
- Introduction to Counting & Probability, Chapter 1: Counting Is Arithmetic
- Introduction to Counting & Probability, Chapter 2: Basic Counting Techniques (§2.5)
- Introduction to Algebra, Chapter 22: Special Manipulations (§22.3)
- Prealgebra, Chapter 15: Problem-Solving Strategies (§15.2)
Techniques
Organized listing / direct enumeration · Split into exhaustive cases and handle each · Exploit symmetry to reduce work or pair up objects