Handshakes in the Room
In a room, a group of people have each shaken hands with every other person exactly once, and no handshake has been repeated.
Then three more people walk in. Each of the three newcomers shakes hands with everyone else in the room, both those who were already there and the other two newcomers, once per pair. Those who were already in the room do not shake hands with one another again.
With these new greetings, the total number of handshakes exchanged in the room is exactly 27 more than it was before the three arrived.
How many people were in the room before the three arrived?
See solution
There were 8 people.
Let n be the number of people in the room at the start. The new handshakes come in two kinds: each of the 3 newcomers greets the n people already there, giving 3n handshakes, and the 3 newcomers also greet one another, which makes 3 pairs (A-B, A-C, B-C), or 3 more handshakes. The total of new handshakes is 3n + 3.
Since that number is 27, we get 3n + 3 = 27, so 3n = 24 and n = 8.
Check: with 8 people there were 28 handshakes (8·7/2). With 11 people there are 55 (11·10/2), and 55 − 28 = 27, just as the problem states.