prove that the sum of first pq terms is 1/2 (pq +1)