Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm having a bit of trouble with this, and can't get my numbers to come out correctly.

Here's an example: Get a maximum of n items, composed of the following: x burgers y hot dogs z fruit w napkins

where x,y,z are less than n and w is more than n.

How many different combinations can you make from these?

I would assume it would be (n+4-1) C x - (x+4-1) C x - (y+4-1) C y - (z+4-1) C z + (x+y+4-1) C (x+y) + (x+z+4-1) C (x+z) ...

or am I doing something wrong?

share|cite|improve this question
If $w$ is more than $n$, then how can you have a maximum of $n$ items? – Cameron Buie Apr 18 '13 at 21:16
The maximum allowable of w is n. Essentially, I could rephrase to w is equal to n. – BLaZuRE Apr 18 '13 at 21:18
It is hard to get a maximum of $n$ items if we need more than $n$ napkins. Maybe you could state the exact problem that inspired your question. – André Nicolas Apr 18 '13 at 21:20

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.