Arithmetic Progression  

Where
a > the first term in the series,
n > last term in the series and
d > Common difference.
Example:
Calculate the arithmetic progression for the given details of numbers.
Enter nth term: 10
Enter the first term =: 2
Enter the common difference: 2
Solution:
Apply formula:
Arithmetic Progression = a + (n1)* d
Arithmetic Progression = 2+(101)*2
Arithmetic Progression = 2+9*2
Arithmetic Progression = 2+18
Arithmetic Progression =20
Sum of first n terms: 110