#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 k1=k-1; long int n =((k1*(k1+1))/2)+1; long int num = 1+(n-1)*2; long int result=0; //int j=0; for(int i=0;i