Re: combinatorics question

From: Rob Johnson (rob_at_www-lvs0.net.ohio-state.edu)
Date: 07/18/04


Date: 18 Jul 2004 07:12:11 -0400

In article <cdcdt0$cg2$1@dizzy.math.ohio-state.edu>,
Faheem Mitha <faheem@email.unc.edu> wrote:
>Consider two positive integers, $n$ and $m$, with $m \leq n$. Then I
>need to count the number of distinct ordered tuples $(n_1, \dots,
>n_m)$, such that $\sum_{i=1}^m i n_i = n$.
>
>Is a closed form expression known for this number? I'd also be happy
>with a good approximation, though here n is likely to be small (<30)
>so asymptotic expression would not be so useful.
>
>I have spent some time trying to come up with something but no
>joy. However, I am quite ignorant about combinatorics, so it may be
>easy.

Think of this as having m slots whose contents sum to n. Each example
of this can be represented by a sequence of m-1 "|"s and n "x"s.
For example m = 2, n = 3:

    xxx| <-> (3,0)
    xx|x <-> (2,1)
    x|xx <-> (1,2)
    |xxx <-> (0,3)

The number of such sequence of "|"s and "x"s is

                   (n+m-1)!
    C(n+m-1,m-1) = --------
                   n!(m-1)!

Rob Johnson <rob@trash.whim.org>
take out the trash before replying



Relevant Pages

  • Re: combinatorics question
    ... Faheem Mitha wrote: ... >Is a closed form expression known for this number? ... >with a good approximation, though here n is likely to be small ... Rob Johnson ...
    (sci.math.research)
  • Re: combinatorics question
    ... > Is a closed form expression known for this number? ... > with a good approximation, though here n is likely to be small ... It is possible that Mathematica ... or one of those fancy symbolic algebraic packages could be induced to ...
    (sci.math)
  • Re: combinatorics question
    ... > Is a closed form expression known for this number? ... > with a good approximation, though here n is likely to be small ... It is possible that Mathematica ... or one of those fancy symbolic algebraic packages could be induced to ...
    (sci.math.research)
  • Re: combinatorics question
    ... > Is a closed form expression known for this number? ... > with a good approximation, though here n is likely to be small ... Now consider the partition. ... Because of the behaviour of the factorial function, ...
    (sci.math)
  • Re: combinatorics question
    ... > Is a closed form expression known for this number? ... > with a good approximation, though here n is likely to be small ... Now consider the partition. ... Because of the behaviour of the factorial function, ...
    (sci.math.research)