partitions math formula