MathGroup Archive 2007

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

Search the Archive

Re: Combination List


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