Introduction to Sequences
Last Updated :
23 Jul, 2025
A sequence is a list of numbers arranged in a specific order, following a particular rule. Each number in the sequence is called a term.
In mathematics, a sequence is an ordered list of numbers, where each number in the list is called a term. Sequences are defined by a specific rule that determines how each term is generated from its predecessor.
Example:
Sequence: 2, 4, 6, 8, 10,…
Rule: Add 2 to the previous term to get the next term.
Order of Sequence
Order of a sequence in mathematics refers to the arrangement of its terms based on their position or value, usually indexed by natural numbers. There are generally two types of order of sequences:
- Ascending Order
- Descending Order
Ascending Order
When we talk about the ascending order of a sequence, we refer to arranging the terms of the sequence from the smallest to the largest. This concept is straightforward and is commonly used to organize data in a manner that is easy to analyze and understand.
Examples of Sequences in Ascending Order:
- Original Sequence: 7, 2, 9, 4, 5
- Ascending Order: 2, 4, 5, 7, 9
- Original Sequence: 2, 5, 8, 11, 14, ...
- Ascending Order: 2, 5, 8, 11, 14, ...
Descending Order
When we talk about the descending order of a sequence, we refer to arranging the terms of the sequence from the largest to the smallest. This is the opposite of ascending order and is commonly used to prioritize data based on magnitude.
Examples of Sequences in Descending Order:
- Original Sequence: 7, 2, 9, 4, 5
- Descending Order: 9, 7, 5, 4, 2
- Original Sequence: 14, 11, 8, 5, 2, ...
- Descending Order: 14, 11, 8, 5, 2, ...
Finite and Infinite Sequences
In mathematics, sequences can be classified as either finite or infinite based on the number of terms they contain. Let's learn about them in detail.
Finite Sequence
A finite sequence has a limited number of terms. It starts at a specific term and ends at a specific term.
Example:
- Sequence of First Five Natural Numbers: 1, 2, 3, 4, 5
- Sequence of First Five Even Numbers: 2, 4, 6, 8, 10
Infinite Sequence
An infinite sequence has an unlimited number of terms. It continues indefinitely without terminating.
Example:
- Sequence of Natural Numbers: 1, 2, 3, 4, 5, ...
- Sequence of Even Numbers: 2, 4, 6, 8, 10, ...
Types of Sequences in Math
There are many types of sequences but mostly four types of sequences are well known, let's take a look at these 4 types,
- Arithmetic Sequences
- Geometric Sequences
- Harmonic Sequences
- Fibonacci Numbers
Arithmetic Sequences
In an arithmetic sequence, the difference between consecutive terms is always the same. For example, the sequence 5, 9, 13, 17... is arithmetic because the difference between consecutive terms is always four.
Arithmetic ProgressionThe difference between a sequence and a progression is that to calculate its nth term, a progression has a specific formula i.e,
Tn = a + (n - 1)d
Which is the formula of the nth term of an arithmetic progression.
Geometric Sequences
A geometric sequence goes from one term to the next by always multiplying or dividing by the same value. The number multiplied (or divided) at each stage of a geometrical sequence is named the common ratio.
The formula for the nth term of the geometric sequence is, where a1 is the first term, r is the common ratio, and an is the nth term,
an = a1 rn-1
The sum of n terms in Geometric Sequence is:
.png)
Harmonic Sequences
Harmonic sequence, in mathematics, a sequence of numbers a1, a2, a3,… such their reciprocals 1/ a1, 1/ a2, 1/ a3,… form an arithmetic sequence (numbers separated by a common difference). The arithmetic sequence is just the reciprocal of the harmonic sequence.
Harmonic SequencesThe nth term for the harmonic sequence where Tn is the nth term, n is the number of terms, and d is a common difference,
T_n~=~\frac{1}{a+(n-1)d}
Fibonacci Sequences
Fibonacci series 1, 1, 2, 3, 5, 8, ... is an example of a sequence. The Fibonacci sequence is basically a sequence where the next term is the sum of the earlier 2 terms starting with 1.
Other Sequences in Maths are:
Triangular Number Sequence
The triangular number sequence is a pattern of numbers that represent the number of dots that can form an equilateral triangle. The n-th triangular number is the number of dots in a triangle with n dots on each side. Formula for the Triangular Number Sequence is added below:
Tn = n(n + 1)/2
Example: 1, 3, 6, 10, ...
Square Number Sequence
The square number sequence is a pattern of numbers that represent the number of dots that can form a perfect square. Each term in the sequence is the square of an integer.
Formula for Sequence Number Sequence is added below:
Sn = n2
Example: 1, 4, 9, 16, ...
Cube Number Sequence
The cube number sequence is a pattern of numbers that represent the number of smaller cubes that can form a perfect cube. Each term in the sequence is the cube of an integer.
Cn = n3
Example: 1, 8, 27, 64, ...
Rules of Sequences
Sequences follow specific rules that define how each term is generated. These rules can vary widely depending on the type of sequence.
- Difference between consecutive terms is constant in the Arithmetic Sequence.
- Each term is obtained by multiplying the previous term by a fixed, non-zero number called the common ratio in Geometric Sequence.
- Each term is the sum of the two preceding terms in the Fibonacci Sequence.
- Each term is the square of its position in the sequence in the Square Number Sequence.
- Each term is the cube of its position in the sequence in the Cube Number Sequence.
- Each term is the reciprocal of its position in the sequence in the Harmonic Sequence.
Various sequence formulas are added in the table below:
Sequences | Formulas |
---|
Arithmetic Sequence | an = a + (n - 1) d |
Geometric Sequence | an = arn-1 |
Fibonacci Sequence | an+2 = an+1 + an |
Square Number Sequence | an = n2 |
Cube Number Sequence | an = n3 |
Triangular Number Sequence | an = ∑k=1n n |
Read More:
Solved Examples of Sequences
Example 1: Find the 17th term of the following arithmetic progression 6, 10, 14, 18, 22, 26, ...
Solution:
Formula of nth term of an A.P. is Tn = a + (n-1)d
Here, a = 6 and d = (10 - 6) = 4
Therefore, 17th term = 6 + (17 - 1) × 4
= 6 + 16 × 4 = 6 + 64 = 70
Example 2: Find the sum of the following arithmetic progression 2, 7, 12, 17, 22, ...., 52
Solution:
Formula of sum of an A.P. when first and last term is given is: [n / 2](a + l)
Here, a = 2, d = 5 and l = 52
Tn = a + (n - 1)d
Therefore, 52 = 2 + (n - 1 ) × 5
52 = 2 + 5 × n -5
52 + 3 = 5 × n
55/5 = n
n = 11
Therefore, sum = (11/2) × (2 + 52)
= 11/2 × 54
= 11 × 27 = 297
Example 3: Is the given series a Geometric progression: 2, 4, 8, 32, 64, 128.
Solution:
In a geometric progression, the common ratio is a fixed number but in this series we have two common ratio as 4/2 = 2 and 32/8 = 4
Therefore, it's not a geometrical progression.
Example 4: Find the common ratio of the following series: 3, 6, 12, 24, 48, ...
Solution:
Common Ratio = (Current Term)/ (Preceding Term)
= 12/6 = 2
Fibonacci Sequence- Definition, Formula, List and Examples
Fibonacci Sequence- Definition, Formula, List and Examples
Fibonacci Sequence in Maths
Similar Reads
Basics & Prerequisites
Data Structures
Array Data StructureIn this article, we introduce array, implementation in different popular languages, its basic operations and commonly seen problems / interview questions. An array stores items (in case of C/C++ and Java Primitive Arrays) or their references (in case of Python, JS, Java Non-Primitive) at contiguous
3 min read
String in Data StructureA string is a sequence of characters. The following facts make string an interesting data structure.Small set of elements. Unlike normal array, strings typically have smaller set of items. For example, lowercase English alphabet has only 26 characters. ASCII has only 256 characters.Strings are immut
2 min read
Hashing in Data StructureHashing is a technique used in data structures that efficiently stores and retrieves data in a way that allows for quick access. Hashing involves mapping data to a specific index in a hash table (an array of items) using a hash function. It enables fast retrieval of information based on its key. The
2 min read
Linked List Data StructureA linked list is a fundamental data structure in computer science. It mainly allows efficient insertion and deletion operations compared to arrays. Like arrays, it is also used to implement other data structures like stack, queue and deque. Hereâs the comparison of Linked List vs Arrays Linked List:
2 min read
Stack Data StructureA Stack is a linear data structure that follows a particular order in which the operations are performed. The order may be LIFO(Last In First Out) or FILO(First In Last Out). LIFO implies that the element that is inserted last, comes out first and FILO implies that the element that is inserted first
2 min read
Queue Data StructureA Queue Data Structure is a fundamental concept in computer science used for storing and managing data in a specific order. It follows the principle of "First in, First out" (FIFO), where the first element added to the queue is the first one to be removed. It is used as a buffer in computer systems
2 min read
Tree Data StructureTree Data Structure is a non-linear data structure in which a collection of elements known as nodes are connected to each other via edges such that there exists exactly one path between any two nodes. Types of TreeBinary Tree : Every node has at most two childrenTernary Tree : Every node has at most
4 min read
Graph Data StructureGraph Data Structure is a collection of nodes connected by edges. It's used to represent relationships between different entities. If you are looking for topic-wise list of problems on different topics like DFS, BFS, Topological Sort, Shortest Path, etc., please refer to Graph Algorithms. Basics of
3 min read
Trie Data StructureThe Trie data structure is a tree-like structure used for storing a dynamic set of strings. It allows for efficient retrieval and storage of keys, making it highly effective in handling large datasets. Trie supports operations such as insertion, search, deletion of keys, and prefix searches. In this
15+ min read
Algorithms
Searching AlgorithmsSearching algorithms are essential tools in computer science used to locate specific items within a collection of data. In this tutorial, we are mainly going to focus upon searching in an array. When we search an item in an array, there are two most common algorithms used based on the type of input
2 min read
Sorting AlgorithmsA Sorting Algorithm is used to rearrange a given array or list of elements in an order. For example, a given array [10, 20, 5, 2] becomes [2, 5, 10, 20] after sorting in increasing order and becomes [20, 10, 5, 2] after sorting in decreasing order. There exist different sorting algorithms for differ
3 min read
Introduction to RecursionThe process in which a function calls itself directly or indirectly is called recursion and the corresponding function is called a recursive function. A recursive algorithm takes one step toward solution and then recursively call itself to further move. The algorithm stops once we reach the solution
14 min read
Greedy AlgorithmsGreedy algorithms are a class of algorithms that make locally optimal choices at each step with the hope of finding a global optimum solution. At every step of the algorithm, we make a choice that looks the best at the moment. To make the choice, we sometimes sort the array so that we can always get
3 min read
Graph AlgorithmsGraph is a non-linear data structure like tree data structure. The limitation of tree is, it can only represent hierarchical data. For situations where nodes or vertices are randomly connected with each other other, we use Graph. Example situations where we use graph data structure are, a social net
3 min read
Dynamic Programming or DPDynamic Programming is an algorithmic technique with the following properties.It is mainly an optimization over plain recursion. Wherever we see a recursive solution that has repeated calls for the same inputs, we can optimize it using Dynamic Programming. The idea is to simply store the results of
3 min read
Bitwise AlgorithmsBitwise algorithms in Data Structures and Algorithms (DSA) involve manipulating individual bits of binary representations of numbers to perform operations efficiently. These algorithms utilize bitwise operators like AND, OR, XOR, NOT, Left Shift, and Right Shift.BasicsIntroduction to Bitwise Algorit
4 min read
Advanced
Segment TreeSegment Tree is a data structure that allows efficient querying and updating of intervals or segments of an array. It is particularly useful for problems involving range queries, such as finding the sum, minimum, maximum, or any other operation over a specific range of elements in an array. The tree
3 min read
Pattern SearchingPattern searching algorithms are essential tools in computer science and data processing. These algorithms are designed to efficiently find a particular pattern within a larger set of data. Patten SearchingImportant Pattern Searching Algorithms:Naive String Matching : A Simple Algorithm that works i
2 min read
GeometryGeometry is a branch of mathematics that studies the properties, measurements, and relationships of points, lines, angles, surfaces, and solids. From basic lines and angles to complex structures, it helps us understand the world around us.Geometry for Students and BeginnersThis section covers key br
2 min read
Interview Preparation
Practice Problem