If you have six people in a room, and each person shakes hands with every other person exactly once, how many total handshakes happen? @phi @amistre64 @AkashdeepDeb @hartnn @ranga
36
There are no choices of 36.
what are the choices?
From 6 people you have TO SELECT 2 poeple for a hand shake. So the solution would be 6C2 = 6 * 5 / 2 * 1 = 15 ways! :D
you wouldn't know because they shake hands with every other person?
@AkashdeepDeb Can you give me a more easier way to solve this problem?
Do you know combinations? :)
No
Can u explain it to me :)
Sure, but first, Do you know factorials?
No
I think then it'll take you some time and wouldn't be possible to teach on OS.
one way is say: one person will shake hands with 5 other people there are 6 people so 5*6 = 30 but, we are double counting (A with B is the same as B with A) so 30/2 = 15 handshakes.
but 6 choose 2 is a nicer way to solve this problem
@phi 's explanation Is TOTALLY CORRECT. That IS in fact, in short, the function of combinations in probability and in the fundamental principal of counting.
Thanks @AkashdeepDeb and @phi. I learned something new today :)
:)
one more way to look at it is, the first person will shake hands with 5 other person, so \(\huge5\) the 2nd person already shaked his hand with the 1st person, remaining shakes = \(\huge4\) continuing this way, we get 5+4+3+2+1 = 15 ways infact there a formula dedicated to this handshake problem, which directly comes from sum of 'n' natural number formula, for n ppl, total handshakes will be \(\large \dfrac{n(n-1)}{2}\)
Join our real-time social learning platform and learn together with your friends!