Find sum of products of integers

We are finding sum of products of consecutive integers.