Sequence

A function from the natural numbers to a set.
Sequence

A sequence in a XX is a a:NXa:\mathbb{N}\to X, where N\mathbb{N} is the . One writes ana_n for a(n)a(n), so the sequence is denoted (an)nN(a_n)_{n\in\mathbb{N}}.

Thus a sequence is a function with N\mathbb{N} and XX, and it can be manipulated using standard function constructions such as and .

Examples:

  • The rule an=1/(n+1)a_n = 1/(n+1) defines a sequence of .
  • The rule an=7a_n=7 for all nNn\in\mathbb{N} defines a constant sequence in Z\mathbb{Z} (the ).