AMC 10 Step by Step

2017 AMC 10A Problem 8

P1-10~2 minPrint

At a gathering of 3030 people, there are 2020 people who all know each other and 1010 people who know no one. People who know each other hug, and people who do not know each other shake hands. How many handshakes occur?

Log in to save your progress.
Show solution without answering

Key insight

A pair shakes hands exactly when at least one of the two is one of the 10 strangers. Count stranger-with-group pairs, then stranger-with-stranger pairs.

Solution

Every pair of people either hugs or shakes hands. The only pairs who hug are two people from the group of 2020 friends. So a pair shakes hands exactly when at least one of them is a stranger. Count those pairs in two groups.

1. One stranger and one friend. Each of the 1010 strangers shakes hands with each of the 2020 friends:
10×20=200 handshakes.10 \times 20 = 200 \text{ handshakes}.
2. Two strangers. The strangers do not know each other either, so they shake hands too. Each of the 1010 strangers shakes 99 other strangers' hands, giving 10×9=9010 \times 9 = 90. But that counts every handshake twice (once from each person), so divide by 22:
10×92=45 handshakes.\frac{10 \times 9}{2} = 45 \text{ handshakes}.
3. Total: 200+45=245200 + 45 = 245.

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

Why this works

Sort the pairs by how many strangers they contain: zero (a hug), one, or two. Every pair falls into exactly one of these, so nothing is missed or double counted. "One from each group" is a simple multiplication, while "two from the same group" needs the divide-by-2 step because each pair gets counted from both ends.

Alternative approach

Count all pairs and take away the hugs. With 3030 people there are 30×292=435\frac{30 \times 29}{2} = 435 pairs. The hugging pairs are pairs of friends: 20×192=190\frac{20 \times 19}{2} = 190. Everyone else shakes hands: 435−190=245435 - 190 = 245.

Concise solution

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

The only pairs who know each other are pairs drawn from the group of 2020. Every other pair shakes hands, so a handshake occurs exactly when the pair contains at least one of the 1010 strangers.

Pairs with one stranger and one member of the 2020: 10⋅20=20010 \cdot 20 = 200.

Pairs of two strangers: (102)=45\binom{10}{2} = 45.

Total handshakes: 200+45=245200 + 45 = 245.

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

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.