#include using namespace std; long sumOfGroup(int k) { // Return the sum of the elements of the k'th group. long val = (long)k*(k-1)+1; int counter = 0; long finalValue = 0; while(counter> k; long answer = sumOfGroup(k); cout << answer << endl; return 0; }