document.write( "Question 41948: If every person in our class shakes hands with every other perison in the class exactly once\r
\n" ); document.write( "\n" ); document.write( "(a) How many handshakes will have taken place if there are 22 studemts in the class
\n" ); document.write( "(b) If there were 35 students in the class, how many handshakes would there be?
\n" ); document.write( "(c) What if there were n people?
\n" ); document.write( "

Algebra.Com's Answer #27107 by psbhowmick(878)\"\" \"About 
You can put this solution on YOUR website!
Suppose there were 'n' people.
\n" ); document.write( "Then each shook hands with (n-1) people.
\n" ); document.write( "So total number of handshakes = \"n%28n-1%29%2F2\"
\n" ); document.write( "[Why divided by 2? The answer is whether person A shakes hand with person B or person B shakes hand with person A is immaterial as these two situations refer to a single handshake.]\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "For 22 and 35 students put n = 22 and 35 respectively and you will get 231 and 595 handshakes accordingly.
\n" ); document.write( "
\n" );