Project Euler #78: Coin partitions