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: Mon, 3 Nov 2008 00:06:01 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 9
Message-ID: <gelf99$84m$1@fred.mathworks.com>
References: <geku21$eku$1@fred.mathworks.com> <gel0b6$3li$1@fred.mathworks.com> <gelbfg$72h$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1225670761 8342 172.30.248.37 (3 Nov 2008 00:06:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 3 Nov 2008 00:06:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1187260
Xref: news.mathworks.com comp.soft-sys.matlab:498569


"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