Sum of arithmetic progression