# Number of solutions to an equation

1. Jul 13, 2010

### praharmitra

Given the following integer equation $$x_1 + x_2 + ... x_n = m$$ where $$x_i \geq 0$$ and $$x_i$$ is an integer for all i.

The number of solutions to the above equation is $$^{n+m-1}C_m$$

I was wondering if we could view this as a selection of $$m$$ objects from a selection of $$n + m - 1$$ objects.

Is there a 1-to-1 correspondence between a particular solution of the equation, and a particular selection of m objects from a selection of some n + m - 1 objects.

I hope I have made myself clear. I have tried to figure out such a correspondence, but in vain.

2. Jul 13, 2010

### Hurkyl

Staff Emeritus
How about a selection of n-1 objects?

3. Jul 14, 2010

### awkward

4. Jul 21, 2010

### praharmitra

Hey, sorry I haven't replied back on my own thread. Was away.

Anyway, I figured out the required one-to-one correspondence myself. Its pretty much related to the link that @awkward has provided.

So, if anyone still has trouble understanding, I would be glad to explain.

Thanks a lot guys for your help.

Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook