Solveeit Logo

Question

Question: Everybody in a room shakes hands with everybody else. The total number of handshakes is \(28\). Then...

Everybody in a room shakes hands with everybody else. The total number of handshakes is 2828. Then, the total number of people in the room is
(A) 66
(B) 88
(C) 1111
(D) 99

Explanation

Solution

In the given question, we have to find the number of people in the room given the total number of handshakes. We will first discuss the logic and the concept of permutations and combinations that we will be using to find the answer to the given question.

Formula used:
We must remember the mathematical formula of combination to solve the problem as: nCr=n!r!(nr)!^n{C_r} = \dfrac{{n!}}{{r!\left( {n - r} \right)!}}.

Complete step by step solution:
We are given that everybody in the room shakes hands with everybody else.
In order to count the total number of handshakes, we need to select and count pairs of people in the room so that a handshake is executed.
Let us assume the number of people in the room is nn.
Then, we can select a pair of people in nC2^n{C_2} ways.
So, we get, nC2=28^n{C_2} = 28
Expanding the combination formula, we get,
n!2!×(n2)!=28\Rightarrow \dfrac{{n!}}{{2! \times \left( {n - 2} \right)!}} = 28
Expanding the factorial of n, we get,
n×(n1)×(n2)!2!×(n2)!=28\Rightarrow \dfrac{{n \times \left( {n - 1} \right) \times \left( {n - 2} \right)!}}{{2! \times \left( {n - 2} \right)!}} = 28
Cancelling the common factors, we get,
n×(n1)2×1=28\Rightarrow \dfrac{{n \times \left( {n - 1} \right)}}{{2 \times 1}} = 28
n(n1)=56\Rightarrow n\left( {n - 1} \right) = 56
Simplifying the quadratic equation, we get,
n2n56=0\Rightarrow {n^2} - n - 56 = 0
Now, we solve the quadratic equation using splitting the middle term method.
We split the middle term n - n into two terms 8n - 8n and 7n7n since the product of these terms, 56n2 - 56{n^2} is equal to the product of the constant term and coefficient of x2{x^2} and sum of these terms gives us the original middle term, n - n.
So, we get,
n28n+7n56=0\Rightarrow {n^2} - 8n + 7n - 56 = 0
Taking the common terms outside the bracket, we get,
n(n8)+7(n8)=0\Rightarrow n\left( {n - 8} \right) + 7\left( {n - 8} \right) = 0
(n+7)(n8)=0\Rightarrow \left( {n + 7} \right)\left( {n - 8} \right) = 0
Since the product of two terms is equal to zero, either of the two terms must be zero.
So, we get,
Either (n+7)=0\left( {n + 7} \right) = 0 or (n8)=0\left( {n - 8} \right) = 0
Either n=7n = - 7 or n=8n = 8
We know that the value of nn cannot be negative. Hence, n=8n = 8.
Therefore, there are 8 people in the room.

Note:
There are some constraints in the form of nCr=n!r!(nr)!^n{C_r} = \dfrac{{n!}}{{r!\left( {n - r} \right)!}} such as the value of rr cannot be negative and should be strictly less than the value of nn. Also, we need to remember the fact that the notion of choosing rr objects out of nn objects is exactly equal to the notion of choosing (nr)(n-r) objects out of n objects. The mathematical expression is nC(nr)=n!r!(nr)!=nCr^n{C_{\left( {n - r} \right)}} = \dfrac{{n!}}{{r!\left( {n - r} \right)!}}{ = ^n}{C_r}.