### Formula

a1

initial term, first term

an

n-th term

d

common difference

n

number of elements

a1

initial term, first term

an

n-th term

d

common difference

n

number of elements

In mathematics, an arithmetic progression (AP) or arithmetic sequence is a sequence of numbers such that the difference between the consecutive terms is constant. For instance, the sequence 3, 5, 7, 9, 11, 13, ... is an arithmetic progression with common difference 2.

an

d

n

a1

Precision

- C
- C#
- C++
- Java
- JavaScript
- LaTeX
- PHP