Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Sequence
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{short description|Finite or infinite ordered list of elements}} {{Redirect|Sequential}} {{other uses}} [[Image:Cauchy sequence illustration2.svg|right|thumb|350px|A part of an infinite sequence of [[real number]]s (in blue), indexed by a natural number <math display="inline">n</math>. This sequence is neither increasing, decreasing, convergent, nor [[Cauchy sequence|Cauchy]]. It is, however, bounded (by red dashed lines).]] In [[mathematics]], a '''sequence''' is an enumerated collection of [[mathematical object|objects]] in which repetitions are allowed and [[order theory|order]] matters. Like a [[Set (mathematics)|set]], it contains [[Element (mathematics)|members]] (also called ''elements'', or ''terms''). The number of elements (possibly [[infinite number|infinite]]) is called the ''length'' of the sequence. Unlike a set, the same elements can appear multiple times at different positions in a sequence, and unlike a set, the order does matter. Formally, a sequence can be defined as a [[function (mathematics)|function]] from [[natural number]]s (the positions of elements in the sequence) to the elements at each position. The notion of a sequence can be generalized to an [[indexed family]], defined as a function from an ''arbitrary'' index set. 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 set|finite]]'', as in these examples, or ''[[Infinite set|infinite]]'', such as the sequence of all [[even and odd numbers|even]] [[positive integer]]s (2, 4, 6, ...). The position of an element in a sequence is its ''rank'' or ''index''; it is the natural number for which the element is the image. The first element has index 0 or 1, depending on the context or a specific convention. In [[mathematical analysis]], a sequence is often denoted by letters in the form of <math>a_n</math>, <math>b_n</math> and <math>c_n</math>, where the subscript ''n'' refers to the ''n''th element of the sequence; for example, the ''n''th element of the [[Fibonacci sequence]] ''<math>F</math>'' is generally denoted as ''<math>F_n</math>''. In [[computing]] and [[computer science]], finite sequences are usually called ''[[string (computer science)|strings]]'', ''[[word (formal language theory)|words]]'' or ''[[list (computer science)|lists]],'' with the specific technical term chosen depending on the type of object the sequence enumerates and the different ways to represent the sequence in [[computer memory]]. Infinite sequences are called ''[[stream (computing)|streams]]''. The empty sequence ( ) is included in most notions of sequence. It may be excluded depending on the context. ==Examples and notation== A sequence can be thought of as a list of elements with a particular order.<ref name=":0">{{Cite web|title=Sequences|url=https://www.mathsisfun.com/algebra/sequences-series.html|access-date=2020-08-17|website=www.mathsisfun.com|archive-date=2020-08-12|archive-url=https://web.archive.org/web/20200812220432/https://mathsisfun.com/algebra/sequences-series.html|url-status=live}}</ref><ref>{{Cite web|last=Weisstein|first=Eric W.|title=Sequence|url=https://mathworld.wolfram.com/Sequence.html|access-date=2020-08-17|website=mathworld.wolfram.com|language=en|archive-date=2020-07-25|archive-url=https://web.archive.org/web/20200725104417/https://mathworld.wolfram.com/Sequence.html|url-status=live}}</ref> Sequences are useful in a number of mathematical disciplines for studying [[Function (mathematics)|functions]], [[Space (mathematics)|spaces]], and other mathematical structures using the [[#Limits and convergence|convergence]] properties of sequences. In particular, sequences are the basis for [[series (mathematics)|series]], which are important in [[differential equations]] and [[analysis (mathematics)|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 number]]s. 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 all its elements. For example, the first four odd numbers form the sequence (1, 3, 5, 7). This notation is used for infinite sequences as well. For instance, the infinite sequence of positive odd integers is written as (1, 3, 5, 7, ...). Because notating sequences with [[ellipsis]] leads to ambiguity, listing is most useful for customary infinite sequences which can be easily recognized from their first few elements. Other ways of denoting a sequence are discussed after the examples. ===Examples=== [[File:Fibonacci blocks.svg|thumb|A [[Tessellation|tiling]] with squares whose sides are successive Fibonacci numbers in length.]] The [[prime number]]s are the [[natural numbers]] greater than 1 that have no [[divisor]]s but 1 and themselves. Taking these in their natural order gives the sequence (2, 3, 5, 7, 11, 13, 17, ...). The prime numbers are widely used in [[mathematics]], particularly in [[number theory]] where many results related to them exist. The [[Fibonacci numbers]] comprise the integer sequence in which each element is 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, ...).<ref name=":0" /> Other examples of sequences include those made up of [[rational numbers]], [[real number]]s and [[complex numbers]]. The sequence (.9, .99, .999, .9999, ...), for instance, approaches the number 1. In fact, every real number can be written as the [[limit of a sequence|limit]] of a sequence of rational numbers (e.g. via its [[decimal expansion]], also see ''[[completeness of the real numbers]]''). As another example, [[pi|{{pi}}]] is the limit of the sequence (3, 3.1, 3.14, 3.141, 3.1415, ...), which is increasing. A related sequence is the sequence of decimal digits of {{pi}}, that is, (3, 1, 4, 1, 5, 9, ...). Unlike the preceding sequence, this sequence does not have any pattern that is easily discernible by inspection. Other examples are sequences of [[function (mathematics)|function]]s, whose elements are functions instead of numbers. The [[On-Line Encyclopedia of Integer Sequences]] comprises a large list of examples of integer sequences.<ref>[https://oeis.org/wiki/Index_to_OEIS Index to OEIS] {{Webarchive|url=https://web.archive.org/web/20221018125328/https://oeis.org/wiki/Index_to_OEIS |date=2022-10-18 }}, On-Line Encyclopedia of Integer Sequences, 2020-12-03</ref> ===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 [[pi|{{pi}}]]. One such notation is to write down a general formula for computing the ''n''th term as a function of ''n'', enclose it in parentheses, and include a subscript indicating the set of values that ''n'' can take. For example, in this notation the sequence of even numbers could be written as <math display=inline>(2n)_{n\in\mathbb N}</math>. The sequence of squares could be written as <math display=inline>(n^2)_{n\in\mathbb N}</math>. The variable ''n'' is called an [[Indexed family|index]], and the set of values that it can take is called the [[index set]]. It is often useful to combine this notation with the technique of treating the elements of a sequence as individual variables. This yields expressions like <math display=inline>(a_n)_{n\in\mathbb N}</math>, which denotes a sequence whose ''n''th element is given by the variable <math>a_n</math>. For example: :<math>\begin{align} a_1 &= 1\text{st element of }(a_n)_{n\in\mathbb N} \\ a_2 &= 2\text{nd element } \\ a_3 &= 3\text{rd element } \\ &\;\;\vdots \\ a_{n-1} &= (n-1)\text{th element} \\ a_n &= n\text{th element} \\ a_{n+1} &= (n+1)\text{th element} \\ &\;\; \vdots \end{align}</math> One can consider multiple sequences at the same time by using different variables; e.g. <math display=inline>(b_n)_{n\in\mathbb N}</math> could be a different sequence than <math display=inline>(a_n)_{n\in\mathbb N}</math>. One can even consider a sequence of sequences: <math display=inline>((a_{m, n})_{n\in\mathbb N})_{m\in\mathbb N}</math> denotes a sequence whose ''m''th term is the sequence <math display=inline>(a_{m, n})_{n\in\mathbb N}</math>. An alternative to writing the domain of a sequence in the subscript is to indicate the range of values that the index can take by listing its highest and lowest legal values. For example, the notation <math display=inline>(k^2){\vphantom)}_{k = 1}^{10}</math> denotes the ten-term sequence of squares <math>(1, 4, 9, \ldots, 100)</math>. The limits <math>\infty</math> and <math>-\infty</math> are allowed, but they do not represent valid values for the index, only the [[supremum]] or [[infimum]] of such values, respectively. For example, the sequence <math display=inline>{(a_n)}_{n = 1}^\infty</math> is the same as the sequence <math display=inline>(a_n)_{n\in\mathbb N}</math>, and does not contain an additional term "at infinity". The sequence <math display=inline>{(a_n)}_{n = -\infty}^\infty</math> is a '''bi-infinite sequence''', and can also be written as <math display=inline>(\ldots, a_{-1}, a_0, a_1, a_2, \ldots)</math>. In cases where the set of indexing numbers is understood, the subscripts and superscripts are often left off. That is, one simply writes <math display=inline>(a_k)</math> for an arbitrary sequence. Often, the index ''k'' is understood to run from 1 to ∞. However, sequences are frequently indexed starting from zero, as in :<math>{(a_k)}_{k=0}^\infty = ( a_0, a_1, a_2, \ldots ).</math> 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 number]]s could be denoted in any of the following ways. * <math>(1, 9, 25, \ldots)</math> * <math>(a_1, a_3, a_5, \ldots), \qquad a_k = k^2</math> * <math>{(a_{2k-1})}_{k=1}^\infty, \qquad a_k = k^2</math> * <math>{(a_{k})}_{k=1}^\infty, \qquad a_k = (2k-1)^2</math> * <math>\bigl((2k-1)^2\bigr)_{k=1}^\infty</math> 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]]. In the second and third bullets, there is a well-defined sequence <math display=inline>{(a_{k})}_{k=1}^\infty</math>, but it is not the same as the sequence denoted by the expression. ===Defining a sequence by recursion=== {{main|Recurrence relation}} Sequences whose elements are related to the previous elements in a straightforward way are often defined using [[Recursive definition|recursion]]. This is in contrast to the definition of sequences of elements as functions of their positions. To define a sequence by recursion, one needs a rule, called ''recurrence relation'' to construct each element in terms of the ones before it. In addition, enough initial elements must be provided so that all subsequent elements of the sequence can be computed by successive applications of the recurrence relation. The [[Fibonacci sequence]] is a simple classical example, defined by the recurrence relation :<math>a_n = a_{n-1} + a_{n-2},</math> with initial terms <math>a_0 = 0</math> and <math>a_1 = 1</math>. From this, a simple computation shows that the first ten terms of this sequence are 0, 1, 1, 2, 3, 5, 8, 13, 21, and 34. A complicated example of a sequence defined by a recurrence relation is [[Recamán's sequence]],<ref>{{cite OEIS|1=A005132|2=Recamán's sequence|access-date=26 January 2018}}</ref> defined by the recurrence relation :<math>\begin{cases}a_n = a_{n-1} - n,\quad \text{if the result is positive and not already in the previous terms,}\\a_n = a_{n-1} + n, \quad\text{otherwise}, \end{cases}</math> with initial term <math>a_0 = 0.</math> A ''linear recurrence with constant coefficients'' is a recurrence relation of the form :<math>a_n=c_0 +c_1a_{n-1}+\dots+c_k a_{n-k},</math> where <math>c_0,\dots, c_k</math> are [[constant (mathematics)|constants]]. There is a general method for expressing the general term <math>a_n</math> of such a sequence as a function of {{mvar|n}}; see [[Linear recurrence]]. In the case of the Fibonacci sequence, one has <math>c_0=0, c_1=c_2=1,</math> and the resulting function of {{mvar|n}} is given by [[Binet's formula]]. A [[holonomic sequence]] is a sequence defined by a recurrence relation of the form :<math>a_n=c_1a_{n-1}+\dots+c_k a_{n-k},</math> where <math>c_1,\dots, c_k</math> are [[polynomial]]s in {{mvar|n}}. For most holonomic sequences, there is no explicit formula for expressing <math>a_n</math> as a function of {{mvar|n}}. Nevertheless, holonomic sequences play an important role in various areas of mathematics. For example, many [[special functions]] have a [[Taylor series]] whose sequence of coefficients is holonomic. The use of the recurrence relation allows a fast computation of values of such special functions. Not all sequences can be specified by a recurrence relation. An example is the sequence of [[prime number]]s in their natural order (2, 3, 5, 7, 11, 13, 17, ...). ==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. ===Definition=== In this article, a sequence is formally defined as a [[function (mathematics)|function]] whose [[domain of a function|domain]] is an [[Interval (mathematics)|interval]] of [[integers]]. This definition covers several different uses of the word "sequence", including one-sided infinite sequences, bi-infinite sequences, and finite sequences (see below for definitions of these kinds of sequences). However, many authors use a narrower definition by requiring the domain of a sequence to be the set of [[natural numbers]]. This narrower definition has the disadvantage that it rules out finite sequences and bi-infinite sequences, both of which are usually called sequences in standard mathematical practice. Another disadvantage is that, if one removes the first terms of a sequence, one needs reindexing the remainder terms for fitting this definition. In some contexts, to shorten exposition, the [[codomain]] of the sequence is fixed by context, for example by requiring it to be the set '''R''' of real numbers,<ref name="Gaughan" /> the set '''C''' of complex numbers,<ref name=Saff>{{Cite book |title=Fundamentals of Complex Analysis |chapter=Chapter 2.1 |chapter-url=https://books.google.com/books?id=fVsZAQAAIAAJ&q=saff+%26+Snider |author=Edward B. Saff & Arthur David Snider |year=2003 |publisher=Prentice Hall |isbn=978-01-390-7874-3 |access-date=2015-11-15 |archive-date=2023-03-23 |archive-url=https://web.archive.org/web/20230323163811/https://books.google.com/books?id=fVsZAQAAIAAJ&q=saff+%26+Snider |url-status=live }}</ref> or a [[topological space]].<ref name=Munkres>{{Cite book|title=Topology|chapter=Chapters 1&2|chapter-url=https://books.google.com/books?id=XjoZAQAAIAAJ|author=James R. Munkres|isbn=978-01-318-1629-9|year=2000|publisher=Prentice Hall, Incorporated |access-date=2015-11-15|archive-date=2023-03-23|archive-url=https://web.archive.org/web/20230323163811/https://books.google.com/books?id=XjoZAQAAIAAJ|url-status=live}}</ref> Although sequences are a type of function, they are usually distinguished notationally from functions in that the input is written as a subscript rather than in parentheses, that is, {{math|''a<sub>n</sub>''}} rather than {{math|''a''(''n'')}}. There are terminological differences as well: the value of a sequence at the lowest input (often 1) is called the "first element" of the sequence, the value at the second smallest input (often 2) is called the "second element", etc. Also, while a function abstracted from its input is usually denoted by a single letter, e.g. ''f'', a sequence abstracted from its input is usually written by a notation such as <math display=inline>(a_n)_{n\in A}</math>, or just as <math display=inline>(a_n).</math> Here {{math|''A''}} is the domain, or index set, of the sequence. Sequences and their limits (see below) are important concepts for studying topological spaces. An important generalization of sequences is the concept of [[net (mathematics)|nets]]. A '''net''' is a function from a (possibly [[uncountable]]) [[directed set]] to a topological space. The notational conventions for sequences normally apply to nets as well. ===Finite and infinite=== {{See also|ω-language}} 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 [[n-tuple|''n''-tuple]]. Finite sequences include the '''empty sequence''' ( ) that has no elements. {{anchor|Doubly infinite|Doubly-infinite sequences}} Normally, the term ''infinite sequence'' refers to a sequence that is infinite in one direction, and finite in the other—the sequence has a first element, but no final element. Such a sequence is called a '''singly infinite sequence''' or a '''one-sided infinite sequence''' when disambiguation is necessary. In contrast, a sequence that is infinite in both directions—i.e. that has neither a first nor a final element—is called a '''bi-infinite sequence''', '''two-way infinite sequence''', or '''doubly infinite sequence'''. A function from the set '''Z''' of ''all'' [[integers]] into a set, such as for instance the sequence of all even integers ( ..., −4, −2, 0, 2, 4, 6, 8, ... ), is bi-infinite. This sequence could be denoted <math display=inline>{(2n)}_{n=-\infty}^{\infty}</math>. ===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 example, the sequence <math display=inline>{(a_n)}_{n=1}^{\infty} </math> is monotonically increasing if and only if <math display=inline>a_{n+1} \geq a_n</math> for all <math>n \in \mathbf N.</math> 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 is '''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<sub>n</sub>'') is such that all the terms are less than some real number ''M'', then the sequence is said to be '''bounded from above'''. In other words, this means that there exists ''M'' such that for all ''n'', ''a<sub>n</sub>'' ≤ ''M''. Any such ''M'' is called an ''upper bound''. Likewise, if, for some real ''m'', ''a<sub>n</sub>'' ≥ ''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'''. ===Subsequences=== 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. Formally, a subsequence of the sequence <math>(a_n)_{n\in\mathbb N}</math> is any sequence of the form <math display=inline>(a_{n_k})_{k\in\mathbb N}</math>, where <math>(n_k)_{k\in\mathbb N}</math> is a strictly increasing sequence of positive integers. ===Other types of sequences=== 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''<sub>''nm''</sub> = ''a''<sub>''n''</sub> ''a''<sub>''m''</sub> for all pairs ''n'', ''m'' such that ''n'' and ''m'' are [[coprime]].<ref>{{cite book|title=Lectures on generating functions|last=Lando|first=Sergei K.|publisher=AMS|isbn=978-0-8218-3481-7|chapter=7.4 Multiplicative sequences|date=2003-10-21}}</ref> In other instances, sequences are often called ''multiplicative'', if ''a''<sub>''n''</sub> = ''na''<sub>1</sub> for all ''n''. Moreover, a ''multiplicative'' Fibonacci sequence<ref>{{cite journal|title=Fibonacci's multiplicative sequence|first=Sergio|last=Falcon|journal=International Journal of Mathematical Education in Science and Technology|volume=34|issue=2|pages=310–315|doi=10.1080/0020739031000158362|year = 2003|s2cid=121280842}}</ref> satisfies the recursion relation ''a''<sub>''n''</sub> = ''a''<sub>''n''−1</sub> ''a''<sub>''n''−2</sub>. * A [[binary sequence]] is a sequence whose terms have one of two discrete values, e.g. [[base 2]] values (0,1,1,0, ...), a series of coin tosses (Heads/Tails) H,T,H,H,T, ..., the answers to a set of True or False questions (T, F, T, T, ...), and so on. ==Limits and convergence== {{Main|Limit of a sequence}} [[File:Converging Sequence example.svg|320px|thumb|The plot of a convergent sequence (''a<sub>n</sub>'') is shown in blue. From the graph we can see that the sequence is converging to the limit zero as ''n'' increases.]] An important property of a sequence is ''convergence''. If a sequence converges, it converges to a particular value known as the ''limit''. If a sequence converges to some limit, then it is '''convergent'''. A sequence that does not converge is '''divergent'''. Informally, a sequence has a limit if the elements of the sequence become closer and closer to some value <math>L</math> (called the limit of the sequence), and they become and remain ''arbitrarily'' close to <math>L</math>, meaning that given a real number <math>d</math> greater than zero, all but a finite number of the elements of the sequence have a distance from <math>L</math> less than <math>d</math>. For example, the sequence <math display="inline">a_n = \frac{n+1}{2n^2}</math> shown to the right converges to the value 0. On the other hand, the sequences <math display="inline">b_n = n^3</math> (which begins 1, 8, 27, ...) and <math>c_n = (-1)^n</math> (which begins −1, 1, −1, 1, ...) are both divergent. If a sequence converges, then the value it converges to is unique. This value is called the '''limit''' of the sequence. The limit of a convergent sequence <math>(a_n)</math> is normally denoted <math display="inline">\lim_{n\to\infty}a_n</math>. If <math>(a_n)</math> is a divergent sequence, then the expression <math display="inline">\lim_{n\to\infty}a_n</math> is meaningless. === Formal definition of convergence=== A sequence of real numbers <math>(a_n)</math> '''converges to''' a real number <math>L</math> if, for all <math>\varepsilon > 0</math>, there exists a natural number <math>N</math> such that for all <math>n \geq N</math> we have<ref name="Gaughan">{{cite book|title=Introduction to Analysis |last=Gaughan |first=Edward |publisher=AMS (2009)|isbn=978-0-8218-4787-9|chapter=1.1 Sequences and Convergence|year=2009 }}</ref> :<math>|a_n - L| < \varepsilon.</math> If <math>(a_n)</math> is a sequence of complex numbers rather than a sequence of real numbers, this last formula can still be used to define convergence, with the provision that <math>|\cdot|</math> denotes the complex modulus, i.e. <math>|z| = \sqrt{z^*z}</math>. If <math>(a_n)</math> is a sequence of points in a [[metric space]], then the formula can be used to define convergence, if the expression <math>|a_n-L|</math> is replaced by the expression <math>\operatorname{dist}(a_n, L)</math>, which denotes the [[Metric (mathematics)|distance]] between <math>a_n</math> and <math>L</math>. ===Applications and important results=== If <math>(a_n)</math> and <math>(b_n)</math> are convergent sequences, then the following limits exist, and can be computed as follows:<ref name="Gaughan" /><ref name="Dawkins">{{cite web |url=http://tutorial.math.lamar.edu/Classes/CalcII/Sequences.aspx |title=Series and Sequences |last1=Dawikins |first1=Paul |work=Paul's Online Math Notes/Calc II (notes) |access-date=18 December 2012 |archive-date=30 November 2012 |archive-url=https://web.archive.org/web/20121130095834/http://tutorial.math.lamar.edu/Classes/CalcII/Sequences.aspx |url-status=live }}</ref> * <math>\lim_{n\to\infty} (a_n \pm b_n) = \lim_{n\to\infty} a_n \pm \lim_{n\to\infty} b_n</math> * <math>\lim_{n\to\infty} c a_n = c \lim_{n\to\infty} a_n</math> for all real numbers <math>c</math> * <math>\lim_{n\to\infty} (a_n b_n) = \bigl( \lim_{n\to\infty} a_n \bigr) \bigl( \lim_{n\to\infty} b_n \bigr)</math> * <math>\lim_{n\to\infty} \frac{a_n} {b_n} = \bigl( \lim \limits_{n\to\infty} a_n \bigr) \big/ \bigl( \lim \limits_{n\to\infty} b_n \bigr)</math>, provided that <math>\lim_{n\to\infty} b_n \ne 0</math> * <math>\lim_{n\to\infty} a_n^p = \bigl( \lim_{n\to\infty} a_n \bigr)^p</math> for all <math>p > 0</math> and <math>a_n > 0</math> Moreover: * If <math>a_n \leq b_n</math> for all <math>n</math> greater than some <math>N</math>, then <math>\lim_{n\to\infty} a_n \leq \lim_{n\to\infty} b_n </math>.{{efn|If the inequalities are replaced by strict inequalities then this is false: There are sequences such that <math>a_n < b_n</math> for all <math>n</math>, but <math>\lim_{n\to\infty} a_n = \lim_{n\to\infty} b_n </math>.}} * ([[Squeeze Theorem]])<br>If <math>(c_n)</math> is a sequence such that <math>a_n \leq c_n \leq b_n</math> for all <math>n > N</math> {{nowrap|and <math>\lim_{n\to\infty} a_n = \lim_{n\to\infty} b_n = L</math>,}}<br>then <math>(c_n)</math> is convergent, and <math>\lim_{n\to\infty} c_n = L</math>. * If a sequence is [[#Bounded|bounded]] and [[#Increasing and decreasing|monotonic]] then it is convergent. * A sequence is convergent if and only if all of its subsequences are convergent. ===Cauchy sequences=== {{Main|Cauchy sequence}} [[File:Cauchy sequence illustration.svg|350px|thumb| The plot of a Cauchy sequence (''X<sub>n</sub>''), shown in blue, as ''X<sub>n</sub>'' versus ''n''. In the graph the sequence appears to be converging to a limit as the distance between consecutive terms in the sequence gets smaller as ''n'' increases. In the [[real number]]s 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'': :A sequence of real numbers is convergent (in the reals) if and only if it is Cauchy. In contrast, there are Cauchy sequences of [[rational numbers]] that are not convergent in the rationals, e.g. the sequence defined by <math>x_1 = 1</math> and <math>x_{n+1} = \tfrac12\bigl(x_n + \tfrac{2}{x_n}\bigr)</math> is Cauchy, but has no rational limit (cf. {{slink|Cauchy sequence#Non-example: rational numbers}}). More generally, any sequence of rational numbers that converges to an [[irrational number]] is Cauchy, but not convergent when interpreted as a sequence in the set of rational numbers. Metric spaces that satisfy the Cauchy characterization of convergence for sequences are called [[complete metric space]]s and are particularly nice for analysis. === Infinite limits === In calculus, it is common to define notation for sequences which do not converge in the sense discussed above, but which instead become and remain arbitrarily large, or become and remain arbitrarily negative. If <math>a_n</math> becomes arbitrarily large as <math>n \to \infty</math>, we write :<math>\lim_{n\to\infty}a_n = \infty.</math> In this case we say that the sequence '''diverges''', or that it '''converges to infinity'''. An example of such a sequence is {{nowrap|1=''a''<sub>''n''</sub> = ''n''}}. If <math>a_n</math> becomes arbitrarily negative (i.e. negative and large in magnitude) as <math>n \to \infty</math>, we write :<math>\lim_{n\to\infty}a_n = -\infty</math> and say that the sequence '''diverges''' or '''converges to negative infinity'''. ==Series== {{Main|Series (mathematics)}} A '''series''' is, informally speaking, the sum of the terms of a sequence. That is, it is an expression of the form <math display="inline">\sum_{n = 1}^\infty a_n</math> or <math>a_1 + a_2 + \cdots</math>, where <math>(a_n)</math> is a sequence of real or complex numbers. The '''partial sums''' of a series are the expressions resulting from replacing the infinity symbol with a finite number, i.e. the ''N''th partial sum of the series <math display="inline">\sum_{n = 1}^\infty a_n</math> is the number :<math>S_N = \sum_{n = 1}^N a_n = a_1 + a_2 + \cdots + a_N. </math> The partial sums themselves form a sequence <math>(S_N)_{N\in\mathbb N}</math>, which is called the '''sequence of partial sums''' of the series <math display="inline">\sum_{n = 1}^\infty a_n</math>. If the sequence of partial sums converges, then we say that the series <math display="inline">\sum_{n = 1}^\infty a_n</math> is '''convergent''', and the limit <math display="inline">\lim_{N\to\infty} S_N</math> is called the '''value''' of the series. The same notation is used to denote a series and its value, i.e. we write <math display="inline">\sum_{n = 1}^\infty a_n = \lim_{N\to\infty} S_N</math>. ==Use in other fields of mathematics== ===Topology=== Sequences play an important role in topology, especially in the study of [[metric spaces]]. For instance: * A [[metric space]] is [[compact space|compact]] exactly when it is [[sequential compactness|sequentially compact]]. * A function from a metric space to another metric space is [[continuous function|continuous]] exactly when it takes convergent sequences to convergent sequences. * A metric space is a [[connected space]] if and only 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 space|separable]] exactly when there is a dense sequence of points. Sequences can be generalized to [[Net (mathematics)|nets]] or [[Filter (set theory)|filters]]. These generalizations allow one to extend some of the above theorems to spaces without metrics. ====Product topology==== The [[product topology|topological product]] of a sequence of topological spaces is the [[cartesian product]] of those spaces, equipped with a [[natural topology]] called the [[product topology]]. More formally, given a sequence of spaces <math>(X_i)_{i\in\mathbb N}</math>, the product space :<math>X := \prod_{i\in\mathbb N} X_i, </math> is defined as the set of all sequences <math>(x_i)_{i\in\mathbb N}</math> such that for each ''i'', <math>x_i</math> is an element of <math>X_i</math>. The '''[[projection (set theory)|canonical projections]]''' are the maps ''p<sub>i</sub>'' : ''X'' → ''X<sub>i</sub>'' defined by the equation <math>p_i((x_j)_{j\in\mathbb N}) = x_i</math>. 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<sub>i</sub>'' are [[continuous (topology)|continuous]]. The product topology is sometimes called the '''Tychonoff topology'''. ===Analysis=== When discussing sequences in [[mathematical analysis|analysis]], one will generally consider sequences of the form :<math>(x_1, x_2, x_3, \dots)\text{ or }(x_0, x_1, x_2, \dots)</math> which is to say, infinite sequences of elements indexed by [[natural number]]s. A sequence may start with an index different from 1 or 0. For example, the sequence defined by ''x<sub>n</sub>'' = 1/[[logarithm|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 number|real]] or [[complex number|complex]] numbers. This type can be generalized to sequences of elements of some [[vector space]]. In analysis, the vector spaces considered are often [[function space]]s. Even more generally, one can study sequences with elements in some [[topological space]]. ====Sequence spaces==== {{main|Sequence space}} A [[sequence space]] is a [[vector space]] whose elements are infinite sequences of [[real number|real]] or [[complex number|complex]] numbers. Equivalently, it is a [[function space]] whose elements are functions from the [[natural numbers]] to the [[Field (mathematics)|field]] ''K'', where ''K'' is either the field of real numbers or the field of 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 subspace]]s of this space. Sequence spaces are typically equipped with a [[norm (mathematics)|norm]], or at least the structure of a [[topological vector space]]. The most important sequences spaces in analysis are the ℓ<sup>''p''</sup> spaces, consisting of the ''p''-power summable sequences, with the ''p''-norm. These are special cases of [[Lp space|L<sup>''p''</sup> spaces]] for the [[counting measure]] on the set of natural numbers. Other important classes of sequences like convergent sequences or [[Sequence_space#c,_c0_and_c00|null sequence]]s form sequence spaces, respectively denoted ''c'' and ''c''<sub>0</sub>, 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 an [[FK-space]]. ===Linear algebra=== Sequences over a [[field (mathematics)|field]] may also be viewed as [[Vector (geometric)|vectors]] in a [[vector space]]. Specifically, the set of ''F''-valued sequences (where ''F'' is a field) is a [[function space]] (in fact, a [[product space]]) of ''F''-valued 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|Free monoid}} If ''A'' is a set, the [[free monoid]] over ''A'' (denoted ''A''<sup>*</sup>, 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''<sup>+</sup> is the subsemigroup of ''A''<sup>*</sup> containing all elements except the empty sequence. ====Exact sequences==== {{Main|Exact sequence}} In the context of [[group theory]], a sequence :<math>G_0 \;\overset{f_1}{\longrightarrow}\; G_1 \;\overset{f_2}{\longrightarrow}\; G_2 \;\overset{f_3}{\longrightarrow}\; \cdots \;\overset{f_n}{\longrightarrow}\; G_n</math> of [[group (mathematics)|groups]] and [[group homomorphism]]s is called '''exact''', if the [[Image (mathematics)|image]] (or [[Range of a function|range]]) of each homomorphism is equal to the [[Kernel (algebra)|kernel]] of the next: :<math>\mathrm{im}(f_k) = \mathrm{ker}(f_{k+1})</math> The sequence of groups and homomorphisms may be either finite or infinite. A similar definition can be made for certain other [[algebraic structure]]s. For example, one could have an exact sequence of [[vector space]]s and [[linear map]]s, or of [[module (mathematics)|modules]] and [[module homomorphism]]s. ====Spectral sequences==== {{Main|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 sequence]]s, and since their introduction by {{harvs|txt|authorlink=Jean Leray|first=Jean|last=Leray|year=1946}}, they have become an important research tool, particularly in [[homotopy theory]]. ===Set theory=== An [[Order topology#Ordinal-indexed sequences|ordinal-indexed 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=== In [[computer science]], finite sequences are called [[list (computer science)|lists]]. Potentially infinite sequences are called [[stream (computer science)|streams]]. Finite sequences of characters or digits are called [[String (computer science)|string]]s. ===Streams=== Infinite sequences of [[numerical digit|digits]] (or [[character (computing)|characters]]) drawn from a [[finite set|finite]] [[alphabet (computer science)|alphabet]] are of particular interest in [[theoretical computer science]]. They are often referred to simply as ''sequences'' or ''[[Stream (computing)|streams]]'', as opposed to finite ''[[String (computer science)#Formal theory|strings]]''. Infinite binary sequences, for instance, are infinite sequences of [[bit]]s (characters drawn from the alphabet {0, 1}). The set ''C'' = {0, 1}<sup>∞</sup> 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. This representation is useful in the [[Cantor's diagonal argument|diagonalization method]] for proofs.<ref name=Oflazer2011>{{cite web|last1=Oflazer|first1=Kemal|title=FORMAL LANGUAGES, AUTOMATA AND COMPUTATION: DECIDABILITY|url=http://www.andrew.cmu.edu/user/ko/pdfs/lecture-15.pdf|website=cmu.edu|publisher=Carnegie-Mellon University|access-date=24 April 2015|archive-date=29 May 2015|archive-url=https://web.archive.org/web/20150529101719/http://www.andrew.cmu.edu/user/ko/pdfs/lecture-15.pdf|url-status=live}}</ref> ==See also== * [[Enumeration]] * [[On-Line Encyclopedia of Integer Sequences]] * [[Recurrence relation]] * [[Sequence space]] ;Operations * [[Cauchy product]] ;Examples * [[Discrete-time signal]] * [[Farey sequence]] * [[Fibonacci number|Fibonacci sequence]] * [[Look-and-say sequence]] * [[Thue–Morse sequence]] * [[List of integer sequences]] ;Types * [[±1-sequence]] * [[Arithmetic progression]] * [[Automatic sequence]] * [[Cauchy sequence]] * [[Constant-recursive sequence]] * [[Geometric progression]] * [[Harmonic progression (mathematics)|Harmonic progression]] * [[holonomic function|Holonomic sequence]] * [[k-regular sequence|Regular sequence]] * [[Pseudorandom binary sequence]] * [[Random sequence]] ;Related concepts * [[List (computing)]] * [[Net (topology)]] (a generalization of sequences) * [[Order topology#Ordinal-indexed sequences|Ordinal-indexed sequence]] * [[Recursion (computer science)]] * [[Set (mathematics)]] * [[Tuple]] * [[Permutation]] ==Notes== {{notelist}} ==References== {{reflist}} ==External links== {{Wiktionary}} {{wiktionary|enumerate|collection}} * {{springer|title=Sequence|id=p/s084550}} * [http://oeis.org/ The On-Line Encyclopedia of Integer Sequences] * [http://www.cs.uwaterloo.ca/journals/JIS/index.html Journal of Integer Sequences] (free) {{Series (mathematics)}} {{Functions navbox}} {{Authority control}} [[Category:Elementary mathematics]] [[Category:Sequences and series|*]]
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)
Pages transcluded onto the current version of this page
(
help
)
:
Template:Anchor
(
edit
)
Template:Authority control
(
edit
)
Template:Cite OEIS
(
edit
)
Template:Cite book
(
edit
)
Template:Cite journal
(
edit
)
Template:Cite web
(
edit
)
Template:Efn
(
edit
)
Template:Functions navbox
(
edit
)
Template:Harvs
(
edit
)
Template:Main
(
edit
)
Template:Math
(
edit
)
Template:Mvar
(
edit
)
Template:Notelist
(
edit
)
Template:Nowrap
(
edit
)
Template:Other uses
(
edit
)
Template:Pi
(
edit
)
Template:Redirect
(
edit
)
Template:Reflist
(
edit
)
Template:See also
(
edit
)
Template:Series (mathematics)
(
edit
)
Template:Short description
(
edit
)
Template:Slink
(
edit
)
Template:Springer
(
edit
)
Template:Webarchive
(
edit
)
Template:Wiktionary
(
edit
)