#include #include #include #include #include #include #include long double sumOfGroup(long int k) { // Return the sum of the elements of the k'th group. long int pos = ((k-1)*k)>>1; long double sum = 0; for(int i=0; i