# Arithmetic progression

In mathematics, an**arithmetic progression**(AP) or

**arithmetic sequence**is a sequence of numbers such that the difference between the consecutive terms is constant. Difference here means the second minus the first. For instance, the sequence 5, 7, 9, 11, 13, 15, . . . is an arithmetic progression with

*common difference*of 2.

If the initial term of an arithmetic progression is $a\_1$ and the common difference of successive members is

*d*, then the

*n*th term of the sequence ($a\_n$) is given by: :$a\_n\; =\; a\_1\; +\; (n\; -\; 1)d$,

and in general

:$a\_n\; =\; a\_m\; +\; (n\; -\; m)d$.

A finite portion of an arithmetic progression is called a

**finite arithmetic progression**and sometimes just called an arithmetic progression. The sum of a finite arithmetic progression is called an

**arithmetic series**.

The behavior of the arithmetic progression depends on the common difference

*d*. If the common difference is:

## Sum

**arithmetic series**. For example, consider the sum:

:$2\; +\; 5\; +\; 8\; +\; 11\; +\; 14$

This sum can be found quickly by taking the number

*n*of terms being added (here 5), multiplying by the sum of the first and last number in the progression (here 2 + 14 = 16), and dividing by 2:

:$frac\{n(a\_1\; +\; a\_n)\}\{2\}$

In the case above, this gives the equation:

:$2\; +\; 5\; +\; 8\; +\; 11\; +\; 14\; =\; frac\{5(2\; +\; 14)\}\{2\}\; =\; frac\{5\; imes\; 16\}\{2\}\; =\; 40.$

This formula works for any real numbers $a\_1$ and $a\_n$. For example:

:$left(-frac\{3\}\{2\}\; ight)\; +\; left(-frac\{1\}\{2\}\; ight)\; +\; frac\{1\}\{2\}\; =\; frac\{3left(-frac\{3\}\{2\}\; +\; frac\{1\}\{2\}\; ight)\}\{2\}\; =\; -frac\{3\}\{2\}.$

### Derivation

To derive the above formula, begin by expressing the arithmetic series in two different ways: :$S\_n=a\_1+(a\_1+d)+(a\_1+2d)+cdots+(a\_1+(n-2)d)+(a\_1+(n-1)d)$

:$S\_n=(a\_n-(n-1)d)+(a\_n-(n-2)d)+cdots+(a\_n-2d)+(a\_n-d)+a\_n.$

Adding both sides of the two equations, all terms involving

*d*cancel:

:$2S\_n=n(a\_1\; +\; a\_n).$

Dividing both sides by 2 produces a common form of the equation:

:$S\_n=frac\{n\}\{2\}(\; a\_1\; +\; a\_n).$

An alternate form results from re-inserting the substitution: $a\_n\; =\; a\_1\; +\; (n-1)d$:

:$S\_n=frac\{n\}\{2\}[\; 2a\_1\; +\; (n-1)d].$

Furthermore, the mean value of the series can be calculated via: $S\_n\; /\; n$:

:$overline\{n\}\; =frac\{a\_1\; +\; a\_n\}\{2\}.$

The formula is very similar to the mean of a discrete uniform distribution.

In 499 AD Aryabhata, a prominent mathematician-astronomer from the classical age of Indian mathematics and Indian astronomy, gave this method in the

*Aryabhatiya*(section 2.18).

According to an anecdote, young Carl Friedrich Gauss reinvented this method to compute the sum 1+2+3+...+99+100 for a punishment in primary school.

## Product

The product of the members of a finite arithmetic progression with an initial element*a*

_{1}, common differences

*d*, and

*n*elements in total is determined in a closed expression

:$a\_1a\_2cdots\; a\_n\; =\; d\; frac\{a\_1\}\{d\}\; d\; left\; (frac\{a\_1\}\{d\}+1\; ight\; )d\; left\; (\; frac\{a\_1\}\{d\}+2\; ight\; )cdots\; d\; left\; (\; frac\{a\_1\}\{d\}+n-1\; ight\; )=d^n\; \{left(frac\{a\_1\}\{d\}\; ight)\}^\{overline\{n\}\}\; =\; d^n\; frac\{Gamma\; left(a\_1/d\; +\; n\; ight)\; \}\{Gamma\; left(\; a\_1\; /\; d\; ight)\; \},$

where $x^\{overline\{n\}\}$ denotes the rising factorial and $Gamma$ denotes the Gamma function. (The formula is not valid when $a\_1/d$ is a negative integer or zero.)

This is a generalization from the fact that the product of the progression $1\; imes\; 2\; imes\; cdots\; imes\; n$ is given by the factorial $n!$ and that the product

:$m\; imes\; (m+1)\; imes\; (m+2)\; imes\; cdots\; imes\; (n-2)\; imes\; (n-1)\; imes\; n$

for positive integers $m$ and $n$ is given by

:$frac\{n!\}\{(m-1)!\}.$

Taking the example 3, 8, 13, 18, 23, 28, ..., the product of the terms of the arithmetic progression given by

*a*

_{n}= 3 + (

*n*-1)×5 up to the 50th term is :$P\_\{50\}\; =\; 5^\{50\}\; cdot\; frac\{Gamma\; left(3/5\; +\; 50\; ight)\; \}\{Gamma\; left(\; 3\; /\; 5\; ight)\; \}\; approx\; 3.78438\; imes\; 10^\{98\}.$

## Standard deviation

The standard deviation of any arithmetic progression can be calculated as

:$sigma\; =\; |d|sqrt\{frac\{(n-1)(n+1)\}\{12\}\}$

where $n$ is the number of terms in the progression and $d$ is the common difference between terms. The formula is very similar to the standard deviation of a discrete uniform distribution.

## Intersections

The intersection of any two doubly infinite arithmetic progressions is either empty or another arithmetic progression, which can be found using the Chinese remainder theorem. If each pair of progressions in a family of doubly infinite arithmetic progressions have a non-empty intersection, then there exists a number common to all of them; that is, infinite arithmetic progressions form a Helly family. However, the intersection of infinitely many infinite arithmetic progressions might be a single number rather than itself being an infinite progression.## Summary of formulae

If :$a\_1$ is the first term of an arithmetic progression. :$a\_n$ is the nth term of an arithmetic progression. :$d$ is the difference between terms of the arithmetic progression. :$n$ is the number of terms in the arithmetic progression. :$S\_n$ is the sum of n terms in the arithmetic progression. :$overline\{n\}$ is the mean value of arithmetic series.

then :1. $a\_n\; =\; a\_1\; +\; (n\; -\; 1)d,$

:2. $a\_n\; =\; a\_m\; +\; (n\; -\; m)d.$

:3. $S\_n=frac\{n\}\{2\}[\; 2a\_1\; +\; (n-1)d].$

:4. $S\_n=frac\{n\}\{2\}(\; a\_1\; +\; a\_n).$

:5. $overline\{n\}$ = $S\_n\; /\; n$

:6. $overline\{n\}\; =frac\{a\_1\; +\; a\_n\}\{2\}.$

:7. $d\; =\; frac\{a\_m-a\_n\}\{m-n\}\; ;\; m\; eq\; n$.