Pseudo-periodic Partition