solving summation puzzles