1.Arithmetic sequences and series
An arithmetic sequence adds the same amount , the common difference, at every step. Its general term is . The factor , not , is the most common source of off-by-one errors: between the first term and the th term there are exactly gaps, each of size . Equivalently, is a linear function of with slope , which is why arithmetic sequences are exactly the sequences whose consecutive differences are constant. Two terms and therefore determine the whole sequence, since .
The sum formula comes from a pairing trick. Write and also write the same sum backwards, . Adding the two rows term by term, every column has the same total, because for each . There are columns, so , and therefore . This is the average of the first and last terms times the number of terms, which is exactly what one expects for evenly spaced numbers. Gauss is said to have found this as a child by pairing with , with , and so on; the identity works for any arithmetic sequence, not only consecutive integers.
For a concrete case, consider . Here , , and the last term gives , so . The sum is . The important point is that the number of terms must be found first, and the solver should be suspicious of any answer that does not come from explicitly. If the last term is not given, one solves for from before doing anything else.
Some structural facts recur constantly. Among any odd number of consecutive terms, the middle term equals their average, so the sum of an odd-length block is the middle term times the count. Counting how many terms of an arithmetic sequence lie in an interval is itself a floor problem: the terms inside an interval correspond to the integers in an interval of length (end minus start) divided by , so the count is a floor expression. This link to floor functions is developed in the last lesson of this topic.
When a problem describes a list by a rule, first identify , , and the last term, then decide which formula is needed. Many problems give two terms and ask for a third or for a sum, so the first skill is to solve the two-equation linear system for and . Remember that may be negative, and the same formulas work for decreasing sequences. Finally, if a problem sums only part of a sequence, subtract the initial block from the full sum instead of adjusting the formula's index, which is safer under time pressure.
- , and
- , the Gauss pairing identity
Spot it: Consecutive terms differ by a constant, or the problem asks for a total of evenly spaced numbers, or it asks for the count of terms in an arithmetic list.
- Using for the th term, which is the st term.
- Forgetting that the number of terms from to with step is , not .
Find the sum of the first terms of the arithmetic sequence with first term and common difference .