Combinatorics - can't really identify the problem

In summary: The number of ways of distributing 14 indistinguishable red dots among five students is (5+14-1)C(5-1) = 18C4.So the answer for question a is (18C4)^2 = 9363600.The answer for question b is (18C3)^2 = 1207959552.In summary, the number of ways to distribute 24 cans of Fanta and 24 cans of Cola among five students, with each student receiving at least two cans of each variety, is (18C4)^2 = 9363600. And the number of ways to distribute the cans so that each student receives at least two cans of one variety and three cans of
  • #1
toofle
20
0

Homework Statement


In how many ways can 24 cans of Fanta and 24 cans of Cola be distributed among five thirsty students so that each student may
(a) at least two cans of each variety? (2p)
(b) at least two cans of a variety, at least three cans of the other variety? (3p)

Homework Equations


The Attempt at a Solution


I have a hard time understanding what kind of combinatorics problem it is.

2 types of cans confuses me since I can't figure out how to formulate it as a generating function problem.

If it was 48 cans of the same and everyone should have at least 2 I could do:
c1 + c2 +c3 + c4 + c5 = 48, where c1=c2=c3=c4=c5=(x^2+x^3+...+x^n)

Using normal combinatorics seems impossibly hard if I'm not missing something obvious.

I also thought maybe I could give everyone 2 of each first:
(24 nCr 2) * (24 nCr 2) * (22 nCr 2) * (22 nCr 2) down to 16 = A but then what about the rest?
 
Last edited:
Physics news on Phys.org
  • #2
This problem is kind of combinations with repetition, but more complicated. According to the usual scheme, imagine that 5 boxes lined up represent the students and you need to distribute first one kind of cans and then the other kind.
In case a., each students need to have two cans of each kind, you put those four cans into each box, and then you have 14 cans of both Cola and Fanta to be distributed.

Can you answer question a now? ehild
 
  • #3
I thought that at first but then I wasn't sure if how I distributed them mattered or not.

But the rest still seems very complicated.

I could give the first student 28 cans and the rest 0 then 14 of one, 13 of the other or 13 of one and 14 of the other and one of the others get one and the rest none and so on.

Maybe I can put this as some sort of sums of products?
 
  • #4
If I first hand out two of each kind to everyone then I have 2*14 left.

Then I can distribute the rest like this:

5^14 * 5^14 = 5^28 = approx 3.73*10^19

Correct?
 
  • #5
Imagine you have 5 boxes aligned on a shelf and you put cans of Cola into the boxes. The boxes (or rather the right walls of the boxes) represent the students, A, B, C, D, E. I draw only seven cans and the question is how many arrangement of the cans exist among the boxes, I mean, among the students. I show two such arrangements. In the first case student A gets 1 can of Cola, student B gets 2 cans, C:3, D:0, E: 1. In the second case it is: A: 1, B:0 C:4, D:1, E:1.
Look at the picture: You see two different sequences - permutations - of 5 blue lines and 7 red dots. The last element is always a blue line. So you permute 4 lines and 7 dots. How many permutations are possible? The dots are all equivalent and so are the lines.
When you distributed the cans of Cole, you do the same with Fanta...

ehild

.
 

Attachments

  • combrep.JPG
    combrep.JPG
    6.4 KB · Views: 425
  • #6
toofle said:
If I first hand out two of each kind to everyone then I have 2*14 left.

Then I can distribute the rest like this:

5^14 * 5^14 = 5^28 = approx 3.73*10^19

Correct?

No, you have only 14 cans of one kind. If you gave 3 cans to one student, the next one can not have more then 11, and if he gets 11, the others have zero.

ehild
 
  • #7
so (5+14-1 nCr 5)^2?
 
  • #8
If I read the problem correctly, you end up giving all 24 cans to the students.

Why not just count the ways this can be done?

first you must hand two cans to each, as they must receive at least two cans.

Then figure out how to distribute the remaining 18 among three students.

label them 1, 2 and 3.

1 gets zero, figure how many ways 2 and 3 can be given the eighteen.
1 gets one, figure how many ways 2 and 3 can get the seventeen.

keep going..

and going..

until ..

1 gets eighteen cans, figure out how many ways 2 and three can get zero cans.

it's not really that hard to find the total number. After a few terms you may see a pattern.

Add all the ways up. That takes care of the distribution of the fanta. Then do the same thing for the distribution of coke.

The events between distribution of coke and distribution of fanta are disjoint. What rule would you then use?
 
  • #9
toofle said:
so (5+14-1 nCr 5)^2?

Almost correct. Check it with 5 students and 1 can.

ehild
 
Last edited:
  • #10
Hammie said:
If I read the problem correctly, you end up giving all 24 cans to the students.

Why not just count the ways this can be done?

first you must hand two cans to each, as they must receive at least two cans.

Then figure out how to distribute the remaining 18 among three students.

Read the problem carefully... there are five students, and all of them get at least two cans of each variety.

ehild
 
  • #11
ehild said:
Almost correct. Check it with 5 students and 1 can.

ehild

I don't get it. (5+1-1 nCr 5) = 1, I assume that's not how you mean? But I don't get what you mean since (I assume) all cans must always be distributed.
 
  • #12
I mean an other problem with one can of Cola, just to check your formula. You can distribute the single can five ways among the students. You need to use the formula (5+1-1 nCr4 )= 5!/(4! 1!) =5

In the original problem, you have the permutations of 14+5-1 elements, 14 red dots and 5-1 =4 blue lines. All the red dots are indistinguishable and so are the blue lines. ehild
 
Last edited:
  • #13
Binomial[5 + 14 - 1 , 5-1]^2 = 9363600 ?
 
  • #14
Correct. And I hope it is the answer for question a.

ehild
 

FAQ: Combinatorics - can't really identify the problem

What is combinatorics?

Combinatorics is a branch of mathematics that deals with the study of counting, arrangement, and selection of objects or elements. It explores the different ways in which a set of objects can be organized or combined.

What are the applications of combinatorics?

Combinatorics has various applications in different fields such as computer science, statistics, economics, and engineering. It is commonly used in designing algorithms, analyzing data, and solving optimization problems.

Can you give an example of a combinatorics problem?

One example of a combinatorics problem is the "birthday problem", which asks how many people are needed in a group to have a 50% chance of two people sharing the same birthday. This problem requires counting the number of possible combinations of birthdays for the given number of people.

How is combinatorics different from probability?

Combinatorics and probability are closely related but have distinct differences. Combinatorics deals with the counting and arrangement of objects, while probability deals with the likelihood of an event occurring. In combinatorics, the focus is on the number of possible outcomes, while in probability, the focus is on the chance of a specific outcome happening.

Is combinatorics a difficult branch of mathematics?

Combinatorics can be challenging, especially for those who are new to the subject. It requires logical thinking, problem-solving skills, and a good understanding of basic algebra and arithmetic. However, with practice and perseverance, it can be mastered like any other branch of mathematics.

Similar threads

Replies
17
Views
3K
Replies
4
Views
1K
Replies
1
Views
2K
Replies
2
Views
1K
Replies
4
Views
11K
Replies
9
Views
3K
Replies
1
Views
1K
Back
Top