Question Details

In how many ways can 7 identical erasers be distributed among 4 kids in such a way that each kid gets at least one eraser but nobody gets more than 3 erasers?

Options

A

16

B

20

C

14

D

15

Show Answer

Correct Answer :

Option A

16

Solution :

Correct Option: A

Let the number of erasers received by the four kids be x1,x2,x3, and x4.

We need to find the number of integer solutions to:
x1+x2+x3+x4=7
subject to the constraints: 1xi3 for each i{1,2,3,4}.

Let us first distribute 1 eraser to each of the 4 kids to satisfy the "at least one" condition.
This uses up 4×1=4 erasers, leaving 74=3 erasers to distribute.

Let yi=xi1 be the number of additional erasers kid i gets.
The new equation is:
y1+y2+y3+y4=3
where 0yi2 (since xi3yi+13yi2).

We find the total number of non-negative integer solutions to y1+y2+y3+y4=3 using the stars and bars formula:
(3+4141)=(63)=6×5×43×2×1=20 ways.

Now we subtract the cases that violate the upper bound condition yi2.
A violation occurs if any kid gets yi3. Since the sum of all y values is 3, the only way a kid can get 3 or more is if exactly one kid gets 3 and the rest get 0.
The possible violating distributions are:
(3, 0, 0, 0), (0, 3, 0, 0), (0, 0, 3, 0), and (0, 0, 0, 3).
There are exactly 4 such violating distributions.

Subtracting these violating cases from the total:
Number of valid ways = 204=16.

Unlock Our Free Library

Access expert-curated educational resources and study materials—completely free.

Discover more resources

You may also like

Mock Tests

View All
  • CLAT
  • intermediate
  • 2 hours
  • current affairs, general knowledge, legal reasoning, logical reasoning, quant

  • CLAT
  • intermediate
  • 2 hours
  • current affairs, english, general knowledge, legal reasoning, logical reasoning, quant

Ask AI Tutor
5 left
Q1 View Question & Options
AI Tutor is solving this question...
Reading question context & options...