# Math for Non-Geeks/Sequences

The sequence is one of the most important terms in analysis. On the basis of sequences we will define the term of the limit value later. This in turn allows us to introduce all important concepts of analysis like derivative and continuity.

## Sequences in "everyday life"

Maybe, you can think of some examples from your everyday life, where "things line up" as a sequence...
Question: What examples of sequences do you know?
There is no uniquely correct answer to this. Let me give you some examples:
Think of customers queuing anywhere in some well-defined order.
Or think of the order of things you do after getting up: 1. brushing your teeth, 2. taking a shower, 3. getting dressed, 4. making coffee, 5. drinking that coffee, ...
You may also think of sequences that get longer over time. An example which our German colleagues like is the sequence of the nations that won the World Cup (both men and women): 1 Uruguay, 2 Italy, 3 Italy, 4 Uruguay, 6 Germany, ...
All examples have in common that the order of the elements of a sequence is exactly defined. There is an exactly defined order of the sequence elements, which has to be considered. After getting up you should make coffee before drinking it (the reverse order would be suboptimal ).
In addition, one or more objects can appear several times in a sequence. In the sequence of the soccer world champions, some nations appear more than once because they won the soccer world championship more than once. This distinguishes a sequence from a set. For a set it does not make sense to ask how often an element occurs in the set, as it may occur at most once. One can only ask whether an object is an element of a set or not.
Furthermore, you can number the individual sequence members of a sequence. You can say who was the first president of the USA, the second president and so on. So you can assign one or more numbers to each element of a sequence, which indicate at which position this object occurs in the sequence.
Many of the sequences known in everyday life are finite, but infinite sequences are imaginable too. If soccer world championships would be played for all eternity, the sequence of soccer world champions would be infinite.

## Formal definition

Let us now turn to the concept of a sequence in mathematics. The big difference to the notion of sequences in everyday life is, that in mathematics a sequence is always infinitely long. In mathematics there are also "finite sequences", but mathematicians call them"tuples" instead of sequences. ("finite = tuple", "infinite = sequence")
A sequence is thus an infinite sequence $(a_{1},a_{2},a_{3},a_{4},\ldots )$ of objects. Here $a_{1}$ stands for the object in the first place, $a_{2}$ for the object in the second place and so on. For sequences there is the abbreviated notation $(a_{n})_{n\in \mathbb {N} }$. This is the (intuitive) definition of a sequence:
This definition is only intuitive, because we did not define the term "infinite ordered arrangement" exactly. This has to be done for an exact (non-intuitive) definition.
Example (sequence)
The sequence $(a_{n})_{n\in \mathbb {N} }$ of real numbers is:
$(a_{n})_{n\in \mathbb {N} }=(1,\,2,\,3,\,4,\,5,\ldots )$
The sequence $(b_{n})_{n\in \mathbb {N} }$ of powers of 2 is:
$(b_{n})_{n\in \mathbb {N} }=(1,\,2,\,4,\,8,\,16,\ldots )$
Exercise (for understanding): Write the following sequences in the above form within one bracket
* The sequence of square numbers
* The sequence of positive odd numbers
* $(a_{n})_{n\in \mathbb {N} }=(1,\,4,\,9,\,16,\,25,\ldots )$
* $(b_{n})_{n\in \mathbb {N} }=(1,\,3,\,5,\,7,\,9,\ldots )$

## Important terms

The single elements $a_{n}$ of a sequence are mathematically called sequence elements. They are enumerated by a natural number $n$. This natural number is called index. For example, $a_{4}$ is the sequence element of index $4$.
For a sequence with elements from the set $M$, a sequence elements must be an element of the set $M$. For instance, take the sequence $(1,\ 1,\ 1,\ 2,\ 3,\ 4,\ 5,\ 6,\ldots )$. The sequence member $a_{1}$ is identical to $a_{2}$ or $a_{3}$, namely the number $1$.
If you refer to the whole sequence, you write $\left(a_{n}\right)_{n\in \mathbb {N} }$. Two short notations for $\left(a_{n}\right)_{n\in \mathbb {N} }$ are $(a_{n})_{n}$ and $(a_{n})$. Often the letter $n$ is used as an index variable. But every letter can be used as index variable as long as it has no other meaning in the respective context. For instance, $\left(a_{m}\right)_{m\in \mathbb {N} }$, $\left(a_{i}\right)_{i\in \mathbb {N} }$, $\left(a_{j}\right)_{j\in \mathbb {N} }$ or $\left(a_{k}\right)_{k\in \mathbb {N} }$ are common, as well.
In real analysis, we consider sequences of real numbers. These special sequences are called real-valued sequences. In the following overview and in the following table all essential terms concerning the components of sequences are summarized:
$(a_{n})_{n\in \mathbb {N} }=\overbrace {(a_{1},\,{\color {OliveGreen}\underbrace {a_{2}} _{\text{sequence element}}},\,a_{3},\,a_{\color {Blue}\underbrace {_{4}} _{\text{index}}},\,\ldots )} ^{\text{sequence}}$
| term | notation | definition |
| sequence | $(a_{n})_{n\in \mathbb {N} }$ or $(a_{n})$ | A sequence is an infinite arrangement of objects. |
| sequence element | $a_{n}$ | A sequence element is one specific element within a sequence, standing at some position. |
| index | $n$ | The index is that position, i.e. a natural number. |
Warning
Some students tend to imagine a real sequence as a continuous function (especially if they want to draw it). This is not a good intuition, because a real sequence consists only of a sequence of single real numbers and not a continuously drawn line. This is demonstrated by the following comparison of the harmonic sequence $(a_{n})_{n\in \mathbb {N} }=\left({\tfrac {1}{n}}\right)_{n\in \mathbb {N} }=\left({\tfrac {1}{1}},{\tfrac {1}{2}},{\tfrac {1}{3}},\ldots \right)$ with the function $f:\mathbb {R} ^{+}\rightarrow \mathbb {R} ^{+}$ with $f(x)={\tfrac {1}{x}}$. Notice that in contrast to the function $f(x)={\tfrac {1}{x}}$ there are only discrete values (single points) in the graph for the harmonic sequence:
* The harmonic sequence defined by $a_{n}={\frac {1}{n}}$, takes discrete values.
* Compare the continuous function $f(x)={\tfrac {1}{x}}$. Its domain are the real positive numbers.
The intuition with dots (left side) is better for understanding sequences.

## Definition as a function
### Definition

Above we have intuitively defined the sequence as an infinite arrangement of objects. The term of a function will allow us to make a mathematically precise definition: We take the set of natural numbers and assign to each natural number $n$ an object $a_{n}$ (where the objects come from some set $M$ in which the sequence takes its values). Thus we get an infinite and numbered arrangement of objects, as the following sketch illustrates:
${\begin{array}{ccccl}1&2&3&4&\ldots \\\downarrow &\downarrow &\downarrow &\downarrow &\\a_{1}&a_{2}&a_{3}&a_{4}&\ldots \end{array}}$
So a sequence is mathematically a function $\mathbb {N} \rightarrow M$For instance, we could write the sequence of Presidents of the US as such a function:
${\begin{array}{cccccl}1&2&3&4&5&\ldots \\\downarrow &\downarrow &\downarrow &\downarrow &\downarrow &\\{\text{Washington}}&{\text{Adams}}&{\text{Jefferson}}&{\text{Madison}}&{\text{Monroe}}&\ldots \\\end{array}}$
(For English monarchs, the situation is not so easy as there are different houses with different sequences.)
The function assigns to any natural number $n$ the corresponding $n$-th sequence element:
Definition (sequence)
A sequence with values in the set $M$ is a map
$f:\mathbb {N} \to M:n\mapsto f(n)=:a_{n}$
we write $(a_{n})_{n\in \mathbb {N} }$ instead of $f$.
The definition above only uses mathematical terms, so it serves as a mathematically exact definition. Hence, it is used in textbooks as definition for a sequence.

### Remarks

For a sequence $(a_{n})_{n\in \mathbb {N} }$ with sequence elements from the set $M$ the short form $(a_{n})_{n\in \mathbb {N} }=(a_{1},a_{2},\ldots )$ stands for a function $f:\mathbb {N} \to M,n\mapsto a_{n}$. So sequences are nothing else than functions.
Let us take the two sequences $(a_{n})_{n\in \mathbb {N} }=(f:\mathbb {N} \to \mathbb {N} ,n\mapsto n)$ and $(b_{n})_{n\in \mathbb {N} }=(g:\mathbb {N} \to \mathbb {R} ,n\mapsto n)$. Strictly speaking, both sequences are different, because the target sets are $\mathbb {N}$ and $\mathbb {R}$ , i.e. different and therefore the functions are different, as well. But their "short spellings" do not differ: $(a_{n})_{n\in \mathbb {N} }=(1,\ 2,\ 3,\ 4,\ldots )$ and $(b_{n})_{n\in \mathbb {N} }=(1,\ 2,\ 3,\ 4,\ldots )$. This distinction becomes obvious, if you call $(a_{n})_{n\in \mathbb {N} }$ a sequence in the natural numbers and $(b_{n})_{n\in \mathbb {N} }$ a sequence in the real numbers.
To make clear that a sequence $(a_{n})_{n\in \mathbb {N} }$ is a mapping from the natural numbers into the set $M$, we say that $(a_{n})_{n\in \mathbb {N} }$ is a sequence in $M$. Sometimes also the notation $(a_{n})_{n\in \mathbb {N} }\subseteq M$ is used.
Question: Why is the sequence $(a_{n})_{n\in \mathbb {N} }$ not defined as a set $\{a_{n}|n\in \mathbb {N} \}=\{a_{1},a_{2},a_{3},\ldots \}$? What differs a sequence and a set?
There are two reasons: Toking the soccer world champion sequence (starting from 1990)
$(a_{n})_{n\in \mathbb {N} }=({\text{Germany, Brazil, France, Brazil, Italy, Spain, Germany, }}\ldots )$
The map $f:\mathbb {N} \to \{{\text{countries}}\}$ is defined by
${\begin{aligned}&f(1):={\text{Germany}}\ ,\ f(2)={\text{Brazil}}\ ,\ f(3):={\text{France}}\ ,\\&f(4):={\text{Brazil}}\ ,\ f(5):={\text{Italy}}\ ,\ f(6):={\text{Spain}}\ ,\\&f(7):={\text{Germany}}\ ,\ldots \end{aligned}}$
* In a sequence an element can occur several times. In a set, this is not allowed. Brazil is several times soccer world champion, France (2020) is not. If you look at the sequence $(a_{n})_{n\in \mathbb {N} }$, you can see this. If you only know the set of soccer world champions $\{a_{n}|n\in \mathbb {N} \}=\{{\text{Germany, Brazil, France, }}\ldots \}$, there is no way to tell whether Brazil is a multiple soccer world champion.
* In a sequence there is an order of elements. The objects in a set do not have an order. In the sequence $(a_{n})_{n\in \mathbb {N} }$, we can read out which country has won the third soccer world championship since 1990: $a_{3}=f(3)={\text{France}}$. If we only know the set of soccer world champions $\{{\text{Germany, Brazil, France, }}\ldots \}=\{{\text{France, Germany, Brazil, }}\ldots \}$, there is no way to tell which country has won the third soccer world championship since 1990.

## Kinds of sequences

Folgen können beliebige Objekte als Folgenglieder besitzen. So sind reelle Folgen Folgen von reellen Zahlen. Dies ist auch der Typ der meisten Folgen, die uns in der Analysis begegnen werden. There is aber auch möglich, Folgen von komplexen Zahlen zu haben, welche komplexe Folgen genannt werden. Aber auch Folgen von Mengen oder Folgen von Funktionen sind möglich.
In den letzten Kapiteln haben wir bereits Intervallschachtelungen kennengelernt. Since Intervalle Mengen sind, sind Intervallschachtelungen Beispiele für Folgen von Mengen. Die folgende Tabelle listet einige Beispiele für Folgen auf:
Sequences can have any objects as sequence elements. There are real-valued sequences , which are sequences in the real numbers. Most sequences, which we encounter in real analysis will be of this type. Taking sequences of complex numbers, we get complex-valued sequences. But also sequences of sets or sequences of functions are possible (see the two figures).
In the last articles, we already learned about nested intervals. Since intervals are sets, nested intervals are an example for sequences of sets. The following table lists some examples of sequences:
| kind of sequences | explicit law | the first elements |
| real sequence $(a_{n})_{n\in \mathbb {N} }$ | $a_{n}=n^{2}$ | $1,\,4,\,9,\,16,\ldots$ |
| complex sequence $(c_{n})_{n\in \mathbb {N} }$ | $c_{n}=i^{n}$ | $i,\,-1,\,-i,\,1,\,i,\,\ldots$ |
| sequence of sets $(M_{n})_{n\in \mathbb {N} }$ | $M_{n}=\{k\in \mathbb {N} \,|\,k\leq n\}$ | $\{1\},\,\{1,\,2\},\,\{1,\,2,\,3\},\,\{1,\,2,\,3,\,4\},\,\ldots$ |
| sequence of intervals $(M_{n})_{n\in \mathbb {N} }$ | $M_{n}=\left[-{\tfrac {1}{n}},\,{\tfrac {1}{n}}\right]$ | $\left[-1,\,1\right],\,\left[-{\tfrac {1}{2}},\,{\tfrac {1}{2}}\right],\,\left[-{\tfrac {1}{3}},\,{\tfrac {1}{3}}\right],\,\left[-{\tfrac {1}{4}},\,{\tfrac {1}{4}}\right],\,\ldots$ |
| sequence of functions $(f_{n})_{n\in \mathbb {N} }$ | $f_{n}:\mathbb {R} \rightarrow \mathbb {R} :x\mapsto {\tfrac {x^{2}}{n}}$ | $f_{1}(x)=x^{2},\,f_{2}(x)={\tfrac {x^{2}}{2}},\,f_{3}(x)={\tfrac {x^{2}}{3}},\,f_{4}(x)={\tfrac {x^{2}}{4}},\ldots$ |
The explicit law is the formula with which a sequence element can be expressed directly, if just the index is given. There is also a recursive law, which states what an element is in terms of the previous elements. In the next chapter, we will discuss the different laws for sequences in more detail.