• + 0 comments
    
    
    // Return the sum of the elements of the k'th group.
    long long int x=(k*(k-1)+1);
    long long int sum=x;
    for(int i=0;i<k-1;i++){
        x=x+2;
        sum+=x;
    }
    

    return sum; }https://)