I have to do * Sum of sum of first N numbers , sum of squares of first N numbers and sum of cubes of first N numbers* .

Is there any formula which can do summation of all three opration.

I have done this using Mathematical formula separately for these three and added them.

Here is my solution