Link to home
Start Free TrialLog in
Avatar of mustish1
mustish1

asked on

Using only non negative numbers

Hi guys: Can any one please explain this question? Thanks

How many solutions (using only non-negative integers) are there to the following equation ?
x1+x2+x3+x4+x5+x6+x7=20

Ans: C(26,6)=230,230
Avatar of ozo
ozo
Flag of United States of America image

There are C(26,6) ways to arrange 20 x's and 6 + signs in a row
each of which will produce a different solution to the equation
SOLUTION
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mustish1
mustish1

ASKER

Thanks ozo. Can you please tell me why there is 7 rows group and then its going to 6 rows group
ways to arrange 20 x's and 6 + signs in a row

That shows a good understanding of math. I'm no math expert, so it took some thought to see how it applied. But it's an excellent restatement of the problem. Nice.

Tom
> why there is 7 rows group and then its going to 6 rows group
I'm not sure what you mean.  there are always 7 groups of x's separated by +'s
(some of the groups may contain 0 x's, as long as the number of x's is a non-negative integer)
> why there is 7 rows group and then its going to 6 rows group
I think I understand what you mean now.
There are 7 examples of "If any one of them = 20, then all the rest are 0" and 6 examples of "If A = 19, then one of them = 1 and the rest are 0."
ok thanks ozo.