#include using namespace std; long sumOfGroup(int k) { // Return the sum of the elements of the k'th group. vector> group; long value = 1; int i; for ( i=0;i temp; for ( int j=0;j<=i;j++) { temp.push_back(value); value += 2; } group.push_back(temp); } long sum = 0; for ( i=0;i> k; long answer = sumOfGroup(k); cout << answer << endl; return 0; }