Question: Partition Sub-Set

[edited by moderator] Consider the question of finding all partitions of a given set, for example as done using the two procesures in this previous Answer.

my problem is that i wont to represent the second Proc can not have a set as input (only integers)

au lieu L := [seq(i, i = 1 .. n)]; I want to introduce {{1},{2,4},{3,5}} .

or for [0012] and for the set {a,b,c} i can associted {{ab},{c},{d}}

how I can do that ??

Please Wait...