general form of arithmetic progression