A sequence is a sorted and infinite collection of real numbers. Small letters usually denote the sequences.

Here are some sequences: $$$a: \ 1,\sqrt{2},-\dfrac{1}{3},0.27,\sqrt{7},\ldots$$$ $$$b: \ 1,3,9,27,81,\ldots$$$ $$$c: \ \dfrac{1}{\sqrt{2}},\dfrac{2}{\sqrt{2}},\dfrac{3}{\sqrt{2}},\dfrac{4}{\sqrt{2}},\dfrac{5}{\sqrt{2}},\ldots$$$ $$$d: \ \dfrac{2}{3}, -\dfrac{3}{4}, \dfrac{4}{5},-\dfrac{5}{6},\dfrac{6}{7},\ldots$$$

To give a sorted list of numbers is to determine which is the first one, the second one, the third one... or in mathematical terms, it means to associate every natural number one and only one real number; that is, a sequence is an application of the set of natural numbers to the set of real numbers: $$a: \mathbb{N}\rightarrow\mathbb{R}$$.

The previous sequences are written:

$$a: \mathbb{N}\rightarrow\mathbb{R}$$

$$1 \rightarrow 1$$

$$2 \rightarrow \sqrt{2}$$

$$3 \rightarrow -\dfrac{1}{3}$$

$$4 \rightarrow 0.27$$

$$5 \rightarrow \sqrt{7}$$

$$\ldots$$

$$b: \mathbb{N}\rightarrow\mathbb{R}$$

$$1 \rightarrow 1$$

$$2 \rightarrow 3$$

$$3 \rightarrow 9$$

$$4 \rightarrow 27$$

$$5 \rightarrow 81$$

$$\ldots$$

The numbers that form the sequence are called terms, and we usually refer to them using the letter that names the sequence with a subscript that indicates the position the above mentioned term occupies in the sequence:

$$a: \mathbb{N}\rightarrow\mathbb{R}$$

$$1 \rightarrow a_1$$

$$2 \rightarrow a_2$$

$$3 \rightarrow a_3$$

$$\ldots$$

$$n \rightarrow a_n$$

$$\ldots$$

The symbol $$a_1$$ represents the first term of the sequence $$a$$, $$a_2$$ is the second one, $$a_3$$ the third one, and so on; the symbol $$a_n$$ represents the term that occupies the position $$n$$, this is the $$n$$-th term of the sequence.

Using the previous examples, we have

$$a_3$$ is the third term of the sequence $$a$$, that is, $$a_3=-\dfrac{1}{3}.$$

$$b_5$$ is the fifth term of the sequence $$b$$, that is, $$b_5=243.$$

$$c_1$$ is the first term of the sequence $$c$$, that is, $$c_1=\dfrac{1}{\sqrt{2}}.$$

$$d_4$$ is the fourth term of the sequence $$d$$, that is, $$d_4=-\dfrac{5}{6}.$$

## General term of a sequence

If the terms of a sequence follow a certain law in its formation, that is, if it is possible to give a formula that relates the value of the $$n$$-th term to the natural number $$n$$, we will call such formula the general term of the sequence.

We can also interpret the general term as a real function, and then the sequence is interpreted as the values which the function takes in the natural numbers.

In the sequence $$a$$, the terms do not follow any rule or pattern in its formation, therefore it is not possible to give a general term.

In the sequence $$c$$ we see that all the terms are divided by $$\sqrt{2}$$, and the numerator always coincides with its position, that is, the first term of the sequence has a number $$1$$ in the numerator, the second one has a number $$2$$, the third one has a number $$3$$, and so on; therefore, the $$n$$-th term will take $$n$$ as a numerator, so the general term of such a sequence will be: $$$c_n=\dfrac{n}{\sqrt{2}}.$$$ As we have commented, the sequence $$c$$ corresponds to the taking the values of the natural numbers in the function $$f(x)= \dfrac{x}{\sqrt{2}}$$.

To notice that the sequence is an application of the set of natural numbers, that is $$n\in\mathbb{N}$$, sometimes it is written as $$(a_n)_{n\in\mathbb{N}}$$ when it refers to the general term of the sequence.

## Sequences recursively defined

Sometimes, when calculating the n-th term of a sequence, it is easier from the previous term, or terms than from the position it takes. In this case, although we are not giving the general term of the sequence, it is accepted as its definition, and it is said that the sequence is defined recursively. In these occasions, in addition to giving the formula that defines the sequence, it is necessary to give the first, or the first terms.

In the sequence $$b$$ of the previous examples, we can observe that every term is the result of multiplying the previous one by $$3$$: $$$a_1=3$$$ $$$a_2=3\cdot a_1=3\cdot3=9$$$ $$$a_3=3\cdot a_2=3\cdot9=27$$$ $$$\ldots$$$

so we may also define the sequence as $$$a_1=3$$$ $$$a_n=3\cdot a_{n-1}$$$

Let's see another example where we verify that to define the sequence not always the previous term only is needed. We define the sequence in the following way; $$$a_1=0; \ \ a_2=1$$$ $$$a_n=a_{n-1}+a_{n-2}$$$

This sequence is called a Fibonacci sequence. This sequence has numerous mathematical properties but it was, curiously, presented through a study on the reproduction rates of rabbits.