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