"Sequential" redirects here. For the manual transmission, see Sequential manual transmission. For other uses, see Sequence (disambiguation).
In mathematics, a sequence is an ordered collection of objects, in which repetitions are allowed. Like a set, it contains members (also called elements, or terms). The number of elements (possibly infinite) is called the length of the sequence. Unlike a set, order matters, and exactly the same elements can appear multiple times at different positions in the sequence. Formally, a sequence can be defined as a function whose domain is a countable totally ordered set, such as the natural numbers.
For example, (M, A, R, Y) is a sequence of letters with the letter 'M' first and 'Y' last. This sequence differs from (A, R, M, Y). Also, the sequence (1, 1, 2, 3, 5, 8), which contains the number 1 at two different positions, is a valid sequence. Sequences can be finite, as in these examples, or infinite, such as the sequence of all even positive integers (2, 4, 6,...). In computing and computer science, finite sequences are sometimes called as strings, words or lists, the different names commonly corresponding to different ways to represent them into computer memory; infinite sequences are also called streams. The empty sequence ( ) is included in most notions of sequence, but may be excluded depending on the context.
An infinite sequence of real numbers (in blue). This sequence is neither increasing, nor decreasing, nor convergent, nor Cauchy. It is, however, bounded.
Contents
 1 Examples and notation
 1.1 Important examples
 1.2 Indexing
 1.3 Specifying a sequence by recursion
 2 Formal definition and basic properties
 2.1 Formal definition
 2.2 Finite and infinite
 2.3 Increasing and decreasing
 2.4 Bounded
 2.5 Other types of sequences
 3 Limits and convergence
 3.1 Definition of convergence
 3.2 Applications and important results
 3.3 Cauchy sequences
 4 Series
 5 Use in other fields of mathematics
 5.1 Topology
 5.2 Analysis
 5.3 Linear algebra
 5.4 Abstract algebra
 5.4.1 Free monoid
 5.4.2 Exact sequences
 5.4.3 Spectal sequences
 5.5 Set theory
 5.6 Computing
 5.7 Theoretical computer science
 6 Types
 7 Related concepts
 8 Operations
 9 See also
 10 References
 11 External links
Examples and notation
A sequence can be thought of as a list of elements with a particular order. Sequences are useful in a number of mathematical disciplines for studying functions, spaces, and other mathematical structures using the convergence properties of sequences. In particular, sequences are the basis for series, which are important in differential equations and analysis. Sequences are also of interest in their own right and can be studied as patterns or puzzles, such as in the study of prime numbers.
There are a number of ways to denote a sequence, some of which are more useful for specific types of sequences. One way to specify a sequence is to list the elements. For example, the first four odd numbers form the sequence (1,3,5,7). This notation can be used for infinite sequences as well. For instance, the infinite sequence of positive odd integers can be written (1,3,5,7,...). Listing is most useful for infinite sequences with a pattern that can be easily discerned from the first few elements. Other ways to denote a sequence are discussed after the examples.
Important examples
A tiling with squares whose sides are successive Fibonacci numbers in length.
There are many important integer sequences. The prime numbers are the natural numbers bigger than 1, that have no divisors but 1 and themselves. Taking these in their natural order gives the sequence (2,3,5,7,11,13,17,...). The study of prime numbers has important applications for mathematics and specifically number theory.
The Fibonacci numbers are the integer sequence whose elements are the sum of the previous two elements. The first two elements are either 0 and 1 or 1 and 1 so that the sequence is (0,1,1,2,3,5,8,13,21,34,...).
Other interesting sequences include the ban numbers, whose spellings do not contain a certain letter of the alphabet. For instance, the eban numbers (do not contain 'e') form the sequence (2,4,6,30,32,34,36,40,42,...). Another sequence based on the English spelling of the letters is the one based on their number of letters (3,3,5,4,4,3,5,5,4,3,6,6,8,...).
For a list of important examples of integers sequences see Online Encyclopedia of Integer Sequences.
Other important examples of sequences include ones made up of rational numbers, real numbers, and complex numbers. The sequence (.9,.99,.999,.9999,...) approaches the number 1. In fact, every real number can be written as the limit of a sequence of rational numbers. For instance, for a sequence (3,3.1,3.14,3.141,3.1415,...) the limit of a sequence can be written as π. It is this fact that allows us to write any real number as the limit of a sequence of decimals. The decimal for π, however, does not have any pattern like the one for the sequence (0.9,0.99,...).
Indexing
Other notations can be useful for sequences whose pattern cannot be easily guessed, or for sequences that do not have a pattern such as the digits of π. This section focuses on the notations used for sequences that are a map from a subset of the natural numbers. For generalizations to other countable index sets see the following section and below.
The terms of a sequence are commonly denoted by a single variable, say a_{n}, where the index n indicates the nth element of the sequence.
Indexing notation is used to refer to a sequence in the abstract. It is also a natural notation for sequences whose elements are related to the index n (the element's position) in a simple way. For instance, the sequence of the first 10 square numbers could be written as
This represents the sequence (1,4,9,...100). This notation is often simplified further as
Here the subscript {k=1} and superscript 10 together tell us that the elements of this sequence are the a_{k} such that k = 1, 2, ..., 10.
Sequences can be indexed beginning and ending from any integer. The infinity symbol ∞ is often used as the superscript to indicate the sequence including all integer kvalues starting with a certain one. The sequence of all positive squares is then denoted
In cases where the set of indexing numbers is understood, such as in analysis, the subscripts and superscripts are often left off. That is, one simply writes a_{k} for an arbitrary sequence. In analysis, k would be understood to run from 1 to ∞. However, sequences are often indexed starting from zero, as in
In some cases the elements of the sequence are related naturally to a sequence of integers whose pattern can be easily inferred. In these cases the index set may be implied by a listing of the first few abstract elements. For instance, the sequence of squares of odd numbers could be denoted in any of the following ways.
Moreover, the subscripts and superscripts could have been left off in the third, fourth, and fifth notations if the indexing set was understood to be the natural numbers.
Finally, sequences can more generally be denoted by writing a set inclusion in the subscript, such as in
The set of values that the index can take on is called the index set. In general, the ordering of the elements a_{k} is specified by the order of the elements in the indexing set. When N is the index set, the element a_{k}_{+1} comes after the element a_{k} since in N, the element (k+1) comes directly after the element k.
Specifying a sequence by recursion
Sequences whose elements are related to the previous elements in a straightforward way are often specified using recursion. This is in contrast to the specification of sequence elements in terms of their position.
To specify a sequence by recursion requires a rule to construct each consecutive element in terms of the ones before it. In addition, enough initial elements must be specified so that new elements of the sequence can be specified by the rule. The principle of mathematical induction can be used to prove that a sequence is welldefined, which is to say that that every element of the sequence is specified at least once and has a single, unambiguous value. Induction can also be used to prove properties about a sequence, especially for sequences whose most natural specification is by recursion.
The Fibonacci sequence can be defined using a recursive rule along with two initial elements. The rule is that each element is the sum of the previous two elements, and the first two elements are 0 and 1.
 , with a_{0} = 0 and a_{1} = 1.
The first ten terms of this sequence are 0,1,1,2,3,5,8,13,21, and 34. A more complicated example of a sequence that is defined recursively is Recaman's sequence, considered at the beginning of this section. We can define Recaman's sequence by
 a_{0} = 0 and a_{n} = a_{n}_{−1}−n if the result is positive and not already in the list. Otherwise, a_{n} = a_{n}_{−1}+n .
Not all sequences can be specified by a rule in the form of an equation, recursive or not, and some can be quite complicated. For example, the sequence of prime numbers is the set of prime numbers in their natural order. This gives the sequence (2,3,5,7,11,13,17,...).
One can also notice that the next element of a sequence is a function of the element before, and so we can write the next element as :
This functional notation can prove useful when one wants to prove the global monotony of the sequence.
Formal definition and basic properties
There are many different notions of sequences in mathematics, some of which (e.g., exact sequence) are not covered by the definitions and notations introduced below.
Formal definition
A sequence is usually defined as a function whose domain is a countable totally ordered set, although in many disciplines the domain is restricted, such as to the natural numbers. In real analysis a sequence is a function from a subset of the natural numbers to the real numbers.^{[1]} In other words, a sequence is a map f(n) : N → R. To recover our earlier notation we might identify a_{n} = f(n) for all n or just write a_{n} : N → R.
In complex analysis, sequences are defined as maps from the natural numbers to the complex numbers (C).^{[2]} In topology, sequences are often defined as functions from a subset of the natural numbers to a topological space.^{[3]} Sequences are an important concept for studying functions and, in topology, topological spaces. An important generalization of sequences, called a net, is to functions from a (possibly uncountable) directed set to a topological space.
Finite and infinite
The length of a sequence is defined as the number of terms in the sequence.
A sequence of a finite length n is also called an ntuple. Finite sequences include the empty sequence ( ) that has no elements.
Normally, the term infinite sequence refers to a sequence which is infinite in one direction, and finite in the other—the sequence has a first element, but no final element (a singly infinite sequence). A sequence that is infinite in both directions—it has neither a first nor a final element—is called a biinfinite sequence, twoway infinite sequence, or doubly infinite sequence. For instance, a function from all integers into a set, such as the sequence of all even integers ( …, −4, −2, 0, 2, 4, 6, 8… ), is biinfinite. This sequence could be denoted . Formally, a biinfinite sequence can be defined as a mapping from Z.
One can interpret singly infinite sequences as elements of the semigroup ring of the natural numbers R[N], and doubly infinite sequences as elements of the group ring of the integers R[Z]. This perspective is used in the Cauchy product of sequences.
Increasing and decreasing
A sequence is said to be monotonically increasing if each term is greater than or equal to the one before it. For a sequence this can be written as a_{n} ≤ a_{n+1} for all n ∈ N. If each consecutive term is strictly greater than (>) the previous term then the sequence is called strictly monotonically increasing. A sequence is monotonically decreasing if each consecutive term is less than or equal to the previous one, and strictly monotonically decreasing if each is strictly less than the previous. If a sequence is either increasing or decreasing it is called a monotone sequence. This is a special case of the more general notion of a monotonic function.
The terms nondecreasing and nonincreasing are often used in place of increasing and decreasing in order to avoid any possible confusion with strictly increasing and strictly decreasing, respectively.
Bounded
If the sequence of real numbers (a_{n}) is such that all the terms, after a certain one, are less than some real number M, then the sequence is said to be bounded from above. In less words, this means a_{n} ≤ M for all n greater than N for some pair M and N. Any such M is called an upper bound. Likewise, if, for some real m, a_{n} ≥ m for all n greater than some N, then the sequence is bounded from below and any such m is called a lower bound. If a sequence is both bounded from above and bounded from below then the sequence is said to be bounded.
Other types of sequences
A subsequence of a given sequence is a sequence formed from the given sequence by deleting some of the elements without disturbing the relative positions of the remaining elements. For instance, the sequence of positive even integers (2,4,6,...) is a subsequence of the positive integers (1,2,3,...). The positions of some elements change when other elements are deleted. However, the relative positions are preserved.
Some other types of sequences that are easy to define include:
 An integer sequence is a sequence whose terms are integers.
 A polynomial sequence is a sequence whose terms are polynomials.
 A positive integer sequence is sometimes called multiplicative if a_{nm} = a_{n} a_{m} for all pairs n,m such that n and m are coprime.^{[4]} In other instances, sequences are often called multiplicative if a_{n} = na_{1} for all n. Moreover, the multiplicative Fibonacci sequence satisfies the recursion relation a_{n} = a_{n−1} a_{n−2}.
Limits and convergence
Main article: Limit of a sequence
The plot of a convergent sequence (
a_{n}) is shown in blue. Visually we can see that the sequence is converging to the limit zero as
n increases.
One of the most important properties of a sequence is convergence. Informally, a sequence converges if it has a limit. Continuing informally, a (singly infinite) sequence has a limit if it approaches some value L, called the limit, as n becomes very large. That is, for an abstract sequence (a_{n}) (with n running from 1 to infinity understood) the value of a_{n} approaches L as n → ∞, denoted
More precisely, the sequence converges if there exists a limit L such that the remaining a_{n}'s are arbitrarily close to L for some n large enough.
If a sequence converges to some limit, then it is convergent; otherwise it is divergent.
If a_{n} gets arbitrarily large as n → ∞ we write
In this case the sequence (a_{n}) diverges, or that it converges to infinity.
If a_{n} becomes arbitrarily "small" negative numbers (large in magnitude) as n → ∞ we write
and say that the sequence diverges or converges to minus infinity.
Definition of convergence
For sequences that can be written as with a_{n} ∈ R we can write (a_{n}) with the indexing set understood as N. These sequences are most common in real analysis. The generalizations to other types of sequences are considered in the following section and the main page Limit of a sequence.
Let (a_{n}) be a sequence. In words, the sequence (a_{n}) is said to converge if there exists a number L such that no matter how close we want the a_{n} to be to L (say εclose where ε > 0), we can find a natural number N such that all terms (a_{N+1}, a_{N+2}, ...) are further closer to L (within ε of L). ^{[1]} This is often written more compactly using symbols. For instance,
 for all ε > 0, there exists a natural number N such that L−ε < a_{n} < L+ε for all n ≥ N.
In even more compact notation
The difference in the definitions of convergence for (onesided) sequences in complex analysis and metric spaces is that the absolute value a_{n} − L is interpreted as the distance in the complex plane (), and the distance under the appropriate metric, respectively.
Applications and important results
Important results for convergence and limits of (onesided) sequences of real numbers include the following. These equalities are all true at least when both sides exist. For a discussion of when the existence of the limit on one side implies the existence of the other see a real analysis text such as can be found in the references.^{[1]}^{[5]}
 The limit of a sequence is unique.
 provided
 If a_{n} ≤ b_{n} for all n greater than some N, then .
 (Squeeze Theorem) If for all n > N, and , then .
 If a sequence is bounded and monotonic then it is convergent.
 A sequence is convergent if and only if every subsequence is convergent.
Cauchy sequences
Main article: Cauchy sequence
The plot of a Cauchy sequence (
X_{n}), shown in blue, as
X_{n} versus
n. Visually, we see that the sequence appears to be converging to the limit zero as the terms in the sequence become closer together as
n increases. In the real numbers every Cauchy sequence converges to some limit.
A Cauchy sequence is a sequence whose terms become arbitrarily close together as n gets very large. The notion of a Cauchy sequence is important in the study of sequences in metric spaces, and, in particular, in real analysis. One particularly important result in real analysis is Cauchy characterization of convergence for sequences:
 In the real numbers, a sequence is convergent if and only if it is Cauchy.
In contrast, in the rational numbers, e.g. the sequence defined by x_{1} = 1 and x_{n+1} = x_{n} + 2/x_{n}/2 is Cauchy, but has no rational limit, cf. here.
Series
Main article: Series (mathematics)
A series is, informally speaking, the sum of the terms of a sequence. That is, adding the first N terms of a (onesided) sequence forms the Nth term of another sequence, called a series. Thus the N series of the sequence (a_{n}) results in another sequence (S_{N}) given by:
We can also write the nth term of the series as
Then the concepts used to talk about sequences, such as convergence, carry over to series (the sequence of partial sums) and the properties can be characterized as properties of the underlying sequences (such as (a_{n}) in the last example). The limit, if it exists, of an infinite series (the series created from an infinite sequence) is written as
Use in other fields of mathematics
Topology
Sequence play an important role in topology, especially in the study of metric spaces. For instance:
 A metric space is compact exactly when it is sequentially compact.
 A function from a metric space to another metric space is continuous exactly when it takes convergent sequences to convergent sequences.
 A metric space is a connected space if, whenever the space is partitioned into two sets, one of the two sets contains a sequence converging to a point in the other set.
 A topological space is separable exactly when there is a dense sequence of points.
Sequences can be generalized to nets or filters. These generalizations allow one to extend some of the above theorems to spaces without metrics.
Product topology
A product space of a sequence of topological spaces is the cartesian product of the spaces equipped with a natural topology called the product topology.
More formally, given a sequence of spaces , define X such that
is the set of sequences where each is an element of . Let the canonical projections be written as p_{i} : X → X_{i}. Then the product topology on X is defined to be the coarsest topology (i.e. the topology with the fewest open sets) for which all the projections p_{i} are continuous. The product topology is sometimes called the Tychonoff topology.
Analysis
In analysis, when talking about sequences, one will generally consider sequences of the form
which is to say, infinite sequences of elements indexed by natural numbers.
It may be convenient to have the sequence start with an index different from 1 or 0. For example, the sequence defined by x_{n} = 1/log(n) would be defined only for n ≥ 2. When talking about such infinite sequences, it is usually sufficient (and does not change much for most considerations) to assume that the members of the sequence are defined at least for all indices large enough, that is, greater than some given N.
The most elementary type of sequences are numerical ones, that is, sequences of real or complex numbers. This type can be generalized to sequences of elements of some vector space. In analysis, the vector spaces considered are often function spaces. Even more generally, one can study sequences with elements in some topological space.
Sequence spaces
Main article: Sequence space
A sequence space is a vector space whose elements are infinite sequences of real or complex numbers. Equivalently, it is a function space whose elements are functions from the natural numbers to the field K of real or complex numbers. The set of all such functions is naturally identified with the set of all possible infinite sequences with elements in K, and can be turned into a vector space under the operations of pointwise addition of functions and pointwise scalar multiplication. All sequence spaces are linear subspaces of this space. Sequence spaces are typically equipped with a norm, or at least the structure of a topological vector space.
The most important sequences spaces in analysis are the ℓ^{p} spaces, consisting of the ppower summable sequences, with the pnorm. These are special cases of L^{p} spaces for the counting measure on the set of natural numbers. Other important classes of sequences like convergent sequences or null sequences form sequence spaces, respectively denoted c and c_{0}, with the sup norm. Any sequence space can also be equipped with the topology of pointwise convergence, under which it becomes a special kind of Fréchet space called FKspace.
Linear algebra
Sequences over a field may also be viewed as vectors in a vector space. Specifically, the set of Fvalued sequences (where F is a field) is a function space (in fact, a product space) of Fvalued functions over the set of natural numbers.
Abstract algebra
Abstract algebra employs several types of sequences, including sequences of mathematical objects such as groups or rings.
Free monoid
Main article: Free monoid
If A is a set, the free monoid over A (denoted A^{*}, also called Kleene star of A) is a monoid containing all the finite sequences (or strings) of zero or more elements of A, with the binary operation of concatenation. The free semigroup A^{+} is the subsemigroup of A^{*} containing all elements except the empty sequence.
Exact sequences
Main article: Exact sequence
In the context of group theory, a sequence
of groups and group homomorphisms is called exact if the image (or range) of each homomorphism is equal to the kernel of the next:
Note that the sequence of groups and homomorphisms may be either finite or infinite.
A similar definition can be made for certain other algebraic structures. For example, one could have an exact sequence of vector spaces and linear maps, or of modules and module homomorphisms.
Spectal sequences
Main article: Spectral sequence
In homological algebra and algebraic topology, a spectral sequence is a means of computing homology groups by taking successive approximations. Spectral sequences are a generalization of exact sequences, and since their introduction by Jean Leray (1946), they have become an important research tool, particularly in homotopy theory.
Set theory
An ordinalindexed sequence is a generalization of a sequence. If α is a limit ordinal and X is a set, an αindexed sequence of elements of X is a function from α to X. In this terminology an ωindexed sequence is an ordinary sequence.
Computing
Automata or finite state machines can typically be thought of as directed graphs, with edges labeled using some specific alphabet, Σ. Most familiar types of automata transition from state to state by reading input letters from Σ, following edges with matching labels; the ordered input for such an automaton forms a sequence called a word (or input word). The sequence of states encountered by the automaton when processing a word is called a run. A nondeterministic automaton may have unlabeled or duplicate outedges for any state, giving more than one successor for some input letter. This is typically thought of as producing multiple possible runs for a given word, each being a sequence of single states, rather than producing a single run that is a sequence of sets of states; however, 'run' is occasionally used to mean the latter.
Theoretical computer science
Infinite sequences of digits (or characters) drawn from a finite alphabet are of particular interest in theoretical computer science. They are often referred to simply as sequences or streams, as opposed to finite strings. Infinite binary sequences, for instance, are infinite sequences of bits (characters drawn from the alphabet {0, 1}). The set C = {0, 1}^{∞} of all infinite, binary sequences is sometimes called the Cantor space.
An infinite binary sequence can represent a formal language (a set of strings) by setting the n th bit of the sequence to 1 if and only if the n th string (in shortlex order) is in the language. Therefore, the study of complexity classes, which are sets of languages, may be regarded as studying sets of infinite sequences.
An infinite sequence drawn from the alphabet {0, 1, ..., b − 1} may also represent a real number expressed in the baseb positional number system. This equivalence is often used to bring the techniques of real analysis to bear on complexity classes.
In particular, the term sequence space usually refers to a linear subspace of the set of all possible infinite sequences with elements in C.
Types
 ±1sequence
 Arithmetic progression
 Cauchy sequence
 Farey sequence
 Fibonacci sequence
 Geometric progression
 Lookandsay sequence
 Thue–Morse sequence
Related concepts
 List (computing)
 Ordinalindexed sequence
 Recursion (computer science)
 Tuple
 Set theory
Operations
 Cauchy product
 Limit of a sequence
See also
 Enumeration
 Net (topology) (a generalization of sequences)
 OnLine Encyclopedia of Integer Sequences
 Permutation
 Recurrence relation
 Sequence space
 Set (mathematics)
References
 ^ ^{a} ^{b} ^{c} Gaughan, Edward. "1.1 Sequences and Convergence". Introduction to Analysis. AMS (2009). ISBN 0821847872.
 ^ Edward B. Saff & Arthur David Snider (2003). "Chapter 2.1". Fundamentals of Complex Analysis. ISBN 0139078746.
 ^ James R. Munkres. "Chapters 1&2". Topology. ISBN 0131816292.
 ^ Lando, Sergei K. "7.4 Multiplicative sequences". Lectures on generating functions. AMS. ISBN 0821834819.
 ^ Dawikins, Paul. "Series and Sequences". Paul's Online Math Notes/Calc II (notes). Retrieved 18 December 2012.
External links
 The dictionary definition of sequence at Wiktionary
 Hazewinkel, Michiel, ed. (2001), "Sequence", Encyclopedia of Mathematics, Springer, ISBN 9781556080104
 The OnLine Encyclopedia of Integer Sequences
 Journal of Integer Sequences (free)
 Sequence at PlanetMath.org.
Series and sequence


Arithmetic
sequence 
Divergent series

 1 + 1 + 1 + 1 + ⋯
 1 + 2 + 3 + 4 + ⋯
 Infinite arithmetic series




Geometric
sequence 
Convergent series

 1/2 − 1/4 + 1/8 − 1/16 + ⋯
 1/2 + 1/4 + 1/8 + 1/16 + ⋯
 1/4 + 1/16 + 1/64 + 1/256 + ⋯


Divergent
geometric series

 1 + 1 + 1 + 1 + ⋯
 1 + 2 + 4 + 8 + ⋯
 1 − 2 + 4 − 8 + ⋯
 1 − 1 + 1 − 1 + ⋯ (Grandi's series)
 Power of two
 Power of 10



Hypergeometric
series 
 Generalized hypergeometric series
 Hypergeometric function of a matrix argument
 Lauricella hypergeometric series
 Modular hypergeometric series
 Riemann's differential equation
 Theta hypergeometric series


Integer
sequence 
 Complete
 Cubic number
 Factorial
 Fibonacci numbers
 Figurate number
 Heptagonal number
 Hexagonal number
 List
 Lucas number
 Pell number
 Pentagonal number
 Polygonal number
 Square number
 Triangular number


Other
sequence 
Divergent series

 1 − 2 + 3 − 4 + ⋯
 1 − 1 + 2 − 6 + 24 − 120 + ⋯
 1 + 1/2 + 1/3 + 1/4 + ⋯


