All Exams Test series for 1 year @ ₹349 only
Question

There are 40 persons in a palace. If every person shakes hands with every other person, what will be the total number of handshakes?

This question was previously asked in
RRB NTPC 2019 CBT 1 Question Paper (8-Mar-2021) (Shift 2)
The correct answer is
780

Problem Analysis: Total Handshakes

This problem involves calculating the total number of unique pairs that can be formed from a group of 40 individuals, where each pair represents a handshake. Since the order of people in a handshake does not matter (Person A shaking Person B's hand is the same handshake as Person B shaking Person A's hand), this is a combination problem.

Applying the Combination Formula

The number of combinations of choosing k items from a set of n items is given by the formula:

$C(n, k) = \frac{n!}{k!(n-k)!}$

For the handshake problem, we are choosing groups of 2 people (k=2) from a total of 40 people (n=40). The formula simplifies to:

$C(n, 2) = \frac{n(n-1)}{2}$

Calculation for 40 Persons

Given n = 40 persons:

  • Substitute the value of n into the simplified formula:

    $C(40, 2) = \frac{40 \times (40 - 1)}{2}$

  • Perform the subtraction:

    $C(40, 2) = \frac{40 \times 39}{2}$

  • Simplify the expression:

    $C(40, 2) = \frac{1560}{2}$

  • Calculate the final result:

    $C(40, 2) = 780$

Therefore, the total number of handshakes will be 780.

Was this answer helpful?

Similar Questions

  1. How many words can be formed with or without meaning by using all letters of the word DELHI?
  2. If $^{10}\text{P}_r = 5040$, find the value of r.
  3. If $^nC_3 = ^nC_8$, then find n.
  4. If ${}^nC_4 = 70$, then find n.

Important Questions from Permutation and Combination

  1. On a chess board, in how many different ways can 6 consecutive squares be chosen on the diagonals along a straight path ?

  2. There are 6 persons arranged in a row. Another person has to shake hands with 3 of them so that he should not shake hands with two consecutive persons. In how many distinct possible combinations can the handshakes take place ?

  3. In a tournament of Chess having 150 entrants, a player is eliminated whenever he loses a match. It is given that no match results in a tie/draw. How many matches are played in the entire tournament?

  4. The letters A, B, C, D and E are arranged in such a way that there are exactly two letters between A and E. How many such arrangements are possible?

  5. There is a numeric lock which has a 3-digit PIN. The PIN contains digits 1 to 7. There is no repetition of digits. The digits in the PIN from left to right are in decreasing order. Any two digits in the PIN differ by at least 2. How many maximum attempts does one need to find out the PIN with certainty?

Need Expert Advice?
Upcoming Exams
RRB Technician
October 06, 2026
RRB JE
October 27, 2026
RRB ALP
November 03, 2026
Test Series
RRB NTPC img
Railways
RRB NTPC Under Graduate 2026 New Mock Test Series
1580 Tests 2 Tests Free
544 Attempts
4.3(498)
English, Hindi, Telugu +7 More

Start Your Preparation with Prepp Mobile App

Download the app from Google Play & App Store
Download the app from Google Play & App Store
Prepp Mobile App