Euler 76 Counting summations - incorrect