A sequence is a function with an ordered index set. This viewpoint distinguishes a list of values from a set, explains recursive definitions, and fixes which terms a partial sum contains. Read Functions and Mappings first; techniques for manipulating sums are developed separately in Finite Sums and Summation Techniques.
This chapter moves from individual terms to partial sums and series. It introduces the meaning of convergence; convergence tests and a systematic treatment of infinite summation belong to Infinite Series in calculus.
Indexing is part of the definition
An infinite sequence in a set is a function , with written . Here . The entire sequence is denoted by
When the terms are numbers, this is a numerical sequence; for example, gives a real sequence. A single denotes the term at index , whereas denotes the whole sequence.
The braces notation is common; the parentheses notation denotes the same sequence. Braces in this sequence notation do not turn it into an ordinary set that ignores order and repetition. For example, the sequence has three terms, while its set of values has two elements. The index range and context distinguish these uses.
The subscript outside the braces specifies the starting index. The superscript means that the indices continue indefinitely; it is neither a power nor a final term indexed by infinity. This notation lists terms and does not add them. Letters such as may be used instead, and or may abbreviate the sequence when the index range is understood.
Starting at is equally legitimate, in which case we write
A finite sequence of length is a function on , denoted by
There are terms, with final index . When , the domain is empty and we obtain the empty sequence.
Order and repetition matter. The sequences and differ, although both have the same set of values . A real sequence takes values in , but sequences may also consist of vectors, functions, symbols, or other objects. A mathematical definition does not necessarily supply an efficient algorithm for computing arbitrary terms.
For example, with indices , let be the least prime divisor of . The sequence is . Each value is defined because . Giving the index range prevents the mistaken request for a prime divisor of .
Separate the index set, codomain, and image
A sequence is a function, so three sets must be distinguished: its indices, its possible values, and its values that actually occur. Naive Set Theory defines finite, countably infinite, and uncountable sets; here those terms must be attached to the right object.
All three examples below have the uncountable codomain , but their images are much smaller.
| Sequence | Index set | Image |
|---|---|---|
| , finite | , finite | |
| for | , countably infinite | , finite |
| for | , countably infinite | Nonnegative even integers, countably infinite |
An infinite sequence has infinitely many positions, not necessarily infinitely many distinct values. Its image is always at most countable: assign each value its first occurrence index to obtain an injection into . Thus an ordinary real sequence cannot enumerate all real numbers. The uncountability proof for appears in Number Systems, Algorithms, and Recursion.
More generally, a function is an indexed family, written . The set may be uncountable; for example, for . Such a family is not an ordinary sequence indexed by natural numbers. An ordinal-indexed family is called a transfinite sequence; ordinal indices may be countable or uncountable. This extension belongs to later set theory, not to the arithmetic and geometric sequences below.
One further distinction matters: the set of all infinite binary sequences is uncountable, although each individual binary sequence has only countably many positions and at most two values. The exploration at the end makes this precise.
Explicit and recursive descriptions
An explicit formula such as specifies the value directly from the index. A recurrence such as , together with , defines the same sequence by relating neighboring terms. Both the recurrence and its starting data are needed.
The equation alone does not specify a unique sequence. Supplying gives , as proved in Mathematical Induction. Different initial values generally give different solutions. For more involved recursive objects and termination arguments, continue with Number Systems, Algorithms, and Recursion.
The term “closed form” is relative to which operations and functions are admitted. A finite sum is not an infinite expression merely because it has a variable upper bound. It may require more arithmetic as the bound increases, but that is a computational issue distinct from whether it has finitely many terms.
Arithmetic sequences
An arithmetic sequence satisfies for a fixed constant . With initial term , its explicit formula is for .
The formula follows by induction: it holds at , and adding changes into . The word is arithmetic, referring to a constant difference, not “algorithmic,” which would concern computational procedures.
Let be the sum of the first terms, from through . Writing the sum in forward and reverse order pairs each term with one whose index sums to . Every pair has value , so
There are such pairs in the sum of the two copies; dividing by corrects the duplication. At , the expression is zero, agreeing with the empty sum. If terms instead start at , the corresponding formula uses and the last index .
Geometric sequences
A geometric sequence satisfies for fixed , with explicit form . The zeroth power in this formula is the constant , including the polynomial convention when .
The recurrence definition remains meaningful when some terms are zero; defining the sequence solely through ratios would exclude those cases. For the first terms, subtract from to cancel the interior terms:
Consequently,
The condition comes from division, not from the definition of a geometric sequence. The finite identity holds even for . Passing to an infinite sum is a separate limit question; the familiar limit applies when . Convergence is developed in Infinite Series.
Terms, partial sums, and infinite series
For a sequence starting at zero, define
The original sequence lists terms; lists cumulative sums. The relation recovers a term. An infinite series is studied through whether its sequence of partial sums converges; merely writing infinitely many terms does not assign a finite sum.
For example, gives , so the partial sums do not approach a finite real number. In contrast, has , which approaches . These examples distinguish a perfectly well-defined infinite sequence from convergence of its series.
Indicator sequences connect sets to sums
Let a finite universe be listed without repetition as . A subset has indicator sequence
The subset itself has no order, but its indicator sequence depends on the chosen listing. For in this order, the prime subset has sequence , while the multiples-of-three subset has . Note that is not prime.
For each index,
and . Also, exactly when at every index. Counting becomes
Each formula can be checked on the four possible pairs of indicator values. This is a concrete connection between sets, Boolean values, and finite sums.
Exercises
A sequence has for . Find and the sum of its first five terms. How many terms occur from index through index ?
Show solution
. The first five terms are , with sum . Indices through include terms, whereas the first terms end at index .
For , find the sum of the first three terms for . Check against the finite geometric-sum formula.
Show solution
The respective terms are , , and , with sums . Use the separate branch for the first case. The other two follow from . No infinite-series convergence assumption is involved.
Here terms start at . Suppose and, for every ,
Find . When is the entire sequence arithmetic?
Show solution
The first term is . For ,
From onward the common difference is , but . Thus the entire sequence is arithmetic exactly when . The given formula was stated only for , so substituting into it and assuming would be invalid: the actual empty sum is zero.
For the ordered listing , let and . Find , , and their sizes.
Show solution
The intersection indicator is , so has size one. The union indicator is , giving of size three. Summing each indicator counts its selected elements.
Explain why for , together with , does not determine a unique sequence.
Show solution
Choosing gives , while choosing gives the constant sequence . Both satisfy the stated recurrence and the one given initial value. A second starting value is needed to distinguish them.
Compare the real sequences and , both indexed by . State the cardinalities of their index sets, codomains, and images.
Show solution
Both index sets are countably infinite, and both declared codomains are uncountable. The image of is the finite set ; the image of is , countably infinite. Neither is an exhaustive listing of its codomain.
Why is the set of all finite binary strings countable, while the set of all infinite binary sequences is uncountable? Include the empty string in the finite case.
Discussion guide
List finite strings by length and then lexicographically within each length: the empty string, , , , , , , and so on. There are strings of each length , so any fixed string appears after finitely many earlier strings. This gives a countably infinite list.
For infinite sequences, suppose a list contains rows , where . Define . The sequence differs from row at position , so no row equals . Every attempted list fails. This is the indicator-sequence version of the power-set diagonal argument from Naive Set Theory: each subset of corresponds to one infinite binary membership sequence.
Comments