In a society it is customary for friends of the same sex to hug and for friends of opposite sex to shake hands when they meet. A group of friends met in a party and there were 24 handshakes. Which one among the following numbers indicates the possible number of hugs?
- A39
- B30
- C21Correct
- D20
Explanation
Let M be the number of males and F be the number of females in the group.
-
Handshakes: Handshakes occur between friends of opposite sex. The total number of handshakes is M * F. Given, M * F = 24.
-
Hugs: Hugs occur between friends of the same sex. Number of hugs among males = M * (M - 1) / 2 Number of hugs among females = F * (F - 1) / 2 Total number of hugs = [M * (M - 1) / 2] + [F * (F - 1) / 2]
-
Find possible integer pairs for (M, F) such that M * F = 24: The possible pairs are (1, 24), (2, 12), (3, 8), (4, 6), and their reverses (24, 1), (12, 2), (8, 3), (6, 4). Since the formula for hugs is symmetric with respect to M and F, we only need to calculate for one order of each pair.
a) If (M, F) = (1, 24): Hugs = [1 * (1 - 1) / 2] + [24 * (24 - 1) / 2] = 0 + (24 * 23 / 2) = 0 + 12 * 23 = 276
b) If (M, F) = (2, 12): Hugs = [2 * (2 - 1) / 2] + [12 * (12 - 1) / 2] = (2 * 1 / 2) + (12 * 11 / 2) = 1 + 6 * 11 = 1 + 66 = 67
c) If (M, F) = (3, 8): Hugs = [3 * (3 - 1) / 2] + [8 * (8 - 1) / 2] = (3 * 2 / 2) + (8 * 7 / 2) = 3 + 4 * 7 = 3 + 28 = 31
d) If (M, F) = (4, 6): Hugs = [4 * (4 - 1) / 2] + [6 * (6 - 1) / 2] = (4 * 3 / 2) + (6 * 5 / 2) = 2 * 3 + 3 * 5 = 6 + 15 = 21
-
Compare with options: The possible numbers of hugs are 276, 67, 31, 21. Option C is 21, which is one of the possible numbers of hugs.
The final answer is C) 21.

Related questions
More UPSC Prelims practice from the same subject and topic.
- Prelims 2015CSATQuantitative Aptitude
Twelve people form a club. By picking lots, one of them will host a dinner for all once in a month. The number of dinners a particular member has to host in one year is
- Prelims 2015CSATQuantitative Aptitude
In a town, 45% population read magazine A, 55% read magazine B, 40% read magazine C, 30% read magazines A and B, 15% read magazines Band C, 25% read magazines A and C; and 10% read all the three magaz…
- Prelims 2015CSATQuantitative Aptitude
Out of 130 students appearing in an examination, 62 failed in English, 52 failed in Mathematics, whereas 24 failed in both English and Mathematics. The number of students who passed finally is
- Prelims 2015CSATQuantitative Aptitude
In a group of persons travelling in a bus, 6 persons can speak Tamil, 15 can speak Hindi and 6 can speak Gujarati. In that group none can speak any other language. If 2 persons in the group can speak …
- Prelims 2015CSATQuantitative Aptitude
A selection is to be made for one post of Principal and two posts of Vice-Principal. Amongst the six candidates called for the interview, only two are eligible for the post of Principal while they all…
- Prelims 2015CSATQuantitative Aptitude
A student has to opt for 2 subjects out of 5 subjects for a course, namely, Commerce, Economics, Statistics, Mathematics I and Mathematics II. Mathematics II can be offered only if Mathematics I is al…