ScholarQuill logoScholarQuillUniversity Notes
  • Notes
  • Past Papers
  • Blogs
  • Todo
Login
ScholarQuill logoScholarQuillUniversity Notes
Login
NotesPast PapersBlogsTodo
More
SubjectsDiscussionCGPA CalculatorGPA CalculatorStudent PortalCourse Outline
About
About usPrivacy PolicyReportContact
Notes
Past Papers
Blogs
Todo
Analytics
    Current Subject
    🧩
    Discrete Structures
    CSI-303
    Progress0 / 21 topics
    Topics
    1. Introduction to Logic and Proofs2. Direct Proofs3. Proof by Contradiction4. Sets5. Combinatorics6. Sequences7. Formal Logic8. Propositional and Predicate Calculus9. Methods of Proof10. Mathematical Induction and Recursion11. Loop Invariants12. Relations and Functions13. Pigeonhole Principle14. Trees and Graphs15. Elementary Number Theory16. Optimization and Matching17. Fundamental Structures18. Functions19. Relations (Recursions)20. Cardinality and Countability21. Probabilistic Methods
    CSI-303›Sequences
    Discrete StructuresTopic 6 of 21

    Sequences

    11 minread
    1,948words
    Intermediatelevel

    Sequences

    A sequence is an ordered list of elements (often numbers) that follow a particular rule or pattern. Sequences are foundational concepts in mathematics, especially in areas such as analysis, number theory, and computer science. Sequences can be finite or infinite and are used to model and describe various phenomena in mathematics and beyond.

    Key Concepts in Sequences

    1. Definition of a Sequence

    A sequence is typically denoted as:

    a1,a2,a3,…,an,…a_1, a_2, a_3, \dots, a_n, \dotsa1​,a2​,a3​,…,an​,…

    where a1,a2,a3,…a_1, a_2, a_3, \dotsa1​,a2​,a3​,… are the terms of the sequence. The term ana_nan​ represents the nnn-th element of the sequence.

    • Finite Sequence: A sequence that has a specific number of terms. For example, the sequence of first 4 natural numbers:

      1,2,3,41, 2, 3, 41,2,3,4
    • Infinite Sequence: A sequence that continues indefinitely. For example, the sequence of all natural numbers:

      1,2,3,4,5,…1, 2, 3, 4, 5, \dots1,2,3,4,5,…

    2. Types of Sequences

    • Arithmetic Sequence (Arithmetic Progression): In an arithmetic sequence, the difference between any two consecutive terms is constant. This difference is called the common difference and is often denoted by ddd.

      • The general form of an arithmetic sequence is:

        an=a1+(n−1)⋅da_n = a_1 + (n - 1) \cdot dan​=a1​+(n−1)⋅d

        where a1a_1a1​ is the first term and ddd is the common difference.

      • Example: 2,5,8,11,14,…2, 5, 8, 11, 14, \dots2,5,8,11,14,…, where the common difference d=3d = 3d=3.

      • To find the 10th term of the sequence:

        a10=2+(10−1)⋅3=2+27=29a_{10} = 2 + (10 - 1) \cdot 3 = 2 + 27 = 29a10​=2+(10−1)⋅3=2+27=29
    • Geometric Sequence (Geometric Progression): In a geometric sequence, each term is found by multiplying the previous term by a constant called the common ratio, denoted by rrr.

      • The general form of a geometric sequence is:

        an=a1⋅rn−1a_n = a_1 \cdot r^{n-1}an​=a1​⋅rn−1

        where a1a_1a1​ is the first term and rrr is the common ratio.

      • Example: 3,6,12,24,48,…3, 6, 12, 24, 48, \dots3,6,12,24,48,…, where the common ratio r=2r = 2r=2.

      • To find the 5th term of the sequence:

        a5=3⋅25−1=3⋅16=48a_5 = 3 \cdot 2^{5-1} = 3 \cdot 16 = 48a5​=3⋅25−1=3⋅16=48
    • Fibonacci Sequence: The Fibonacci sequence is a special type of recursive sequence where each term is the sum of the two preceding terms. It starts with a1=0a_1 = 0a1​=0 and a2=1a_2 = 1a2​=1, and each subsequent term is the sum of the two previous terms:

      0,1,1,2,3,5,8,13,21,…0, 1, 1, 2, 3, 5, 8, 13, 21, \dots0,1,1,2,3,5,8,13,21,…

      The Fibonacci sequence is defined recursively as:

      an=an−1+an−2,for n≥3a_n = a_{n-1} + a_{n-2}, \quad \text{for } n \geq 3an​=an−1​+an−2​,for n≥3

    3. Recursive Sequences

    A recursive sequence is a sequence where each term is defined in terms of one or more previous terms. This contrasts with explicit formulas, which provide a direct way to compute the nnn-th term.

    • Example of a recursive sequence:

      • a1=2a_1 = 2a1​=2, and
      • an=an−1+3a_n = a_{n-1} + 3an​=an−1​+3, for n>1n > 1n>1.

      This sequence is defined by the recurrence relation:

      a1=2,a2=5,a3=8,a4=11,…a_1 = 2, \quad a_2 = 5, \quad a_3 = 8, \quad a_4 = 11, \dotsa1​=2,a2​=5,a3​=8,a4​=11,…
    • Recurrence Relations: A recurrence relation expresses each term of a sequence as a function of one or more preceding terms. For example:

      an=2an−1−1,with a1=1a_n = 2a_{n-1} - 1, \quad \text{with } a_1 = 1an​=2an−1​−1,with a1​=1

      This recurrence defines a sequence where each term is twice the previous term minus 1.

    4. Monotonic Sequences

    A monotonic sequence is a sequence that is either entirely non-increasing or non-decreasing. Specifically:

    • Increasing Sequence: A sequence where each term is greater than or equal to the previous one.

      a1≤a2≤a3≤…a_1 \leq a_2 \leq a_3 \leq \dotsa1​≤a2​≤a3​≤…
    • Decreasing Sequence: A sequence where each term is less than or equal to the previous one.

      a1≥a2≥a3≥…a_1 \geq a_2 \geq a_3 \geq \dotsa1​≥a2​≥a3​≥…
    • Strictly Increasing or Decreasing Sequence: A sequence where each term is strictly greater (or less) than the previous one.

      a1<a2<a3<…(strictly increasing)a_1 < a_2 < a_3 < \dots \quad \text{(strictly increasing)}a1​<a2​<a3​<…(strictly increasing) a1>a2>a3>…(strictly decreasing)a_1 > a_2 > a_3 > \dots \quad \text{(strictly decreasing)}a1​>a2​>a3​>…(strictly decreasing)

    5. Limit of a Sequence

    The limit of a sequence describes the value that the terms of the sequence approach as the index nnn becomes larger and larger. If a sequence approaches a specific value as n→∞n \to \inftyn→∞, that value is called the limit.

    • For example, consider the sequence 1n\frac{1}{n}n1​, which approaches 0 as nnn increases: 1,12,13,…1, \frac{1}{2}, \frac{1}{3}, \dots1,21​,31​,… In this case, the limit of the sequence is: lim⁡n→∞1n=0\lim_{n \to \infty} \frac{1}{n} = 0n→∞lim​n1​=0

    6. Sum of a Sequence (Series)

    The sum of a sequence is known as a series. For example:

    • Arithmetic Series: The sum of the first nnn terms of an arithmetic sequence can be found using the formula:

      Sn=n2⋅(a1+an)S_n = \frac{n}{2} \cdot (a_1 + a_n)Sn​=2n​⋅(a1​+an​)

      where a1a_1a1​ is the first term, ana_nan​ is the nnn-th term, and nnn is the number of terms.

    • Geometric Series: The sum of the first nnn terms of a geometric sequence is given by:

      Sn=a1⋅1−rn1−r(if r≠1)S_n = a_1 \cdot \frac{1 - r^n}{1 - r} \quad \text{(if } r \neq 1 \text{)}Sn​=a1​⋅1−r1−rn​(if r=1)

      where a1a_1a1​ is the first term and rrr is the common ratio.

      For an infinite geometric series (where ∣r∣<1|r| < 1∣r∣<1), the sum is:

      S=a11−rS = \frac{a_1}{1 - r}S=1−ra1​​

    7. Convergence and Divergence

    • A sequence is said to converge if it has a finite limit as nnn approaches infinity. For example, 1n\frac{1}{n}n1​ converges to 0.

    • A sequence diverges if it does not approach a finite limit. For example, the sequence 1,2,3,…1, 2, 3, \dots1,2,3,… diverges because it increases without bound.

    8. Common Sequences

    • Arithmetic Sequence: A sequence where the difference between consecutive terms is constant.

      2,5,8,11,14,…2, 5, 8, 11, 14, \dots2,5,8,11,14,…
    • Geometric Sequence: A sequence where each term is the previous term multiplied by a constant ratio.

      3,6,12,24,48,…3, 6, 12, 24, 48, \dots3,6,12,24,48,…
    • Fibonacci Sequence: A recursive sequence where each term is the sum of the previous two terms.

      0,1,1,2,3,5,8,13,…0, 1, 1, 2, 3, 5, 8, 13, \dots0,1,1,2,3,5,8,13,…

    9. Applications of Sequences

    • Modeling Growth: Sequences are used to model various types of growth, such as population growth, financial interest calculations, and the spread of diseases.
    • Algorithm Design: Many algorithms in computer science rely on recursive sequences, such as divide-and-conquer algorithms.
    • Physics and Engineering: Sequences are used to model waveforms, signal processing, and other time-dependent phenomena.

    Conclusion

    Sequences are a fundamental concept in mathematics and have a wide range of applications in science, engineering, and computer science. Understanding different types of sequences, such as arithmetic, geometric, and Fibonacci

    Previous topic 5
    Combinatorics
    Next topic 7
    Formal Logic

    Past Papers

    Open this section to load past papers

    Click on Show Past Papers to see past papers.
    On This Page
      Reading Stats
      Est. reading time11 min
      Word count1,948
      Code examples0
      DifficultyIntermediate