# What is a sequence?

A sequence is an infinitely long list of numbers.

Take a look at this sequence of fractions:

$1 / 2$
$2 / 3$
$3 / 4$
$4 / 5$
$5 / 6$
$6 / 7$
$7 / 8$
$8 / 9$
$9 / 10$
$10 / 11$
$11 / 12$
$12 / 13$
$13 / 14$
$14 / 15$
$15 / 16$
$16 / 17$
$17 / 18$
$18 / 19$
$19 / 20$
$20 / 21$
$21 / 22$
$22 / 23$
$23 / 24$
$24 / 25$
$25 / 26$
$26 / 27$
$27 / 28$
$28 / 29$
$29 / 30$
$30 / 31$
$31 / 32$
$32 / 33$
$33 / 34$
$34 / 35$
$35 / 36$
$36 / 37$
$37 / 38$
$38 / 39$
$39 / 40$
$40 / 41$
$41 / 42$
$42 / 43$
$43 / 44$
$44 / 45$
$45 / 46$
$46 / 47$
$47 / 48$
$48 / 49$
$49 / 50$
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49

Notice how the sequence is infinitely long (you can keep scrolling forever) and each term of the sequence is labeled with a number.

These numbers, starting with 1 and counting up, are called the “natural numbers”, sometimes indicated by the symbol $\mathbb{N}$:

$\mathbb{N} = \{ \textcolor{#1d4ed8}{1, 2, 3, 4, 5, 6, 7, 8, 9, 10,...} \}$

Since each natural number corresponds with a term in the pizza sequence, we say that this sequence is indexed by the natural numbers.

##### Side note

It's also possible to have a sequence that is indexed by some other set, like the integers: $\mathbb{Z} = \{ ..., -2, -1, 0, 1, 2,... \}$. That kind of sequence would be infinite in both directions, not just to the right.

## Notation for Sequences

A sequence is very similar to a function. For example, our pizza sequence is a little bit like the function $f(\textcolor{#1d4ed8}{n}) = \frac{n}{n + 1}$. (Because$f(\textcolor{#1d4ed8}{1}) = \frac 12$, $f(\textcolor{#1d4ed8}{2}) = \frac 23$, and so on.)

But we don't generally use function notation for sequences. Instead, we write them like this:$\left(\frac{n}{n+1}\right)_{\textcolor{#1d4ed8}{n \in \mathbb{N}}}$This notation basically means "compute $\frac{n}{n + 1}$ for all $n$ in $\mathbb{N}$". Which makes sense, because that's exactly what our pizza sequence is.

But sometimes we don't know exactly what our sequence is. When writing proofs, we will often discuss mystery sequences, where we know some properties of the sequence but not its exact values. In that case, we can't write an exact formula for the terms, so we just write$(x_n)_{\textcolor{#1d4ed8}{n \in \mathbb{N}}}$instead. Here, $x_n$ is a mystery function that has an unknown value for each $\textcolor{#1d4ed8}{n}$.

##### Side note

If you're in the mood for using mystery notation, you could describe the pizza sequence as "$(x_n)_{n \in \mathbb{N}}$ where $x_n = \frac{n}{n+1}$ for all $n$ in $\mathbb{N}$". Of course, describing the values of $x_n$ really ruins the mystery.

## Graphing Sequences

It is much easier to understand the behavior of a sequence if you have a graph:

0.40.50.60.70.80.911.1
$\frac{n}{n+1}$
$1 / 2$
$2 / 3$
$3 / 4$
$4 / 5$
$5 / 6$
$6 / 7$
$7 / 8$
$8 / 9$
$9 / 10$
$10 / 11$
$11 / 12$
$12 / 13$
$13 / 14$
$14 / 15$
$15 / 16$
$16 / 17$
$17 / 18$
$18 / 19$
$19 / 20$
$20 / 21$
$21 / 22$
$22 / 23$
$23 / 24$
$24 / 25$
$25 / 26$
$26 / 27$
$27 / 28$
$28 / 29$
$29 / 30$
$30 / 31$
$31 / 32$
$32 / 33$
$33 / 34$
$34 / 35$
$35 / 36$
$36 / 37$
$37 / 38$
$38 / 39$
$39 / 40$
$40 / 41$
$41 / 42$
$42 / 43$
$43 / 44$
$44 / 45$
$45 / 46$
$46 / 47$
$47 / 48$
$48 / 49$
$49 / 50$
$\textcolor{blue}{n \in \mathbb{N}}$
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
$\left( \frac{n}{n+1} \right)_{\textcolor{#1d4ed8}{n \in \mathbb{N}}}$

It looks like the terms of this sequence get closer and closer to 1 as $\textcolor{#1d4ed8}{n}$ gets larger. This concept of converging to a value is essential in analysis, so keep your eyes peeled for graphs that look like this.

##### Side note

It makes sense that the sequence converges to 1, because for large $\textcolor{#1d4ed8}{n}$, the terms become fractions like $\frac{999,999}{1,000,000}$, which is pretty much 1.

## Sequence Gallery

The best way to become familiar with sequences is to look at a lot of them. The following gallery contains a selection of interesting sequences:

-60-40-200204060
$\left( n \right)_{\textcolor{#1d4ed8}{n \in \mathbb{N}}}$
-101
$\left( \frac{1}{n} \right)_{\textcolor{#1d4ed8}{n \in \mathbb{N}}}$
-101
$\left( (-1)^n \right)_{\textcolor{#1d4ed8}{n \in \mathbb{N}}}$
-101
$\left( \frac{(-1)^n}{n} \right)_{\textcolor{#1d4ed8}{n \in \mathbb{N}}}$

If you had to classify these sequences into categories, how might you divide them up? (In the next section, we will discuss one way that mathematicians classify sequences.)

Of course! I can't show you all these examples without giving you the chance to build a sequence of your own.

Enter an expression using $\textcolor{#1d4ed8}{n}$ into the box below to create a sequence.

0.40.50.60.70.80.91
$\frac{n}{n+1}$
$\frac{1}{2}$
$\frac{2}{3}$
$\frac{3}{4}$
$\frac{4}{5}$
$\frac{5}{6}$
$\frac{6}{7}$
$\frac{7}{8}$
$\frac{8}{9}$
$\frac{9}{10}$
$\frac{10}{11}$
$\frac{11}{12}$
$\frac{12}{13}$
$\frac{13}{14}$
$\frac{14}{15}$
$\frac{15}{16}$
$\frac{16}{17}$
$\frac{17}{18}$
$\frac{18}{19}$
$\frac{19}{20}$
$\frac{20}{21}$
$\frac{21}{22}$
$\frac{22}{23}$
$\frac{23}{24}$
$\frac{24}{25}$
$\frac{25}{26}$
$\frac{26}{27}$
$\frac{27}{28}$
$\frac{28}{29}$
$\frac{29}{30}$
$\frac{30}{31}$
$\frac{31}{32}$
$\frac{32}{33}$
$\frac{33}{34}$
$\frac{34}{35}$
$\frac{35}{36}$
$\frac{36}{37}$
$\frac{37}{38}$
$\frac{38}{39}$
$\frac{39}{40}$
$\frac{40}{41}$
$\frac{41}{42}$
$\frac{42}{43}$
$\frac{43}{44}$
$\frac{44}{45}$
$\frac{45}{46}$
$\frac{46}{47}$
$\frac{47}{48}$
$\frac{48}{49}$
$\frac{49}{50}$
$\frac{50}{51}$
$\frac{51}{52}$
$\frac{52}{53}$
$\frac{53}{54}$
$\frac{54}{55}$
$\frac{55}{56}$
$\textcolor{blue}{n \in \mathbb{N}}$
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55  