arithmetic progression sum is (n+1)*n/2