Question
Question: Everybody in a room shakes hands with everybody else. The total number of handshakes is 66. The tota...
Everybody in a room shakes hands with everybody else. The total number of handshakes is 66. The total number of persons in the room is
Solution
Here we will use the concept that 2 people are required to complete 1 handshake. If there are n people in the room, the total number of handshakes in the room will be the number of 2-combinations from a set of n people. We will find the total number of people by using the formula of combinations.
Formula used: We will use the following formulas to solve the question:
1. The number of r- combinations from a set of n elements is given by nCr and nCr=(n−r)!r!n!.
2. The roots of a quadratic equation ax2+bx+c=0 are given by x=2−b+b2−4ac,2−b−b2−4ac .
Complete step-by-step answer:
The total number of handshakes is 66, so we will substitute 66 for nCr in the formula nCr=(n−r)!r!n!. A handshake requires 2 people, so we will substitute 2 for r in the formula.
(n−2)!2!n!=66 ⇒(n−2)!2n(n−1)(n−2)!=66
We will now cancel the like terms.
⇒2n(n−1)=66
On cross multiplication, we get
⇒n(n−1)=66×2
Now simplifying the above equation, we get
⇒n2−n=132 ⇒n2−n−132=0
Substituting 1 for a, −1 for b and −132 for c in the formula x=2−b±b2−4ac, we get
n=2⋅1−(−1)±(−1)2−4(1)(132)
Simplifying the equation, we get
n=21±1+528\n=21±529\n=21±23
On simplifying the above equation, we get
n=12,−11
The number of people cannot be negative, so n=12.
∴ Total number of people in the room is 12.
Note: Let us assume that there are n people in the room. The nth person will shake hands with n−1 people (all people excluding himself). The (n−1)th person will shake hands with (n−2) people and so on. The second last person will shake hands with only 1 person who is the last person and the last person will not have to shake hands with anyone as he would have already shaken hands with everyone. So the total number of handshakes will be (n−1)+(n−2)+(n−3)+...+1+0 . Substitute 66 here.
(n−1)+(n−2)+(n−3)+...+1+0=66
The sum of first k natural numbers is 2k(k+1) . Substituting n−1 in place of k , we get
⇒2(n−1)(n−1+1)=66 ⇒2(n−1)(n)=66
Simplifying the equation, we get
⇒n2−n=66×2 ⇒n2−n−132=0
Substituting 1 for a, −1 for b and −132 for c in the formula x=2−b+b2−4ac,2−b−b2−4ac.
n=2⋅1−(−1)+(−1)2−4(1)(132),2⋅1−(−1)−(−1)2−4(1)(132)
Simplify the equation.
n=21+1+528,21−1+528\n=21+529,21−529
Simplifying the expression, we get
n=21+23,21−23\n=12,−11
The number of people cannot be negative, so n=12.
∴ Total number of people in the room is 12.