http://projecteuler.net/problem=78 this is partitioning...