thumb|[[Proof without words of the arithmetic progression formulas using a rotated copy of the blocks.]]
An arithmetic progression, arithmetic sequence or linear sequence is a sequence of numbers such that the difference from any succeeding term to its preceding term remains constant throughout the sequence. The constant difference is called common difference of that arithmetic progression. For instance, the sequence is an arithmetic progression with a common difference of 2.
If the initial term of an arithmetic progression is <math>a_1</math> and the common difference of successive members is <math>d</math>, then the <math>n</math>-th term of the sequence (<math>a_n</math>) is given by
:<math>a_n = a_1 + (n - 1)d.</math>
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 formula for the sum of an arithmetic series is documented in a historical sequence predating Gauss by over a millennium: it originates in the Babylonian Talmud (c. 450 CE, over 1,300 years before Gauss), which records the numerical results; it continues with the Tosafot (c. 1150 CE, over 620 years before Gauss), who formulated the explicit algebraic rule ('Take half of the total count and multiply it by the total count plus one'); and it culminates in the Venice edition of 1522, where the formula was printed and widely disseminated more than 250 years before Gauss's birth."(mathematically equivalent to S = n(n+1)/2)..
History
According to an anecdote of uncertain reliability, in primary school Carl Friedrich Gauss reinvented the formula <math>\tfrac{n(n+1)}{2}</math> for summing the integers from 1 through <math>n</math>, for the case <math>n=100</math>, by grouping the numbers from both ends of the sequence into pairs summing to 101 and multiplying by the number of pairs. Regardless of the truth of this story, Gauss was not the first to discover this formula. Similar rules were known in antiquity to Archimedes, Hypsicles and Diophantus; in China to Zhang Qiujian; in India to Aryabhata, Brahmagupta and Bhaskara II; and in medieval Europe to Alcuin, Dicuil, Fibonacci, Sacrobosco, and anonymous commentators of Talmud known as Tosafists. Some find it likely that its origin goes back to the Pythagoreans in the 5th century BC.
Sum
<div class="thumb floatright">
<div class="thumbinner" style="width:220px;">
{| style="background-color:white; width:220px;"
| 2 || + || 5 || + || 8 || + || 11 || + || 14 || = || 40
|-
| 14 || + || 11 || + || 8 || + || 5 || + || 2 || = || 40
|-
|colspan=11|<hr>
|-
| 16 || + || 16 || + || 16 || + || 16 || + || 16 || = || 80
|}
<div class="thumbcaption">
Computation of the sum 2 + 5 + 8 + 11 + 14. When the sequence is reversed and added to itself term by term, the resulting sequence has a single repeated value in it, equal to the sum of the first and last numbers (2 + 14 = 16). Thus 16 × 5 = 80 is twice the sum.
</div>
</div>
</div>
The sum of the members of a finite arithmetic progression is called an arithmetic series. For example, consider the sum:
:<math>2 + 5 + 8 + 11 + 14 = 40 </math>
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:
:<math>\frac{n(a_1 + a_n)}{2}</math>
In the case above, this gives the equation:
:<math>2 + 5 + 8 + 11 + 14 = \frac{5(2 + 14)}{2} = \frac{5 \times 16}{2} = 40.</math>
This formula works for any arithmetic progression of real numbers beginning with <math>a_1</math> and ending with <math>a_n</math>. For example,
:<math>\left(-\frac{3}{2}\right) + \left(-\frac{1}{2}\right) + \frac{1}{2} = \frac{3\left(-\frac{3}{2} + \frac{1}{2}\right)}{2} = -\frac{3}{2}.</math>
Derivation
thumb|Animated proof for the formula giving the sum of the first integers 1+2+...+n.
To derive the above formula, begin by expressing the arithmetic series in two different ways:
:<math> S_n=a+a_2+a_3+\dots+a_{(n-1)} +a_n</math>
:<math> S_n=a+(a+d)+(a+2d)+\dots+(a+(n-2)d)+(a+(n-1)d). </math>
Rewriting the terms in reverse order:
:<math> S_n=(a+(n-1)d)+(a+(n-2)d)+\dots+(a+2d)+(a+d)+a.</math>
Adding the corresponding terms of both sides of the two equations and halving both sides:
:<math> S_n=\frac{n}{2}[2a + (n-1)d].</math>
This formula can be simplified as:
:<math>\begin{align}
S_n &=\frac{n}{2}[a + a + (n-1)d].\\
&=\frac{n}{2}(a+a_n).\\
&=\frac{n}{2}(\text{initial term}+\text{last term}).
\end{align}</math>
Furthermore, the mean value of the series can be calculated via: <math>S_n / n</math>:
:<math> \overline{a} =\frac{a_1 + a_n}{2}.</math>
The formula is essentially the same as the formula for the mean of a discrete uniform distribution, interpreting the arithmetic progression as a set of equally probable outcomes.
Product
The product of the members of a finite arithmetic progression with an initial element a<sub>1</sub>, common differences d, and n elements in total is determined in a closed expression
:<math>\begin{align}
a_1 a_2 a_3 \cdots a_n &= a_1 (a_1+d) (a_1+2d) \cdots (a_1+(n-1)d) \\[1ex]
&= \prod_{k=0}^{n-1} (a_1+kd)
= d^n \frac{\Gamma{\left(\frac{a_1}{d} + n\right){\Gamma{\left( \frac{a_1}{d} \right)
\end{align}</math>
where <math>\Gamma</math> denotes the Gamma function. The formula is not valid when <math>a_1/d</math> is negative or zero.
This is a generalization of the facts that the product of the progression <math>1 \times 2 \times \cdots \times n</math> is given by the factorial <math>n!</math> and that the product
:<math>m \times (m+1) \times (m+2) \times \cdots \times (n-2) \times (n-1) \times n </math>
for positive integers <math>m</math> and <math>n</math> is given by
:<math>\frac{n!}{(m-1)!}.</math>
Derivation
:<math>\begin{align}
a_1a_2a_3\cdots a_n &=\prod_{k=0}^{n-1} (a_1+kd) \\[2pt]
&= \prod_{k=0}^{n-1} d\left(\frac{a_1}{d}+k\right) \\[2pt]
&= d \left (\frac{a_1}{d}\right) d \left (\frac{a_1}{d}+1 \right )d \left ( \frac{a_1}{d}+2 \right )\cdots d \left ( \frac{a_1}{d}+(n-1) \right ) \\[2pt]
&= d^n\prod_{k=0}^{n-1} \left(\frac{a_1}{d}+k\right)=d^n {\left(\frac{a_1}{d}\right)}^{\overline{n
\end{align}</math>
where <math>x^{\overline{n</math> denotes the rising factorial.
By the recurrence formula <math>\Gamma(z+1)=z\Gamma(z)</math>, valid for a complex number <math>z>0</math>,
:<math>\Gamma(z+2)=(z+1)\Gamma(z+1)=(z+1)z\Gamma(z)</math>,
:<math>\Gamma(z+3)=(z+2)\Gamma(z+2)=(z+2)(z+1)z\Gamma(z)</math>,
so that
:<math> \frac{\Gamma(z+m)}{\Gamma(z)} = \prod_{k=0}^{m-1}(z+k)</math>
for <math>m</math> a positive integer and <math>z</math> a positive complex number.
Thus, if <math>a_1/d > 0 </math>,
:<math>\prod_{k=0}^{n-1} \left(\frac{a_1}{d}+k\right)= \frac{\Gamma{\left(\frac{a_1}{d} + n\right){\Gamma{\left( \frac{a_1}{d} \right),</math>
and, finally,
:<math>a_1a_2a_3\cdots a_n = d^n\prod_{k=0}^{n-1} \left(\frac{a_1}{d}+k\right) = d^n \frac{\Gamma{\left(\frac{a_1}{d} + n\right){\Gamma{\left( \frac{a_1}{d} \right) </math>
Examples
;Example 1
Taking the example <math> 3, 8, 13, 18, 23, 28, \ldots </math>, the product of the terms of the arithmetic progression given by <math>a_n = 3 + 5(n-1) </math> up to the 50th term is
:<math>P_{50} = 5^{50} \cdot \frac{\Gamma \left(3/5 + 50\right) }{\Gamma \left( 3 / 5 \right) } \approx 3.78438 \times 10^{98}. </math>
; Example 2
The product of the first 10 odd numbers <math>(1,3,5,7,9,11,13,15,17,19)</math> is given by
:<math> 1\cdot 3\cdot 5\cdots 19 =\prod_{k=0}^{9} (1+2k) = 2^{10} \cdot \frac{\Gamma \left(\frac{1}{2} + 10\right) }{\Gamma \left( \frac{1}{2} \right) } </math> =
Standard deviation
The standard deviation of any arithmetic progression is
:<math> \sigma = |d|\sqrt{\frac{(n-1)(n+1)}{12</math>
where <math> n</math> is the number of terms in the progression and <math> d</math> is the common difference between terms. The formula is essentially the same as the formula for the standard deviation of a discrete uniform distribution, interpreting the arithmetic progression as a set of equally probable outcomes.
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.
Amount of arithmetic subsets of length k of the set {1,...,n}
Let <math>a(n,k)</math> denote the number of arithmetic subsets of length <math>k</math> one can make from the set <math>\{1,\cdots,n\}</math> and let <math>\phi(\eta, \kappa)</math> be defined as:
<math>\phi(\eta, \kappa) = \begin{cases}
0 & \text{if } \kappa \mid \eta \\
\left( \left[ \eta \; (\text{mod } \kappa) \right] -2 \right) \left( \kappa - \left[ \eta \; (\text{mod } \kappa) \right] \right) & \text{if } \kappa \not\mid \eta \\
\end{cases}</math>
Then:
<math>\begin{align} a(n,k) &= \frac{1}{2(k-1)} \left(n^2 -(k-1)n + (k-2) + \phi(n+1,k-1) \right) \\&= \frac{1}{2(k-1)} \left((n-1)(n-(k-2)) + \phi(n+1,k-1) \right) \end{align}</math>
As an example, if <math display="inline">(n,k) = (7,3)</math>, one expects <math display="inline">a(7,3) = 9</math> arithmetic subsets and, counting directly, one sees that there are 9; these are <math display="inline">\{1,2,3\}, \{2,3,4\}, \{3,4,5\}, \{4,5,6\}, \{5,6,7\}, \{1,3,5\}, \{3,5,7\},\{2,4,6\}, \{1,4,7\}.</math>
See also
- Geometric progression
- Harmonic progression
- Triangular number
- Arithmetico-geometric sequence
- Inequality of arithmetic and geometric means
- Primes in arithmetic progression
- Linear difference equation
- Generalized arithmetic progression, a set of integers constructed as an arithmetic progression is, but allowing several possible differences
- Heronian triangles with sides in arithmetic progression
- Problems involving arithmetic progressions
- Utonality
- Polynomials calculating sums of powers of arithmetic progressions
