Task 1b for odd and even num of processors