Partition of the sum of squares