Probability Question: 4 layers, 4 flavours

  • Thread starter Thread starter dacruick
  • Start date Start date
  • Tags Tags
    Probability
Click For Summary

Homework Help Overview

The problem involves determining the number of ways to create a cake with 4 layers using 4 different flavours, where the order of the flavours does not matter and flavours can be repeated. The original poster seeks clarification on the formula for calculating the combinations of flavours given the layers.

Discussion Character

  • Conceptual clarification, Assumption checking

Approaches and Questions Raised

  • The original poster attempts to understand the reasoning behind the formula (n + k - 1)! / (n! * (k-1)!) and how it relates to their initial approach of calculating permutations and adjusting for repetitions. Some participants discuss the nature of the problem as a combination rather than a permutation, questioning the underlying logic of the formula.

Discussion Status

Participants are exploring different interpretations of the problem, with some providing insights into the formula's derivation and its application to the problem. There is an ongoing dialogue about the classification of the question as homework and the appropriateness of the forum for such discussions.

Contextual Notes

There is a mention of homework forum rules and the distinction between homework questions and general inquiries about mathematical concepts. The original poster expresses uncertainty about the classification of their question and the implications of having an answer without understanding it.

dacruick
Messages
1,038
Reaction score
1
Okay so here is the problem. I have 4 layers of a cake, and 4 flavours to use. I can make any layer of the cake any flavour, and can use any flavour any amount of times. Also, it does not matter the order of the flavours in the cake. As in 1 1 2 3 is the same as 1 2 1 3 and 3 2 1 1 and so on.

I also believe I have the answer, but do not know why it is the correct answer. I was told that if n represents the flavours, and k represents the layers, the formula goes as follows:

(n + k - 1)! / (n! * (k-1)!). why is that so?

When I originally tried to tackle this problem the method that I took was take 4 x 4 x 4 x 4 to get the total permutations, and then try and subtract or divide out the amount of cakes that can have repeated permutations. Furthermore, I assume that the equation above is doing the same thing, just in a more refined and probabilistically sound manner.

So to sum this up, I would just like someone to explain to me the logic behind the formula. why 7! and so on. Thank you
 
Physics news on Phys.org
dacruick said:
Okay so here is the problem. I have 4 layers of a cake, and 4 flavours to use. I can make any layer of the cake any flavour, and can use any flavour any amount of times. Also, it does not matter the order of the flavours in the cake. As in 1 1 2 3 is the same as 1 2 1 3 and 3 2 1 1 and so on.

I also believe I have the answer, but do not know why it is the correct answer. I was told that if n represents the flavours, and k represents the layers, the formula goes as follows:

(n + k - 1)! / (n! * (k-1)!). why is that so?

When I originally tried to tackle this problem the method that I took was take 4 x 4 x 4 x 4 to get the total permutations, and then try and subtract or divide out the amount of cakes that can have repeated permutations. Furthermore, I assume that the equation above is doing the same thing, just in a more refined and probabilistically sound manner.

So to sum this up, I would just like someone to explain to me the logic behind the formula. why 7! and so on. Thank you
See the section titled "multiset coefficients" here:

http://en.wikipedia.org/wiki/Multiset
 
Moderator's note

Thread moved to:
Homework & Coursework Questions > Precalculus Mathematics​
Homework assignments or any textbook style exercises for which you are seeking assistance are to be posted in the appropriate forum in our https://www.physicsforums.com/forumdisplay.php?f=152" area. This should be done whether the problem is part of one's assigned coursework or just independent study.

dacruick said:
I also believe I have the answer, but do not know why it is the correct answer. I was told that if n represents the flavours, and k represents the layers, the formula goes as follows:

(n + k - 1)! / (n! * (k-1)!). why is that so?

When I originally tried to tackle this problem the method that I took was take 4 x 4 x 4 x 4 to get the total permutations, and then try and subtract or divide out the amount of cakes that can have repeated permutations. Furthermore, I assume that the equation above is doing the same thing, just in a more refined and probabilistically sound manner.

So to sum this up, I would just like someone to explain to me the logic behind the formula. why 7! and so on. Thank you
Have you verified that the formula result agrees with your correct, common-sense answer of 44 ?
 
Last edited by a moderator:
[tex]4^4[/tex] is the correct answer if the order of the layers matters, but the problem statement says it does not.
 
Last edited:
Ah, my mistake. awkward is correct.
 
The thing is, its not a computation, and its not a permutation either. to keep consistent with 'utations', its some sort of mutation between the two. I'm not sure if the derivation of this formula is too advanced for me to really grasp it using logic.

And RedBelly, I am unclear about the rules about which questions go where. I intended this question to be a discussion of the formula, and type of problem that this '4 layers' question represents. As you see I already have the answer, I really just want to know why that is the answer. So if this is the case, do I still have to post it in the homework forum?
 
dacruick said:
The thing is, its not a computation, and its not a permutation either. to keep consistent with 'utations', its some sort of mutation between the two. I'm not sure if the derivation of this formula is too advanced for me to really grasp it using logic.

dacruick, this is a combination, as shown quite clearly in the wikipedia article awkward :smile: referred you to …
One simple way to prove this involves representing multisets in the following way …

… what do you not understand about that?

(and the fact that you have been given the answer does not make it any the less a homework problem … about half the homework threads ar PF are like that)
 
If i name the question, what is the different between a combination and a permutation and use that same question to portray my misunderstanding, is it still a homework question. Its not that I have the answer, is the answer that I'm searching for is not a homework question. So is how i name the question the primary factor in where I place it on the forum?
 

Similar threads

Replies
17
Views
10K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 12 ·
Replies
12
Views
3K
Replies
2
Views
2K
Replies
15
Views
4K
Replies
19
Views
3K
Replies
12
Views
5K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 18 ·
Replies
18
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K