partitions formula geometry