MathGroup Archive 2007

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

Search the Archive

Re: Combination List

  • To: mathgroup at smc.vnet.net
  • Subject: [mg77899] Re: Combination List
  • From: Szabolcs <szhorvat at gmail.com>
  • Date: Tue, 19 Jun 2007 06:41:46 -0400 (EDT)
  • Organization: University of Bergen
  • References: <f55qci$k58$1@smc.vnet.net>

Bruno Campanini wrote:
> I know combinations of 4 elements taken 3 by 3 is 4,
> that is Binomial[4,3] = 4
> How can I get the list:
> 1 2 3 
> 1 2 4
> 1 3 4
> 1 4 2

Hi,

the last set should be 2 3 4.

> 
> The same way I get permuations list from Permutations[{...}]
> ???
> 
> Bruno
> 

Use Subsets[{1, 2, 3, 4}, {3}] to get all subsets with 3 elements.

Szabolcs


  • Prev by Date: Sound files manipulations
  • Next by Date: Re: Combination List
  • Previous by thread: Re: Combination List
  • Next by thread: Re: Combination List