A Math Question:

Yup, that's more like it.

It's too early for me to work this out. I'm thinking the best way to go about it is to find different combinations of 2, 3, 4 and 5 bottles from each brand that would add up to 30. Either I've forgot most of the discrete math that I studied or I really didn't come across a problem like this before.

You're on the right track.

Think of a function for each brand such as:

B(x) = (x^2 + x^3 + x^4 + x^5)
 
It's been too long since I had the right math courses...just last night I was noticing that my "math muscles" have atrophied. Fun problem, though. Question: Must all 10 brands be used, or would 5 bottles from 6 brands be an acceptable possible solution? Changes the numbers quite a bit...
 
It's been too long since I had the right math courses...just last night I was noticing that my "math muscles" have atrophied. Fun problem, though. Question: Must all 10 brands be used, or would 5 bottles from 6 brands be an acceptable possible solution? Changes the numbers quite a bit...

A minimum of two of each brand.
 
Drink the liquor and you won't care.

Okay then, suppose you are holding a political conference and you must choose 30 people to attend from a 10 state area. You must choose at least 2 but no more than 5 from each state. In how many ways can you choose these people?
 
Hhhmmm... I still have a bit of a hard time wrapping this up.

One question... do you count the combination of the bottles, as well? That is, if you pick 3 from a brand, does it matter how you pick the three? I'm guessing not, since it's not mentioned how many bottles of each brand exist.
 
Okay then, suppose you are holding a political conference and you must choose 30 people to attend from a 10 state area. You must choose at least 2 but no more than 5 from each state. In how many ways can you choose these people?

You pick people who pay you graft.

Math is easy.
 
Not sure if this is correct but how about:

(I can't do big parenthesis, so I'll put it in words.)

(1 out of 10)*(2 out of 30) + (1 out of 9)*(2 out of 28) + (1 out of 8)*(2 out of 26) + (1 out of 7)*(2 out of 24) + (1 out of 6)*(2 out of 22) + (1 out of 5)*(3 out of 20) + (1 out of 4)*(3 out of 17) + (1 out of 3)*(4 out of 14) + (1 out of 2)*(5 out of 10) + (1 out of 1)*(5 out of 5)

I really can't be bothered to calculate the final number.
 
My answer

Let's see if I remember my Discrete Math...

The first 20 beers are already allocated so we ignore them basically. That leaves 10 beers to deal with. If we assume that any two beers of the same type are identical then we can calculate the total number ways to pick 10 beers from 10 types (not considering constraints yet) as a simple stars and bars type problem.

n = 10, r = 10

(n+r-1 C r-1) = (19 C 9) = 92378 ways

Then we consider the number of ways within the above number that violate the constraints (i.e. pick more 5 one beer):

The number of ways to pick 6 of one type of beer: 10*(12 C 8) = 4950
The number of ways to pick 7 of one type of beer: 10*(11 C 8) = 1650
The number of ways to pick 8 of one type of beer: 10*(10 C 8) = 450
The number of ways to pick 9 of one type of beer: 10*(9 C 8) = 90
The number of ways to pick 10 of one type of beer: 10*(8 C 8) = 10

So the answer is:

(19 C 9) - 10((12 C 8) + (11 C 8) + (10 C 8) + (9 C 8) + (8 C 8))
=92378 - 10(495 + 165 + 45 + 9 + 1)
=92378 - 7150

=85228 ways

Seems reasonable enough.

For those that don't know: (n C r) represents the number of ways to choose r things out of n possibilities without considering order. It is equal to n!/(r!*(n-r)!).
 
You're on the right track.

Think of a function for each brand such as:

B(x) = (x^2 + x^3 + x^4 + x^5)

B(x) = nx s.t. n = {2,5} /\ x = {0,1}

30 = B1 + B2 + B3 + B4 + B5 + B6 + B7 + B8 + B9 + B10

I think this would be easier with stats.

Also: Fuck you. In the ear.
 
In how many ways can you select 30 bottles of liquor from a supply of 10 different brands if you must select at least 2 but no more than 5 of each brand?

You made this shit up, and weren't even thinking clearly when you did it.
How many ways can you select 30 bottles, from an array of ten, and you MUST SELECT at least two..............??????

I need to take 30, must take two....

Fail.

Imbecile.
 
Let's see if I remember my Discrete Math...

The first 20 beers are already allocated so we ignore them basically. That leaves 10 beers to deal with. If we assume that any two beers of the same type are identical then we can calculate the total number ways to pick 10 beers from 10 types (not considering constraints yet) as a simple stars and bars type problem.

n = 10, r = 10

(n+r-1 C r-1) = (19 C 9) = 92378 ways

Then we consider the number of ways within the above number that violate the constraints (i.e. pick more 5 one beer):

The number of ways to pick 6 of one type of beer: 10*(12 C 8) = 4950
The number of ways to pick 7 of one type of beer: 10*(11 C 8) = 1650
The number of ways to pick 8 of one type of beer: 10*(10 C 8) = 450
The number of ways to pick 9 of one type of beer: 10*(9 C 8) = 90
The number of ways to pick 10 of one type of beer: 10*(8 C 8) = 10

So the answer is:

(19 C 9) - 10((12 C 8) + (11 C 8) + (10 C 8) + (9 C 8) + (8 C 8))
=92378 - 10(495 + 165 + 45 + 9 + 1)
=92378 - 7150

=85228 ways

Seems reasonable enough.

For those that don't know: (n C r) represents the number of ways to choose r things out of n possibilities without considering order. It is equal to n!/(r!*(n-r)!).

The highlighted portion is correct, but something went haywire in your exclusions.
 
Back
Top