Colored Partitions

asked 2021-02-11 11:06:18 +0200

Uday Bhaskar gravatar image

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.

edit retag flag offensive close merge delete