#include using namespace std; long summ(long k){ long a = k*(2+(k-1)); a = a/2; return a; } long sumOfGroup(long k) { // Return the sum of the elements of the k'th group. long x = summ(k-1); //cout<> k; long answer = sumOfGroup(k); cout << answer << endl; return 0; }