ak party me 50 man h partek man har ak man ke saath hand milate h to kitne hand milaye gye
Answers
250000...................
Answer:
If there are 2 people in a room and each shakes the other person’s hand once, then there is only one hand shake.
If there are 3 people and same requirements..... say there are A, B, C in the room. A shakes B’s hand, A shakes C’s hand. That is 2 handshakes. B has already shook A’s hand so he just needs to shake C’s hand. 1 more handshake. C has already shook A’s hand and B’s hand. So that is a total of 3 handshakes.
Say there are four people A,B,C,and D in a room. Same requirements as before.
A shakes B’s hand, C’s hand, and D’s hand for total of 3 handshakes.
B shakes C’s hand and D’s hand for 2 more handshakes (doesn’t shake his own and already shook A’s hand.
C shakes D’s next as he doesn’t shake his own and earlier he shook A’s hand and B’s hand.
Earlier D shook A’s hand, B’s hand, and C’s hand. He doesn’t shake his own hand.Final count is 6 hand shakes.
How many if A,B,C,D,E are in the room?
A will shake 4 people’s hands.
B will shake 3 people’s hands now as he already shook A’s hand .
By similar reasoning, C shakes 2 hands now.
By similar reasoning, D shakes 1 other hand. E will now shake no hands. Total handshakes is 10 handshakes.
Guessing that for m people in a room with m=>4, for i=1 to m-1 sum of [i]= number of handshakes.
That says for m=5 the number of handshakes is 10. Which is correct.
For m=6 the number of handshakes is 15. Let’s check this.
A shakes 5 hands.
B shakes 4 hands.
C shakes 3 hands.
D shakes 2 hands.
E shakes 1 hand.
F shakes now no hands since he’s already shook the others’ hands. So 15 handshakes.
By similar logic for 50 people, for i =1 to 49 sum[i] is the number of handshakes
Explanation: