#include #include #include #include #include #include #include long int sumOfGroup(int k) { // Return the sum of the elements of the k'th group. int i; long int p=0,total=0; for(i=1;i