#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 i,n,sum=0,j; n=j=k; --k; n=n*k+1; for(i=0;i