code for thetasets of partitions of integers