Sequences and Tuples

Learn about sequences and tuples.

When working with sets, we might need to list the elements of a set in some order. This process is called enumerating a set. Because enumeration also applies to infinite sets, the ordering of the elements of an infinite set is typically defined as a function from the set of nonnegative integers to the elements of the set under consideration.

What is a sequence?

A sequence is an ordered list of elements that can be finite or infinite. The order of the elements is normally maintained by indexing them by the set of nonnegative integers, although other indexing sets can also be used. More formally, a sequence can be viewed as a function from nonnegative integers to a set A={a0,a1,a2,a3,}A=\{a_0,a_1,a_2,a_3,\ldots\}, and is represented as an\langle a_n\rangle, where the subscript nn represents the position of ana_n in the sequence.

Let’s look at a few examples to further comprehend the concept of sequences.

Examples

Let’s consider the sequence an\langle a_n\rangle, where a general term an=1(n+1)a_n = {1\over(n+1)} for n=0,1,2,3,n=0,1,2,3, \ldots . We can enumerate this sequence as follows:

Get hands-on with 1200+ tech skills courses.