Partition Function
- To: mathgroup at smc.vnet.net
- Subject: [mg57599] Partition Function
- From: "Shug Boabby" <Shug.Boabby at gmail.com>
- Date: Wed, 1 Jun 2005 06:04:42 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
hi there, is there any way to get mathematica to return the actual partitions of an integer? the only functions related to this, (e.g. http://mathworld.wolfram.com/PartitionFunctionP.html) only return the *number* of partitions, not the actual partititons (including permutations) themselves. e.g. for 4, i'd like a function to return {{1,1,1,1}, {2,1,1}, {1,2,1}, {1,1,2}, {3,1}, {2,2}, {1,3}, {4}} with the ordering of the partitions not being important cheers, Shug