Re: Combination List
- To: mathgroup at smc.vnet.net
- Subject: [mg77914] Re: [mg77869] Combination List
- From: DrMajorBob <drmajorbob at bigfoot.com>
- Date: Tue, 19 Jun 2007 06:57:55 -0400 (EDT)
- References: <31344098.1182166936799.JavaMail.root@m35>
- Reply-to: drmajorbob at bigfoot.com
Maybe you meant: Needs["Combinatorica`"] Subsets[Range@4, {3}] {{1, 2, 3}, {1, 2, 4}, {1, 3, 4}, {2, 3, 4}} or maybe Select[Permutations[Range@4, {3}], OrderedQ] {{1, 2, 3}, {1, 2, 4}, {1, 3, 4}, {2, 3, 4}} ??? I have no clue what rule you used to come up with this: > 1 2 3 > 1 2 4 > 1 3 4 > 1 4 2 Bobby On Mon, 18 Jun 2007 06:09:40 -0500, Bruno Campanini <BC 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 > > -- = DrMajorBob at bigfoot.com