Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2007
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2007

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

Search the Archive

Re: Combination List

  • To: mathgroup at smc.vnet.net
  • Subject: [mg77908] Re: Combination List
  • From: Norbert Marxer <marxer at mec.li>
  • Date: Tue, 19 Jun 2007 06:46:23 -0400 (EDT)
  • References: <f55qci$k58$1@smc.vnet.net>

On 18 Jun., 13:30, "Bruno Campanini" <B... at gmail.com> 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
>
> The same way I get permuations list from Permutations[{...}]
> ???
>
> Bruno

Hello

Try the Function Subsets

In[1]:=
Subsets[{1, 2, 3, 4}, {3}]

Out[1]=
{{1, 2, 3}, {1, 2, 4}, {1, 3, 4}, {2, 3, 4}}

Best Regards
Norbert Marxer



  • Prev by Date: Re: Combination List
  • Next by Date: Re: Rule and Module not working together
  • Previous by thread: Re: Combination List
  • Next by thread: Re: Combination List