Handshake Puzzle

Handshake Puzzle

Solve the Handshake Puzzle here on this page.
At a party, everyone shook hands with everybody else. There were 66 handshakes.

How many people were at the party?

Handshake Puzzle

Solution:

If there are n people,

  1. The first person will shake hands with an n-1 person,
  2. The second with n-2,
  3. The third with n-3, and
  4. The (n-1)th person with n-(n-1)=1 person means the last person.

Hence, total handshakes are (n-1)+(n-2)+(n-3)+….+3+2+1

Which can be equated using n(n-1)/2=66

Hence, n=12

At a party, everyone shook hands with everybody else.

Prime Course Trailer

Related Banners

Get PrepInsta Prime & get Access to all 200+ courses offered by PrepInsta in One Subscription

Get over 200+ course One Subscription

Courses like AI/ML, Cloud Computing, Ethical Hacking, C, C++, Java, Python, DSA (All Languages), Competitive Coding (All Languages), TCS, Infosys, Wipro, Amazon, DBMS, SQL and others

Checkout list of all the video courses in PrepInsta Prime Subscription

Checkout list of all the video courses in PrepInsta Prime Subscription