adding products of integers