Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Colored Partitions

Is there a code for showing partitions of a given number n, in k colours? For example take 2 colours, red and blue. Take the partition 3322111 of 13, where of the three 1's, two of them are red and the other one is blue, both the 3's are blue and both the 2's are red.

click to hide/show revision 2
retagged

Colored Partitions

Is there a code for showing partitions of a given number n, in k colours? For example take 2 colours, red and blue. Take the partition 3322111 of 13, where of the three 1's, two of them are red and the other one is blue, both the 3's are blue and both the 2's are red.