home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: sci.math
- Path: sparky!uunet!gatech!darwin.sura.net!jvnc.net!yale.edu!ira.uka.de!rz.uni-karlsruhe.de!stepsun.uni-kl.de!sun.rhrk.uni-kl.de!miranda.mathematik.uni-kl.de!schwab
- From: schwab@miranda.mathematik.uni-kl.de (Hartmut Schwab)
- Subject: Combinatorial Problem
- Message-ID: <1992Aug27.135518.8048@rhrk.uni-kl.de>
- Keywords: combinatorics
- Sender: news@rhrk.uni-kl.de
- Reply-To: schwab@mathematik.uni-kl.de
- Organization: UC Berkeley IC CAD Group
- Date: Thu, 27 Aug 1992 13:55:18 GMT
- Lines: 32
-
-
- I have a Problem, which I think is very easy.
- But I don't know how to find the solution.
-
- Given an Integer K.
- Partition K into m Integers c[i], such that their sum is K.
- Condition: For all i : 0 <= c[i] <= k[i].
-
- How many different Solutions are there?
-
- Two solutions c0 and c1 are different, if there is an i such that
- c0[i] <> c1[i].
-
- Therefore in the case K = 3, m = 2 , 0 <= c[1] <= 2, 0 <= c[2] <= 3
- we get the solutions: 0+3, 1+2, 2+1. These are 3 different solutions.
-
- You could think of K bowls which are put into m boxes.
- The condition says, that box i is only able to take k[i] or less bowls.
-
- Without the condition I am able to solve it. But I have problems with
- the condition.
-
- I am interested in an easy to calculate term.
-
-
- Where can I get a solution to this problem?
-
- Thanks in advance.
-
-
- Hartmut Schwab
- schwab@mathematik.uni-kl.de
-