What is the formula for the sum of the first nth term of an arithmetic progression with the first term A and the common difference D