AMC 10 Step by Step

2012 AMC 10A Problem 23

P21-25~10 minPrint

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?

Log in to save your progress.
Show solution without answering

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 kk.

1. Possible values of kk. "Some" are friends, so k≥1k \ge 1. Each person has only 55 others to be friends with, and "not all" rules out k=5k = 5. So kk is 11, 22, 33 or 44.
2. A shortcut. Swap every line for a non-line and every non-line for a line. Someone with kk friends now has 5−k5 - k friends. Swapping twice gets back to the start, so the k=1k = 1 setups match up one-for-one with the k=4k = 4 setups, and k=2k = 2 matches k=3k = 3. So we only need to count k=1k = 1 and k=2k = 2.
3. k=1k = 1: everyone has exactly one friend. The six people split into three pairs. Adam's friend can be any of the other 55. Among the 44 people left, take the first one alphabetically; their friend can be any of the other 33. The last two people must be friends. That gives 5×3=155 \times 3 = 15 ways.
4. k=2k = 2: 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 33 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 6!=7206! = 720 seatings, but turning the table (66 ways) or flipping it over (22 ways) gives the same friendships. That leaves 72012=60\frac{720}{12} = 60 ways.
- Two loops of three. Choose Adam's two loop-mates: (52)=10\binom52 = 10 ways. The other three form the second loop. That gives 1010 ways.
- Total for k=2k = 2: 60+10=7060 + 10 = 70.
5. By the shortcut, k=3k = 3 also gives 7070 and k=4k = 4 also gives 1515.
6. Total: 15+70+70+15=17015 + 70 + 70 + 15 = 170.

The answer is (B) 170\boxed{\textbf{(B)}\ 170}.

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 k=3k = 3 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 (63)÷2=10\binom63 \div 2 = 10 ways. Second, two triangles with each corner of one joined to one corner of the other, like the edges of a triangular prism: 6!÷12=606! \div 12 = 60 ways. That is 7070, the same as k=2k = 2.

Concise solution

A shorter write-up, the way contest solutions are usually written. It may take a different route from the solution above.

Picture the six people as points and each friendship as a segment between two points. Every person has the same number kk of friends. "Some" friendships means k≥1k \ge 1; "not all" rules out everyone being friends with everyone, so k≤4k \le 4.

Complement symmetry: if we swap every friendship for a non-friendship and vice versa, a configuration in which everyone has kk friends becomes one in which everyone has 5−k5 - k friends, and swapping back undoes it. So there are as many k=3k = 3 configurations as k=2k = 2, and as many k=4k = 4 as k=1k = 1. Only k=1k = 1 and k=2k = 2 need to be counted.

k=1k = 1: the six people split into three friend pairs. Adam's friend can be any of 55 people; the first person not yet paired has 33 choices; the last pair is forced. That is 5⋅3=155 \cdot 3 = 15.

k=2k = 2: 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, 5!2=60\frac{5!}{2} = 60 ways, because rotating or reflecting the circle gives the same friendships.
  • Two loops of three: choose Adam's two loop-mates in (52)=10\binom{5}{2} = 10 ways; the other three form the second loop.

So k=2k = 2 gives 7070, hence k=3k = 3 gives 7070 and k=4k = 4 gives 1515. Total: 15+70+70+15=17015 + 70 + 70 + 15 = 170.

The answer is (B) 170\boxed{\textbf{(B)}\ 170}.

Review in the AoPS books

Similar problems

Problem © Mathematical Association of America (MAA), American Mathematics Competitions. Reproduced for non-commercial educational use. Solution and commentary are original to this site.