#include #include #include #include #include #include #include long int sumOfGroup(long int k) { // Return the sum of the elements of the k'th group. long int i=0,j,sum=0; j=k*(k-1)+1; while(i