Question Details

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?

Options

A

39

B

30

C

21

D

20

Show Answer
Correct Answer
C 21

Solution :

The correct option is 21.

Let us analyze the problem step-by-step to understand why 21 is a possible number of hugs.

Let the group of friends consist of m males and f females. According to the custom described in the problem:
1. Friends of the opposite sex shake hands when they meet. Therefore, each meeting between a male and a female results in a handshake. The total number of handshakes is the product of the number of males and females:

m×f=24

2. Friends of the same sex hug when they meet. Thus, hugs occur when males meet males, and when females meet females. The number of hugs among males is m(m-1)2, and the number of hugs among females is f(f-1)2. The total number of hugs, H, is given by:

H=m(m-1)2+f(f-1)2

Since m and f must be positive integers, we find the possible pairs of (m,f) such that their product is 24, and calculate the corresponding total hugs H for each case:

Case 1: m=1 and f=24 (or vice versa)

H=1(0)2+24(23)2=0+276=276

Case 2: m=2 and f=12 (or vice versa)

H=2(1)2+12(11)2=1+66=67

Case 3: m=3 and f=8 (or vice versa)

H=3(2)2+8(7)2=3+28=31

Case 4: m=4 and f=6 (or vice versa)

H=4(3)2+6(5)2=6+15=21

Looking at the options provided, 21 corresponds to Case 4 where there are 4 members of one sex and 6 members of the other sex. Hence, 21 is a possible number of hugs.

Transparent Access on Mindyard

Built for Learners & Educators Alike

Completely free for students. Educators & coaching institutes get 2 months free Pro trial to create tests.

FREE FOR STUDENTS

Practice & Learn Free for Students

Access unlimited practice questions, detailed step-by-step solutions, and exam study materials — completely free for students.

  • Unlimited mock tests & question bank practice
  • Full access to curated study library & formula notes
  • 100% free for students • No credit card required
2 MONTHS FREE TRIAL

Educators & Coaching Institutes

Create and conduct professional online assessments with AI question generation, tab proctoring, and comprehensive batch management.

  • AI question uploader & rapid test generator
  • Anti-cheating tab proctoring & performance reports
  • Full Pro access free for 60 days • No upfront commitment
Discover more resources

You may also like

Mock Tests

View All
  • SSC
  • intermediate
  • 1 hour and 30 mins
  • english, general awareness, logical reasoning, mathematics

A comprehensive SSC MTS 2026 Mock Test 4 designed to help aspirants strengthen their preparation and improve their performance for the Staff Selection Commission Multi-Tasking Staff examination. This mock test covers all major sections including Numerical and Mathematical Ability, Reasoning Ability and Problem Solving, General Awareness, and English Language and Comprehension. It includes a balanced combination of conceptual, analytical, and exam-oriented multiple-choice questions aligned with the latest SSC MTS syllabus and exam pattern. Ideal for practice, revision, self-evaluation, accuracy improvement, speed enhancement, and effective time management, this mock test helps candidates assess their exam readiness, identify improvement areas, and build confidence for the SSC MTS 2026 examination

  • SSC
  • intermediate
  • 1 hour and 30 mins
  • english, general awareness, logical reasoning, mathematics

A comprehensive SSC MTS 2026 Mock Test 3 designed to help aspirants prepare thoroughly for the Staff Selection Commission Multi-Tasking Staff examination. This mock test covers all important sections including Numerical and Mathematical Ability, Reasoning Ability and Problem Solving, General Awareness, and English Language and Comprehension. It features a carefully curated set of multiple-choice questions that test conceptual understanding, logical reasoning, problem-solving skills, speed, and accuracy in accordance with the latest SSC MTS exam pattern. Ideal for practice, revision, self-assessment, performance evaluation, and time management improvement, this mock test enables candidates to identify strengths and weaknesses while building confidence for the SSC MTS 2026 examination.

Ask AI Tutor
5 left
Q1 View Question & Options
AI Tutor is solving this question...
Reading question context & options...
Ask your own doubt or choose a quick prompt: