Re: Listing the partitions of a set

*To*: mathgroup at smc.vnet.net*Subject*: [mg65313] Re: [mg65282] Listing the partitions of a set*From*: Pratik Desai <pratikd at wolfram.com>*Date*: Sat, 25 Mar 2006 05:17:52 -0500 (EST)*References*: <200603240559.AAA26153@smc.vnet.net>*Sender*: owner-wri-mathgroup at wolfram.com

Richard Palmer wrote: > Is there a simple way to list the partitions of a set? For example, there > are 15 partitions on a set of 4 elements. {{{1, 2, 3, 4}}, {1, {2, 3, 4}}, > {{1, 3, 4}, 2}, {{1, 2, 4}, 3}, {{1, 2, 3}, 4}, {{1, 2}, {3, 4}}, {{1, > 3}, {2, 4}}, {{1, 4}, {2, 3}}, {1, 2, {3, 4}}, {1, 3, {2, 4}}, {1, 4, {2, > 3}}, {2, 3, {1, 4}}, {2, 4, {1, 3}}, {3, 4, {1, 2}}, {1, 2, 3, 4}} . > > Here is a link for a site where there is an implementation of the Bell List (which I hope does what you want) http://mathforum.org/advanced/robertd/bell.html Hope this helps Pratik Desai Wolfram Research Tech Support

**References**:**Listing the partitions of a set***From:*Richard Palmer <mapsinc@bellatlantic.net>