Jasvin ThinksPracticeMock testsCurrent affairs

UPSC Prelims 2007 Q137: Science & Technology – Quantitative Aptitude

UPSC Prelims 2007, General Studies Paper I · Science & Technology

Five balls of different colours are to be placed in three different boxes such that any box contains at least one ball. What is the maximum number of different ways in which this can be done?
  1. (a) 90
  2. (b) 120
  3. (c) 150
  4. (d) 180

Answer: (c) 150

Explanation

5 different balls into 3 different boxes, no box empty

This counts onto (surjective) functions from 5 balls to 3 boxes.

Use inclusion-exclusion:

StepCalculationValue
All ways (any box may be empty)3⁵243
Remove ways with at least one box empty− C(3,1) × 2⁵− 96
Add back ways with two boxes empty+ C(3,2) × 1⁵+ 3
Total243 − 96 + 3150

Check by splits: (3,1,1) → 60 ways; (2,2,1) → 90 ways; 60 + 90 = 150.

Answer: (c) 150.

Why each option is right or wrong

Key point

Distinct balls into distinct boxes, none empty: 3⁵ − 3·2⁵ + 3·1⁵ = 150.

Remember

5 distinct balls, 3 boxes, none empty = 150.

Common mistakes

Exam tip

Inclusion-exclusion pattern: kⁿ − C(k,1)(k−1)ⁿ + C(k,2)(k−2)ⁿ − …

Sources

Practise UPSC Prelims PYQsTake a timed mock