Concept of Handshake
๐งฎ Formula
Where:
- n = number of people
- H = total handshake
๐ Concept
When every person shakes hands with every other person exactly once, the total number of handshakes can be calculated using the formula:
Where:
- = total number of people
- = number of other people each person can shake hands with
- We divide by 2 because the same handshake is counted once for each person. Mane Handshake duijone ekbar hoy.
๐ก Why Do We Divide by 2?
Suppose there are people: , , , and .
- can shake hands with , , and โ
- can shake hands with , , and โ
- can shake hands with , , and โ
- can shake hands with , , and โ
This gives:
But every handshake has been counted twice.
For example:
is counted once when considering and once when considering .
Therefore:
So there are 6 handshakes.
โ๏ธ Examples
Example 1 โ 5 People
If there are people, the number of handshakes is:
Answer: 10 handshakes
Example 2 โ 10 People
If there are people:
Answer: 45 handshakes
Example 3 โ 20 People
If there are people:
Answer: 190 handshakes
This is not same as โThe sum of natural numberโ.
That formula is different. Which is: