problem 31

Coin sums