The number of ways to distribute 30 identical candies among four children and so that receives atleast 4 and atmost 7 candies, receives atleast 2 and atmost 6 candies, is equal to
- (A)205
- (B)615
- (C)510
- (D)430✓ Correct
Answer: (D)
Solution
Let receive candies where and receive candies where .
After allocating the minimum to and , we need to distribute candies among four children with constraints.
Using generating functions or inclusion-exclusion principle:
The coefficient of in .
This equals:
.
After allocating the minimum to and , we need to distribute candies among four children with constraints.
Using generating functions or inclusion-exclusion principle:
The coefficient of in .
This equals:
.
JEE Main · 2022 · 28 Jun 2022 · Shift 2 · Single correct option