#include #include #include #include #include #include #include long int sumOfGroup(int k) { // Return the sum of the elements of the k'th group. long int sum=0; long arr[k]; if(k==1) { return sum=k; } else{ long int temp=k-1; long int temp1=k; long int product=temp*temp1; product = product+1; sum=product; arr[0] = sum; //printf("%d\n",sum); for(int i=1;i