Module 1: Basic Set Theory
Module 2: Modular Arithmetic, Divisibility, and the Fundamental Theorem of Arithmetic
Module 3: Functions and Relations
Module 4: Truth Tables and Symbolic Logic
Module 5: Basic Direct Proofs
Module 6: Proof Techniques Part 1: Contrapositive and Contradiction
Module 7: Sequences, Sums, and Products
Module 8: Proof Techniques Part 2: (Weak) Induction
Module 9: Recurrence Relations and Recursion
Module 10: Counting Systems (Binary, Hex, Octal, etc.)
Module 11: Combinatorics
Module 12: Graph Theory
Module 13: Review

Sequences

Recall that when we defined sets, we stated that sets like \(\{0,1,2,3,4,5,…\}\) and \(\{0,2,1,3,4,6,5,7,…\}\) were equal because they contained the same elements. However, as sequences these are not equal because, while they have the same elements, they are in a different order. With sequences, order matters; that is, we care about which element is listed first, second, third, etc.

More often than not, we will be dealing with infinite sequences. In fact, some authors define sequences to be an infinite enumerable linearly ordered set.

Representing Sequences

As seen above, we can represent sequences as a list of elements between either curly brackets or round braces. For instance, the sequences below are equal, but differ only in notation.

$$\{2,56,3,6,0,-12,…\}$$

$$(2,56,3,6,0,-12,…)$$

When dealing with abstract symbolically represented sequences where we don’t necessarily know what the elements or entries of the sequence are outright, we can use subscript notation. For example, we could say something like “Let \(A=\{a_1,a_2,a_3,a_4,…\}\) be a sequence such that… .” Each of the \(a_1,a_2,\) etc. represent the elements of the sequence, and the subscript number indicate that element’s position in the sequence. So, if given an arbitrary sequence like \(A\) above, the element \(a_{23}\) represents whatever the 23rd element of the sequence \(A\) is.

Generating Sequences from a Closed Formula

The subscript notation above is useful when each value of a given sequence depends on its position in the sequence. For instance, let \(B=\{b_1,b_2,b_3,b_4,b_5,b_6,…\}\) be defined as the sequence

$$B=\{2,4,8,16,32,64,…\}=\{2^1,2^2,2^3,2^4,2^5,2^6,…\}.$$

The first entry is \(b_1=2^1\), the second is \(b_2=2^2\), the third is \(b_3=2^3\), and so on. That is to say, the power on \(2\) was dictated by what entry in the sequence we are talking about (first, second, third, etc.).

Thus, in cases like these, where each value of the sequence depends on its location, we can define a rule that generates the sequence, entry-by-entry. Such a rule is also called a closed formula.

In the case above, we could define the sequence by saying “Let \(B=\{b_1,b_2,b_3,b_4,b_5,…\}\) be the sequence defined by \(b_i=2^i\).” The \(i\) (called the index of the sequence) in this case indicates position in the sequence, and the expression \(b_i=2^i\) tells you that the element at position \(i\) is \(2^i\). For instance, the element in \(B\) at position \(i=12\) is given by \(b_{12}=2^{12}=4096\).

We can use rules such as the above to generate the values of our sequence entry-by-entry.

Solution: \(C=\{3,5,7,9,11,13,…\}\)

This is because

\(c_1=2(1)+1\)

\(c_2=2(2)+1\)

\(c_3=2(3)+1\)

\(c_4=2(4)+1\)

\(c_5=2(5)+1\)

\(c_6=2(6)+1\)

Another way of thinking about generating sequences like the above is that the rule \(b_i\) gives you a function that helps you compute each entry of the sequence. And, to generate each element of the sequence, all one needs to do is plug in each natural number, \(1,2,3,4,\) etc., one after the other.

To compactify the notation for sequences like \(A=\{a_1,a_2,a_3,a_4,…\}\), we can write instead \(A=\{a_i\}_{i=0}^\infty\) or \((a_i)_{i=1}^\infty\) (or \((a_i)\) for shorthand when the sub and superscripts are known/understood). The subscript \(i=0\) indicates where the sequence starts counting (in this case, we start counting at \(i=1\)) and the superscript indicates where the sequence stops counting (in this case, the \(\infty\) indicates that we don’t stop counting).

Caveat: Starting Points for Sequences

Sequences don’t need to “start counting” at 1. One could define a sequence like \(D=(d_i)_{i=4}^\infty\) where \(d_i=3+4i\). Writing out the elements of this sequence gives us

$$D=(3+4(4),3+4(5),3+4(6), 3+4(7),…)=(19,23, 27,31, …)$$

Notice that the first element was found by starting with \(i=4\) (i.e. plugging in \(4\) instead of \(1\)).

Finding Rules from Sequences Listed Directly

Perhaps in an earlier math class, you were given a sequence like

$$\{2,4,6,8,10,…\}$$

and were then asked to “find the next three terms/entries, assuming the pattern continues.” To do this, you would notice the pattern, and then extrapolate the next three terms of the sequence based on that pattern. In this case, obviously, the next three numbers are \(12,14,16\). One could keep listing out numbers if they wished.

CAVEAT: The key assumption with the above example was that the pattern continued. Without that assumption, technically, there is no way to know what the next element of the sequence is.

But what if instead of being asked to list off the next several elements, someone asked you to find the 1,023,353rd element of the sequence, based on the pattern. You’d kill a few trees worth of paper if you tried to list out everything up to the 1,023,353rd element… and what if you miscounted? Alternatively, you could write a program to do all this for you. All this sounds so painful, considering that the pattern is so obvious!

We could instead just come up with a rule that tells us what the \(i\)th entry of the sequence is, based on the pattern we see.

Recall that for sequences like \(F=\{f_i\}_{i=1}^\infty\) where \(f_i=i^2\) for all \(i\geq 1\), we could generate the entries of \(F\) by simply plugging in each of \(i=1,2,3,4,…\) into the rule \(f_i=i^2\). Each entry of the sequence is therefore obtained by performing the same operations on \(i=1,2,3,4,…\).

Thus, when given a sequence defined by an explicit list, such as \(A=\{a_1,a_2,a_3,a_4,…\}\), we may be able to find a rule \(a_i\) by determining what operations were performed on \(i=1\) to get the first entry \(a_1\), what operations were performed on \(i=2\) to get the second entry \(a_2\), on \(i=3\) for the third entry \(a_3\), and so on.

If the same operations are performed on each of \(i=1,2,3,\) etc. to get \(a_1,a_2,a_3,…\), then that is what gives you your rule.

It helps to build a table listing the entries we have so far, and leave the last column for the rule that we come up with.

Entry # (\(i=\))12345…\(i\)
Element \(a_i=\)\(\frac{1}{1}\)\(\frac{1}{2}\)\(\frac{1}{3}\)\(\frac{1}{4}\)\(\frac{1}{5}\)

Now, looking at the table, how is each entry in the first row related to the corresponding entry in the second row?

In this case, it appears that to get the sequence element from the index \(i\), we simply reciprocate the given index. In other words, it seems that the rule is given by taking each \(i\) and putting it in the bottom of the fraction.

So, the rule here is \(a_i=\frac{1}{i}\).

Using this to get the \(234\)th entry of the sequence, we see that \(a_{234}=\frac{1}{234}\).

\(A=\{5,7,9,11,13,15,…\}\)

\(a_1=2(1)+3=5\)

\(a_2=2(2)+3=7\)

\(a_3=2(3)+3=9\)

\(a_4=2(4)+3=11\)

\(a_5=2(5)+3=13\)

\(a_6=2(6)+3=15\)

\(A=\{1,2,3,4,5,…\}\)

Note that the rule we are given is \(a_i=i\), which means that the \(i\)th entry of the sequence is \(i\). (i.e. \(a_1=1\), \(a_2=2\), \(a_3=3\), \(a_4=4\), etc.\). The rule \(a_i\) given describes what the element at position \(i\) looks like (or, rather, how it is computed from \(i\)). In this case, there really wasn’t much computation to get each entry.

We want to find a relationship between the position of each element in the sequence and the value at that position. So, for instance, how is \(1\) related to \(\frac{1}{2}\); how is \(2\) related to \(\frac{1}{4}\); how is \(3\) related to \(\frac{1}{6}\)? Can you come up with a rule based on this?

\(i=\)12345…\(i\)
\(a_i=\)\(\frac{1}{2}\)\(\frac{1}{4}\)\(\frac{1}{6}\)\(\frac{1}{8}\)\(\frac{1}{10}\)\(\frac{1}{2i}\)

It seems that the pattern going from the indices (first row of table) to the element at that location in the sequence is “\(1\) divided by \(2\) times the index.” That is, it seems that the rule is “multiply the index by \(2\), then divide \(1\) by it.” This is indicated symbolically in the last column.

We want to find a relationship between the position of each element in the sequence and the value at that position. So, for instance, how is \(1\) related to \(\frac{2}{3}\); how is \(2\) related to \(\frac{3}{5}\); how is \(3\) related to \(\frac{4}{7}\)? Can you come up with a rule based on this?

Sometimes its helpful to see if you can generate the next few sequence elements first before trying to come up with a closed formula.

\(i=\)12345…\(i\)
\(a_i=\)\(\frac{2}{3}\)\(\frac{3}{5}\)\(\frac{4}{7}\)\(\frac{5}{9}\)\(\frac{6}{11}\)\(\frac{1+i}{1+2i}\)

From element to element, it appears that the numerator is increasing by \(1\) every time \(i\) increases by \(1\) (i.e. when we move from column to column). The denominator seems to be increasing by \(2\) every time \(i\) increases by \(i\). The numerator starts at \(2\) and the denominator starts at \(3\). Using this idea, we notice that the closed formula \(\frac{1+i}{1+2i}\) fits the given sequence, because we are incrementing the numerator by \(1\) and denominator by \(2\) for each column.

Notice that the sequence given is similar to the sequence of squares \((1,4,9,16,25,…)\). What is this sequence generated by.

Since the sequence \((1,4,9,16,25,…)\) is generated by \(2^i\) for \(i\geq 1\), and since every entry in the given sequence \(A=(0,3,8,15,24, …)\) is one fewer than the sequence of squares, we have that our sequence is generated by \(a_i=i^2-1\).

Scroll to Top