Project Euler #76: Counting summations