How many ways are there to choose 12 cookies if there are 5 varieties? It was wrong in my homework after I tried 5^{12}.

Darian Hubbard

Darian Hubbard

Answered question

2022-07-15

Simple math question:
How many ways are there to choose 12 cookies if there are 5 varieties?
It was wrong in my homework after I tried 5 12 .

Answer & Explanation

Kali Galloway

Kali Galloway

Beginner2022-07-16Added 16 answers

Step 1
With a generating function, we use a geometric series to index. So for each type of cookie, we could have none of that cookie, one cookie, two cookies, etc. This could be modeled as 1 + x + x 2 + x 3 + . . . = 1 x , where given x i , the i term represents the quantity of that type of cookie. Notice we have a formal geometric series.
Step 2
Since there are no other constraints on the cookie types and we have five types of cookies, we get f ( x ) = 1 ( 1 x ) 5 . Using our binomial identity, we search for the coefficient of x 12 which is ( 12 + 5 1 12 ) .

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?