Re: Combination List
- To: mathgroup at smc.vnet.net
- Subject: [mg77919] Re: [mg77869] Combination List
- From: Carl Woll <carlw at wolfram.com>
- Date: Tue, 19 Jun 2007 07:00:45 -0400 (EDT)
- References: <200706181109.HAA19966@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 > >The same way I get permuations list from Permutations[{...}] >??? > >Bruno > > Try using Subsets: In[43]:= Subsets[Range[4], {3}] Out[43]= {{1, 2, 3}, {1, 2, 4}, {1, 3, 4}, {2, 3, 4}} Carl Woll Wolfram Research
- References:
- Combination List
- From: "Bruno Campanini" <BC@gmail.com>
- Combination List