In how many ways can we distribute 2 types of gifts? The problem: In how many ways can we distribut

il2k3s2u7

il2k3s2u7

Answered question

2022-05-23

In how many ways can we distribute 2 types of gifts?
The problem: In how many ways can we distribute 2 types of gifts, m of the first kind and n of the second to k kids, if there can be kids with no gifts?
From the stars and bars method i know that you can distribute m objects to k boxes in ( m + k 1 k 1 ) ways. So in my case i can distribute m gifts to k kids in ( m + k 1 k 1 ) ways, same for n gifts i can distribute them in ( n + k 1 k 1 ) ways. So now if we have to distribute m and n gifts we can first distribute m gifts in ( m + k 1 k 1 ) ways, then n gifts in ( n + k 1 k 1 ) ways, so in total we have:
( m + k 1 k 1 ) ( n + k 1 k 1 ) ways. .
Is my reasoning correct?
What about when we have to give at least 1 gift to each kid, can we do that in
( m 1 k 1 ) ( n + k 1 k 1 ) + ( n 1 k 1 ) ( m + k 1 k 1 ) ways?

Answer & Explanation

Makai Blackwell

Makai Blackwell

Beginner2022-05-24Added 11 answers

Explanation:
Your reasoning for the problem where kids with no gifts are allowed is correct. To solve the main problem you need to apply the PIE to exclude cases where one or more kids get no gift. You will obtain:
i = 0 k ( 1 ) i ( k i ) ( n + k 1 i n ) ( m + k 1 i m ) .

Do you have a similar question?

Recalculate according to your conditions!

New Questions in Discrete math

Ask your question.
Get an expert answer.

Let our experts help you. Answer in as fast as 15 minutes.

Didn't find what you were looking for?