sequence
In mathematics, a sequence is an ordered list of objects indexed by the natural numbers. The nth term is written a_n, and a sequence is often denoted (a_n)_{n=1}^\infty. Sequences may be finite or infinite and are used to study patterns, limits, and recurrences.
Common examples include arithmetic sequences, where a_n = a_1 + (n−1)d; geometric sequences, where a_n = a_1 r^{n−1}; and
A central concept is convergence. An infinite sequence of real numbers (a_n) converges to a limit L
Every sequence can be viewed as a function from the natural numbers to a target set X.
A related concept is the series, which is the sum of the terms of a sequence. The
Beyond mathematics, sequences appear in other fields, such as computer science (arrays and lists), biology (DNA