#!/bin/python import sys def sumOfGroup(k): # Return the sum of the elements of the k'th group. s=1 p=1 i=1 q=1 while i