A probability problem by Achal Jain

Find the number of non-negative integers solutions for x + y + z + w = 10 x+y+z+w=10 .

144 72 132 286 210

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

2 solutions

Harsh Khatri
Feb 8, 2016

Let the general case be:

x 1 + x 2 + + x r = n \displaystyle \Rightarrow \quad \quad x_1 + x_2 + \ldots + x_r = n

where n N , x 1 , x 2 , , x r are non-negative integers. \displaystyle \text{where } n \in N, x_1,x_2,\ldots,x_r \text{ are non-negative integers.}

This problem can be viewed as:

Suppose we have n \displaystyle n objects to begin with. We want to separate them in r \displaystyle r groups. We do so by using r 1 \displaystyle r-1 sticks to segregate the objects.(Assuming the n \displaystyle n objects are arranged in a straight line.)

The number of objects to the right of every stick (until we reach the next stick, if any) will be the number of objects in that group.

We are required to insert sticks in the gaps between objects such that a group has whole number of objects.

There are n \displaystyle n gaps to the right of the n \displaystyle n objects to place the sticks. And an additional r 1 \displaystyle r-1 gaps are assumed to be present at the left for the case when one group has all the objects and others have none.

Thus there are r 1 \displaystyle r-1 gaps to be selected from a total of n + r 1 \displaystyle n+r-1 gaps.

The total number of ways in which this can be done = ( n + r 1 r 1 ) \displaystyle = { n+r-1 \choose r-1}

Substituting, n = 10 \displaystyle n = 10 and r = 4 \displaystyle r = 4 , we get 286 \displaystyle \boxed{286} .

Yeah. Stars and bars is the fastest solution here! Did same.

Pulkit Gupta - 5 years, 4 months ago
Naman Mittal
Feb 8, 2016

Partition method...

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...