MathGroup Archive 2007

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Combination List

  • To: mathgroup at smc.vnet.net
  • Subject: [mg77993] Re: Combination List
  • From: Jean-Marc Gulliet <jeanmarc.gulliet at gmail.com>
  • Date: Thu, 21 Jun 2007 05:37:16 -0400 (EDT)
  • Organization: The Open University, Milton Keynes, UK
  • References: <f55qci$k58$1@smc.vnet.net> <f58bk7$6ve$1@smc.vnet.net> <f5arsg$9aq$1@smc.vnet.net>

Bruno Campanini wrote:
> "Jean-Marc Gulliet" <jeanmarc.gulliet at gmail.com> wrote in message 
> news:f58bk7$6ve$1 at smc.vnet.net...
> 
>> I believe the last line is a typo (otherwise your request does not make
>> any sense).
> 
> Yes it is.
> Thank you Jean-Marc and thanks to the other fellows.
> I got a number of good solutions to my question.
> 
> May I go on...
> What if I can have one or more repeated elements in subsets?
> That is the number of combinations of 3 elements out of 4
> - with one or more duplicated elements - is Binomial[4+3-1,3] = 20
> 
> How can I get the list?
> 
> Bruno
> 

You should investigate the package Combinatorica. For instance, from the 
  documentation center

Combinatorica/tutorial/Combinatorica

or from the web

http://reference.wolfram.com/mathematica/Combinatorica/tutorial/Combinatorica.html

is a good place to start with it.

Regards,
Jean-Marc


  • Prev by Date: Rules for $Assumptions changed in v6.0 ???
  • Next by Date: Re: How change frame width in Framed object?
  • Previous by thread: Re: Combination List
  • Next by thread: Re: Combination List