Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: integer solutions for x_1+x_2+...+x_n = k
Date: Tue, 4 Nov 2008 21:21:01 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 13
Message-ID: <geqebt$e7d$1@fred.mathworks.com>
References: <geku21$eku$1@fred.mathworks.com> <gel0b6$3li$1@fred.mathworks.com> <gelbfg$72h$1@fred.mathworks.com> <gelf99$84m$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1225833661 14573 172.30.248.35 (4 Nov 2008 21:21:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 4 Nov 2008 21:21:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1582760
Xref: news.mathworks.com comp.soft-sys.matlab:498953


"Roger Stafford" <ellieandrogerxyzzy@mindspring.com.invalid> wrote in message <gelf99$84m$1@fred.mathworks.com>...
> "Bruno Luong" <b.luong@fogale.findmycountry> wrote in message <gelbfg$72h$1@fred.mathworks.com>...
> > The number of solutions for n=6 and k=60 is 8259888
> > It is "reasonable" small.
> > Bruno
> 
>   In general the total number of solutions is (k+n-1)!/k!/(n-1)! .
> 
> Roger Stafford

Thank you Roger for the formula. It is vey useful..
/Oriole