PART::SplitPart --
splits a partition into several ones
Call(s)
PART::SplitPart(part <,n>)
Parameterspart | - | a partition |
n | - | a positive integer |
IntroductionThe PART::SplitPart function returns the set of ways of splitting
the partition part into two partitions.
Called with a second argument n, the partition is splitted
into n partitions, possibly empty.
Example 1>> muEC::PART::SplitPart( [4,2,1] );
{[[], [4, 2, 1]], [[1], [4, 2]], [[2], [4, 1]], [[4], [2, 1]],
[[2, 1], [4]], [[4, 1], [2]], [[4, 2], [1]], [[4, 2, 1], []]
}
>> muEC::PART::SplitPart( [2,1], 3 );
{[[], [], [2, 1]], [[], [1], [2]], [[], [2], [1]],
[[], [2, 1], []], [[1], [], [2]], [[1], [2], []],
[[2], [], [1]], [[2], [1], []], [[2, 1], [], []]}
Related FunctionsMuPAD Combinat, an open source algebraic combinatorics package