#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 t=k; long int sum=(t*t-t+1)*t; for(long int i=0;i