Sequences

In mathematics, a sequence is an enumerated collection of objects in which repetitions are allowed and order matters. Like a set, it contains members (also called elements, or terms). The number of elements (possibly infinite) is called the length of the sequence. Unlike a set, the same elements can appear multiple times at different positions in a sequence, and unlike a set, the order does matter. Formally, a sequence can be defined as a function whose domain is either the set of the natural numbers (for infinite sequences), or the set of the first n natural numbers (for a sequence of finite length n). Sequences are one type of indexed families as an indexed family is defined as a function which domain is called the index set, and the elements of the index set are the indices for the elements of the function image.
For example, (M, A, R, Y) is a sequence of letters with the letter 'M' first and 'Y' last. This sequence differs from (A, R, M, Y). Also, the sequence (1, 1, 2, 3, 5, 8), which contains the number 1 at two different positions, is a valid sequence. Sequences can be finite, as in these examples, or infinite, such as the sequence of all even positive integers (2, 4, 6, ...).
The position of an element in a sequence is its rank or index; it is the natural number for which the element is the image. The first element has index 0 or 1, depending on the context or a specific convention. In mathematical analysis, a sequence is often denoted by letters in the form of




a

n




{\displaystyle a_{n}}
,




b

n




{\displaystyle b_{n}}
and




c

n




{\displaystyle c_{n}}
, where the subscript n refers to the nth element of the sequence; for example, the nth element of the Fibonacci sequence



F


{\displaystyle F}
is generally denoted as




F

n




{\displaystyle F_{n}}
.

In computing and computer science, finite sequences are sometimes called strings, words or lists, the different names commonly corresponding to different ways to represent them in computer memory; infinite sequences are called streams. The empty sequence ( ) is included in most notions of sequence, but may be excluded depending on the context.

View More On Wikipedia.org
  • 560

    Greg Bernhardt

    A PF Singularity From USA
    • Messages
      19,443
    • Media
      227
    • Reaction score
      10,021
    • Points
      1,237
  • 2

    Amad27

    A PF Electron
    • Messages
      412
    • Reaction score
      1
    • Points
      16
  • 1

    3102

    A PF Quark
    • Messages
      19
    • Reaction score
      0
    • Points
      1
  • 1

    Maddiefayee

    A PF Quark
    • Messages
      5
    • Reaction score
      0
    • Points
      4
  • 1

    juanitotruan77

    A PF Electron
    • Messages
      44
    • Reaction score
      0
    • Points
      11
  • 1

    Tommy941

    A PF Quark From Leeds
    • Messages
      6
    • Reaction score
      0
    • Points
      1
  • 1

    Aceix

    A PF Atom
    • Messages
      49
    • Reaction score
      1
    • Points
      36
  • 1

    Wuberdall

    A PF Atom
    • Messages
      34
    • Reaction score
      0
    • Points
      34
  • 1

    matthew1

    A PF Atom
    • Messages
      5
    • Reaction score
      0
    • Points
      31
  • 1

    Terrell

    A PF Atom
    • Messages
      317
    • Reaction score
      26
    • Points
      48
  • 1

    tawi

    A PF Quark
    • Messages
      33
    • Reaction score
      0
    • Points
      1
  • 1

    QuantumP7

    A PF Molecule From United States of America
    • Messages
      68
    • Reaction score
      0
    • Points
      64
  • 1

    Euler2718

    A PF Molecule
    • Messages
      90
    • Reaction score
      3
    • Points
      61
  • 1

    gsmtiger18

    A PF Quark
    • Messages
      29
    • Reaction score
      0
    • Points
      1
  • 1

    Jess Karakov

    A PF Electron
    • Messages
      11
    • Reaction score
      3
    • Points
      21
  • 1

    The-Mad-Lisper

    A PF Electron
    • Messages
      12
    • Reaction score
      1
    • Points
      11
  • 1

    nfcfox

    A PF Quark 25 From Mooresville, NC
    • Messages
      36
    • Reaction score
      0
    • Points
      4
  • 1

    adjacent

    Emperor 25 From Maldives
    • Messages
      1,552
    • Reaction score
      63
    • Points
      121
  • 1

    Ryaners

    A PF Electron From Ireland
    • Messages
      50
    • Reaction score
      2
    • Points
      14
  • 1

    TheChemist_

    A PF Quark
    • Messages
      22
    • Reaction score
      1
    • Points
      4
  • Back
    Top