#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 l=0; long int b; long int n=0; if(k==1) return 1; else n=k*(k-1); if(n%2==0) n++; for(long int j=0;j