Cheating Husband puzzle
September 3, 2012
Longest substring of unique characters
September 7, 2012

Handshakes question

At a party, everyone shook hands with everybody else. There were 66 handshakes. How many people were there at the party?

Solution:

This is a simple permutation/combination question.

If there are n people in the party. Then, number of ways in which you can select two out of n people is

 = n(n-1) /2

Note: If order is important (i.e AB is different from BA), then the number of ways will be n(n-1). But, in our question, order is not important – For two people there will only be 1 handshake irrespective of whether A shook hand with B or the other way round.

From the question:  n(n-1)/2 = 66

=> n = 12.

Hence, there were 12 people in the party.

Enjoy the party 🙂

2 Comments

  1. Boredom says:

    The formula is n(n+1)/2. Therefore, the correct answer is 11 people.

  2. Boredom says:

    Sorry, The answer is 12 people. I used the wrong formula earlier.

Leave a Reply

Your email address will not be published. Required fields are marked *