home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!Germany.EU.net!math.fu-berlin.de!Sirius.dfn.de!darwin.sura.net!wupost!cs.utexas.edu!sun-barr!ames!network.ucsd.edu!munnari.oz.au!yoyo.aarnet.edu.au!sirius.ucs.adelaide.edu.au!levels!marwk
- From: marwk@levels.unisa.edu.au
- Newsgroups: sci.math
- Subject: Re: Combinatorial Problem
- Message-ID: <18485.2aa0325d@levels.unisa.edu.au>
- Date: 29 Aug 92 16:58:45 GMT
- References: <1992Aug27.135518.8048@rhrk.uni-kl.de>
- Organization: University of South Australia
- Lines: 50
-
- In article <1992Aug27.135518.8048@rhrk.uni-kl.de>, schwab@miranda.mathematik.uni-kl.de (Hartmut Schwab) writes:
- >
- > 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
-
- There was a book written in the 19th century, Choice and Chance, which
- discusses several of these kinds of problems, and in particular solves
- the problem mentioned - probably as the coefficients of a power of a poly
- over another polynomial. Exact results are then determined by
- using an algebra package or your own computer program.
-
- If you cannot find the book in your library I can provide the solution,
- but this request occurs here about once every 6 months.
-
- --
- Raymond Kennington
- LECTURER
- University of South Australia | Act in haste and repent at leisure
- P.O. Box 1 | Code too soon and debug forever
- Ingle Farm | Knobs, knobs everywhere,
- South Australia | just vary a knob to think!
-