The Wayback Machine - https://web.archive.org/web/20240822105442/https://www.geeksforgeeks.org/sequences-and-series/
Open In App

Sequences and Series

Last Updated : 11 Jun, 2024
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow
Solve Problem
Basic
58.74%
11.9K

Sequences and Series: In mathematics, the sequence is a collection or list of numbers that have a logical/sequential order or pattern between them. For example, 1, 5, 9, 13, … is a sequence having a difference of 4 between each consecutive next term and each term can be represented in form 1 + 4 * ( n – 1 ) where n is the nth term of the sequence. The sequence can be classified into 3 categories:

  1. Arithmetic Sequence
  2. Geometric Sequence
  3. Harmonic Sequence
Sequences-and-Series

What are Sequences and Series?

A sequence is an ordered list of numbers that follow a specific pattern or rule. Each number in the sequence is called a term. Sequences can be finite or infinite, depending on whether they have a limited number of terms or continue indefinitely. The pattern or rule that defines a sequence can be arithmetic, geometric, or based on some other mathematical relationship.

Arithmetic Sequence

The sequence in which each consecutive term has a common difference and this difference could be positive, negative and even zero is known as an arithmetic sequence.

Example:

1) 0, 2, 4, 6, …   in this sequence each and every consecutive term has a difference of 2 between them and nth term of sequence can be represented as 2 * ( n – 1 ).

2) 0, 5, 10, 15, …  is another example of arithmetic sequence with a difference of 5 between each consecutive number and nth term of sequence can be represented as 5 * ( n – 1 ).

Geometric Sequence

The sequence in which each consecutive term has a common ratio is known as a Geometric sequence.

Example:

1) 1, 5, 25, 125 … in this sequence, each consecutive term have a ratio of 5 with the term before it and nth term of sequence can be represented as 5 ( n – 1 ).

2) 1, -2, 4, -8, 16, … in this sequence each consecutive term have a ratio of -2 with the term before it and nth term of sequence can be represented as ( -2 )( n – 1 ).

Harmonic Sequence

The sequence in which the reciprocal of each term forms an arithmetic sequence is known as a harmonic sequence.

Example:

(1/5), (1/10), (1/15), (1/20),… in this sequence the reciprocal of each term that is 5, 10, 15, 20, … forms an arithmetic sequence with a difference of 5 between each consecutive term.

What is Summation Notation?

Summation Notation is a simple method to find the sum of a sequence. Summation notation is also known as sigma notation. Sigma refers to the Greek letter sigma, Σ. The limit of the sequence is represented as shown in figure 1 where the lower limit is the starting index of the sequence and the upper limit represents the ending index of the sequence. Like as shown in figure 1 the lower limit is 1 and the upper limit is 4 so this means we need the sum of 1st,2nd,3rd and 4th term which is ( 2 * 1 ) + ( 2 * 2 ) + ( 2 * 3 ) + ( 2 * 4 ) = 2 + 4 + 6 + 8 = 20.

Summation Notation:

[Tex]\huge \sum\limits_{n=1}^4 (2*n)[/Tex]

Summation Notation for Arithmetic Sequence

Summation Notation of Arithmetic Sequence is of form  Σ (a + b * n) where a is the first term of the sequence and b is the common difference between any two consecutive terms of the sequence and therefore the nth term of the sequence would be of the form (a + (b * n)).

Example:

Let the arithmetic sequence be 0, 2, 4, 6, … so for making the summation notation we need to find the values of ‘a’ and ‘b’ where ‘a’ is the first term which is 0 so a = 0 and b is the common difference between any 2 consecutive terms which is 2 in this case, so b = 2.Therefore summation notion of sequence would be Σ (0 + (2 * n)) where the lower limit is 0 and the upper limit is ∞ as the first term of the sequence is given as 0 and ending is not defined.

Arithmetic Summation Notation:

[Tex]\huge \sum\limits_{n=0}^\infin (0\ +\ 2*n)[/Tex]

Summation Notation for Geometric Sequence

Summation Notation of Geometric Sequence is of form  Σ (a * bn) where a is the first term of the sequence and b is the common ratio between any two consecutive terms of the sequence and therefore the nth term of the sequence would be of the form (a * bn).

Example:

Let the geometric sequence be 2, 10, 50, 250, … so for making the summation notation we need to find the values of ‘a’ and ‘b’ where ‘a’ is the first term which is 2 so a = 2 and b is the common ratio between any 2 consecutive terms which is 5 in this case, so b = 5.Therefore summation notion of sequence would be Σ (2 * 5 n) where the lower limit is 0 and the upper limit is ∞ as the first term of the sequence is given as 0 and ending is not defined.

Geometric Summation Notation:

[Tex]\huge \sum\limits_{n=0}^\infin (2\ *\ 5^n)[/Tex]

Summation Notation for Harmonic Sequence

Summation Notation of Harmonic Sequence is of form  Σ ( 1/(a + b*n) )where a is the reciprocal of the first term of the sequence and b is the common difference between reciprocal any two consecutive terms of the sequence and therefore the nth term of the sequence would be of the form (1/(a + b * n)).

Example:

Let the arithmetic sequence be 1/2, 1/4, 1/6, … so for making the summation notation we need to find the values of ‘a’ and ‘b’ where ‘a’ is the reciprocal first term which is 2 so a = 2 and b is the common difference between the reciprocal of any 2 consecutive terms which is 2 in this case, so b = 2.Therefore summation notion of sequence would be Σ (1/( 0 + 2 * n)) where the lower limit is 1 and the upper limit is ∞ as the first term of the sequence is given as 1/2 and ending is not defined. 

Harmonic Summation Notation:

[Tex]\huge \sum\limits_{n=0}^\infin (\frac{1}{0\ +\ 2^n})[/Tex]

Sequences and Series Examples

Example 1: Find the first 4 terms of the sequence: an = 2 * xn + 1 and n > 0?

Solution: 

As we should take care to replace n ( and not x ) with the first 4 natural numbers as n is not equal to 0.

a1 = 2 * x1 + 1 

a2 = 2 * x2 + 1

a3 = 2 * x3 + 1 

a4 = 2 * x4 + 1

Example 2: Find the first 6 terms of the sequence: an = [Tex]\frac{1}{n\ +\ 2}[/Tex] and n ≥ 0?

Solution: 

We have to replace n by the first 6 while numbers (0, 1, 2, 3, 4, 5).

a0 = [Tex]\frac{1}{0\ +\ 2} = \frac{1}{\ 2}[/Tex]

a1 = [Tex]\frac{1}{1\ +\ 2} = \frac{1}{\ 3}[/Tex]

a2 = [Tex]\frac{1}{2\ +\ 2} = \frac{1}{\ 4}[/Tex]

a3 = [Tex]\frac{1}{3\ +\ 2} = \frac{1}{\ 5}[/Tex]

a4 = [Tex]\frac{1}{4\ +\ 2} = \frac{1}{\ 6}[/Tex]

a5 = [Tex]\frac{1}{5\ +\ 2} = \frac{1}{\ 7}[/Tex]

Example 3: Evaluate [Tex]\sum\limits_{n=1}^k (2*n)[/Tex]  for k = 2 and k = 4?

Solution:

For k = 2

[Tex]\sum\limits_{n=1}^2 (2*n)[/Tex] = (2 * 1) + (2 * 2) = 2 + 4 = 6 

For k = 4

[Tex]\sum\limits_{n=1}^4 (2*n) [/Tex] = (2 * 1) + (2 * 2) + (2 * 3) + (2 * 4) = 2 + 4 + 6 + 8 = 20 

Example 4: Evaluate [Tex]\sum\limits_{n=1}^4 (5^n)[/Tex]?

Solution:

[Tex]\sum\limits_{n=1}^4 (5^n)[/Tex] = (51) + (52) + (53) + (54) = 5 + 25 + 125 + 625 = 780

Example 5: Evaluate [Tex]\sum\limits_{n=0}^3 (\frac{1}{n\ +\ 2^n})[/Tex]?

Solution:

[Tex]\sum\limits_{n=0}^2 (\frac{1}{n\ +\ 2^n})= (\frac{1}{0\ +\ 2^0})+(\frac{1}{1\ +\ 2^1})+(\frac{1}{2\ +\ 2^2})\\ \sum\limits_{n=0}^2 (\frac{1}{n\ +\ 2^n})=(\frac{1}{1})+(\frac{1}{3})+(\frac{1}{6})\\ \sum\limits_{n=0}^2 (\frac{1}{n\ +\ 2^n})=(\frac{6+2+1}{6})\\ \sum\limits_{n=0}^2 (\frac{1}{n\ +\ 2^n})=(\frac{9}{6})\\ \sum\limits_{n=0}^2 (\frac{1}{n\ +\ 2^n})=(\frac{3}{2})\\[/Tex]

Example 6: Write in expanded form: [Tex]\sum\limits_{n=0}^\infin (\frac{1}{n\ +\ 2^n})[/Tex] upto 4 terms?

Solution:

[Tex]\sum\limits_{n=0}^\infin (\frac{1}{n\ +\ 2^n}) = (\frac{1}{0\ +\ 2^0}) + (\frac{1}{1\ +\ 2^1})+(\frac{1}{2\ +\ 2^2})+(\frac{1}{3\ +\ 2^3})+…\\ \sum\limits_{n=0}^\infin (\frac{1}{n\ +\ 2^n}) = (\frac{1}{1}) + (\frac{1}{3})+(\frac{1}{6})+(\frac{1}{11})+…     [/Tex] 

Sequences and Series Class 11

Also Check:

Sequences and Series Class 11 Notes

Sequences and Series Class 11 NCERT Solutions

FAQs on Sequences and Series

What is the difference between a sequence and a series?

A sequence is an ordered list of numbers following a specific pattern, while a series is the sum of the terms of a sequence. For example, in the sequence 2, 4, 6, 8, the series would be 2 + 4 + 6 + 8.

How do you find the nth term of an arithmetic sequence?

The nth term of an arithmetic sequence can be found using the formula: an = a1 + (n – 1)d where ana_nan​ is the nth term, a1a_1a1​ is the first term, nnn is the term number, and ddd is the common difference.

What is the formula for the sum of the first n terms of a geometric series?

The sum of the first n terms of a geometric series is given by: where Sn​ is the sum, a is the first term, r is the common ratio, and n is the number of terms.

How can you determine if a series converges or diverges?

A series converges if the sum of its terms approaches a finite value as more terms are added. For a geometric series, it converges if the absolute value of the common ratio | r | < 1. For other types of series, various tests like the comparison test, ratio test, or integral test are used to determine convergence or divergence.



Previous Article
Next Article

Similar Reads

Special Series in Maths - Sequences and Series | Class 11 Maths
Special Series: A series can be defined as the sum of all the numbers of the given sequence. The sequences are finite as well as infinite. In the same way, the series can also be finite or infinite. For example, consider a sequence as 1, 3, 5, 7, … Then the series of these terms will be 1 + 3 + 5 + 7 + ….. The series special in some way or the othe
10 min read
Class 11 NCERT Solutions- Chapter 9 Sequences And Series - Exercise 9.2
Question 1. Find the sum of odd integers from 1 to 2001. Solution: The odd integers forms an A.P. with Common difference(d)=2 and first term (a)=1 Here, a+(n-1)d=2001 ⇒1+(n-1)2=2001 ⇒2n-2=2000 ⇒n=1001 Sn = n[2a + (n - 1)d]/2 S1001=1001[2(1)+(1001-1)2]/2 =1001[2+2000]/2 =1001[2002]/2 =1001[1001] =1002001 Therefore, the sum of odd integers from 1 to
8 min read
Class 11 NCERT Solutions- Chapter 9 Sequences And Series - Exercise 9.1
Question 1. Write the first five terms of a sequence whose nth term is an=n(n+2). Solution: Given, an = n(n + 2) Putting value of n as 1, 2, 3, 4 and 5. We get, a1=1(1+2)=1(3)=3 a2=2(2+2)=2(4)=8 a3=3(3+2)=3(5)=15 a4=4(4+2)=4(6)=24 a5=5(5+2)=5(7)=35 Therefore, the first 5 terms of given series are 3, 8, 15, 24 and 35. Question 2. Write the first 5 t
4 min read
Class 11 NCERT Solutions- Chapter 9 Sequences And Series - Exercise 9.4
Find the sum to n terms of each of the series in Exercises 1 to 7.Question 1. 1 × 2 + 2 × 3 + 3 × 4 + 4 × 5 + … Solution: Given: Series = 1 × 2 + 2 × 3 + 3 × 4 + 4 × 5 + … To find nth term, we have nth term, an = n ( n + 1) So, the sum of n terms of the series: [Tex]S_n=\displaystyle\sum^n_{k=1}a_k=\sum^n_{k=1}k(k+1)\\ =\sum^n_{k=1}k^2+\sum^n_{k=1}
4 min read
Class 11 NCERT Solutions- Chapter 9 Sequences And Series - Miscellaneous Exercise On Chapter 9 | Set 1
Question 1. Show that the sum of (m + n)th and (m – n)th terms of an A.P. is equal to twice the mth term. Solution: Let the first term and common difference of the A.P. be a and d respectively. (m+n)th term of the A.P. = a+(m+n−1)d (m−n)th term of the A.P. = a+(m−n−1)d Thus, L.H.S = a+(m+n−1)d + a+(m−n−1)d = 2a+(m+n−1+m−n−1)d = 2a+(2m−2)d = 2[a+(m−
11 min read
Class 11 NCERT Solutions- Chapter 9 Sequences And Series - Miscellaneous Exercise On Chapter 9 | Set 2
Question 17. If a, b, c, d are in G.P, prove that (an + bn), (bn + cn), (cn + dn) are in G.P. Solution: We are given, a, b, c and d are in G.P. Therefore, we have b2 = ac … (1) c2 = bd … (2) ad = bc … (3) We need to prove (an + bn), (bn + cn), (cn + dn) are in G.P. i.e., =&gt; (bn+ cn)2 = (an + bn) (cn + dn) Solving L.H.S., we get = b2n + 2bncn + c
14 min read
Class 11 NCERT Solutions- Chapter 9 Sequences And Series - Exercise 9.3 | Set 1
Question 1. Find the 20th and nth terms of the G.P 5/2, 5/4, 5/8, ... Solution: According to the question G.P: 5/2, 5/4, 5/8, ... So, first term(a) = 5/2 So, the common ratio(r) = [Tex]\frac{a_1}{a}=\frac{\frac54}{\frac52}= \frac12[/Tex] Find: 20th and nth terms of the given G.P So, the nth term of G.P can be expressed using formula: an = arn - 1 W
10 min read
Class 11 NCERT Solutions- Chapter 9 Sequences And Series - Exercise 9.3 | Set 2
Question 17. If the 4th, 10th and 16th terms of a G.P. are x, y, and z, respectively. Prove that x, y, z are in G.P. Solution: Let the first term of G.P. be a and common ratio be r. According to the question a4 = ar3 = x ......(1) a10 = ar9 = y ......(2) a16 = ar15 = z ......(3) Now divide eq(2) by (1), we get ar9/ar3 = y /x r6 = y /x Divide eq(3)
10 min read
NCERT Solutions Class 11 - Chapter 8 Sequences And Series - Miscellaneous Exercise
Question 1. If f is a function satisfying f(x + y) = f(x) f(y) for all x, y ∈ N such that, f(1) = 3 and [Tex]\sum_{x=1}^{x=n} f(x) = 120[/Tex], find the value of n.Solution: We are given that, f(x + y) = f(x) × f(y) for all x, y ∈ N … (1) f(1) = 3 Putting x = y = 1 in (1), we have f(1 + 1) = f(2) = f(1) f(1) = 3 × 3 = 9 Similarly, f(1+1+1) = f(3) =
15 min read
NCERT Solutions Class 11 - Chapter 8 Sequences And Series - Exercise 8.1
Question 1. Write the first five terms of a sequence whose nth term is an=n(n+2).Solution: Given, an = n(n + 2) Putting value of n as 1, 2, 3, 4 and 5. We get, a1=1(1+2)=1(3)=3 a2=2(2+2)=2(4)=8 a3=3(3+2)=3(5)=15 a4=4(4+2)=4(6)=24 a5=5(5+2)=5(7)=35 Therefore, the first 5 terms of given series are 3, 8, 15, 24 and 35. Question 2. Write the first 5 te
4 min read
NCERT Solutions Class 11 - Chapter 8 Sequences And Series - Exercise 8.2
Question 1. Find the 20th and nth terms of the G.P 5/2, 5/4, 5/8, ...Solution: According to the question G.P: 5/2, 5/4, 5/8, ... So, first term(a) = 5/2 So, the common ratio(r) = [Tex]\frac{a_1}{a}=\frac{\frac54}{\frac52}= \frac12[/Tex] Find: 20th and nth terms of the given G.P So, the nth term of G.P can be expressed using formula: an = arn - 1 Wh
15+ min read
Sequences and Series Formulas
Sequences and Series Formulas: In mathematics, sequence and series are the fundamental concepts of arithmetic. A sequence is also referred to as a progression, which is defined as a successive arrangement of numbers in an order according to some specific rules. A series is formed by adding the elements of a sequence. Let us consider an example to u
11 min read
Sequences and Series Practice Problems
Sequences and series are fundamental concepts in mathematics that play a crucial role in various fields such as calculus, algebra, and even real-world applications like finance and engineering. Understanding these concepts can help you solve complex problems and develop a deeper appreciation for mathematical structures. A sequence is essentially a
9 min read
Find if it is possible to make a binary string which contains given number of "0", "1" , "01" and "10" as sub sequences
Given four integers l, m, x, and y. The task is to check whether it is possible to make a binary string consisting of l 0's, m 1's, x "01" and y "10" as sub-sequences in it.Examples: Input: l = 3, m = 2, x = 4, y = 2 Output: Yes Possible string is "00110". It contains 3 0's, 2 1's, 4 "01" sub-sequences and 2 "10" sub-sequences.Input: l = 3, m = 2,
4 min read
Print all sequences starting with n and consecutive difference limited to k
Given three positive integer n, s and k. The task is to print all possible sequence of length s, starting with n and the absolute difference between consecutive element is less than k.Examples : Input : n = 5, s = 3, k = 2 Output : 5 5 5 5 5 6 5 5 4 5 6 6 5 6 7 5 6 5 5 4 4 5 4 5 5 4 3 Input : n = 3, s = 2, k = 1 Output : 3 3 Observe, to get the abs
9 min read
Find all even length binary sequences with same sum of first and second half bits | Iterative
Given a number N, find all binary sequences of length 2*N such that sum of first N bits is same as the sum of last N bits.Examples: Input: N = 2 Output: 0000 0101 0110 1001 1010 1111 Input: N = 1 Output: 00 11 Note: The recursive approach to this problem can be found here. Approach: A simple approach to run a loop from 0 to 22*N and convert into th
9 min read
Count distinct sequences obtained by replacing all elements of subarrays having equal first and last elements with the first element any number of times
Given an array arr[] consisting of N integers, the task is to find the number of different sequences that can be formed after performing the below operation on the given array arr[] any number of times. Choose two indices i and j such that arr[i] is equal to arr[j] and update all the elements in the range [i, j] in the array to arr[i]. Examples: In
7 min read
Count even length binary sequences with same sum of first and second half bits
Given a number n, find count of all binary sequences of length 2n such that sum of first n bits is same as sum of last n bits. Examples: Input: n = 1 Output: 2 There are 2 sequences of length 2*n, the sequences are 00 and 11 Input: n = 2 Output: 6 There are 6 sequences of length 2*n, the sequences are 0101, 0110, 1010, 1001, 0000 and 1111Recommende
15+ min read
Find all even length binary sequences with same sum of first and second half bits
Given a number n, find all binary sequences of length 2n such that sum of first n bits is same as sum of last n bits.Examples: Input: N = 2 Output: 0101 1111 1001 0110 0000 1010 Input: N = 3 Output: 011011 001001 011101 010001 101011 111111 110011 101101 100001 110101 001010 011110 010010 001100 000000 010100 101110 100010 110110 100100 The idea is
15+ min read
Mutual Recursion with example of Hofstadter Female and Male sequences
Mutual recursion is a variation recursion. Two functions are called mutually recursive if the first function makes a recursive call to the second function and the second function, in turn, calls the first one.In software development, this concept is used in circular dependency which is a relation between two or more modules which either directly or
6 min read
Find number of Strictly Increasing Sequences with 'a' and 'b' in a String
Given a string S of length N (1 &lt;= N &lt;= 105) consisting of lower case alphabets. The task is to find the number of strictly increasing sequences P1,P2, …, Pk such that: For each i (1 ≤ i ≤ k), Spi = 'a'For each i (1 ≤ i &lt; k), there exists j such that pi &lt; j &lt; pi+1 and Sj = 'b'The result should be calculated modulo 10^9 + 7. Example:
5 min read
If you are given two traversal sequences, can you construct the binary tree?
It depends on what traversals are given. If one of the traversal methods is Inorder then the tree can be constructed, otherwise not. Therefore, following combination can uniquely identify a tree. Inorder and Preorder. Inorder and Postorder. Inorder and Level-order. And following do not. Postorder and Preorder. Preorder and Level-order. Postorder an
1 min read
Count of sub-sequences which satisfy the given condition
Given a string str consisting of digits, the task is to find the number of possible 4 digit sub-sequences which are of the form (x, x, x + 1, x + 1) where x can be from the range [0, 8]. Examples: Input: str = "1122" Output: 1 Only one sub-sequence is valid, i.e the entire string itself. Input: str = "13134422" Output: 2 Two Valid sub-sequences are
10 min read
Number of sequences which has HEAD at alternate positions to the right of the first HEAD
Given that a coin is tossed N times. The task is to find the total number of the sequence of tosses such that after the first head from left, all the alternating positions to the right of it are occupied by the head only. The positions except the alternating position can be occupied by any of head or tail. For example, if you are tossing a coin 10
6 min read
Check if two same sub-sequences exist in a string or not
Given a string, the task is to check if there exist two equal sub-sequences in the given string. Two sub-sequences are said to be equal if they have the same characters arranged in the same lexicographical order but the position of characters differs from that in the original string. Examples: Input: str = "geeksforgeeks" Output: YES Two possible s
5 min read
Check if two given key sequences construct same BSTs
Given two arrays which represent two sequences of keys that are used to create BSTs. Imagine we make a Binary Search Tree (BST) from each array. We need to tell whether two BSTs will be identical or not without actually constructing the tree. Examples: Let the input arrays be a[] and b[] Example 1: a[] = {2, 4, 1, 3} will construct following tree.
6 min read
Count number of increasing sub-sequences : O(NlogN)
Given an array arr[] of length N, the task is to find the number of strictly increasing sub-sequences in the given array. Examples: Input: arr[] = {1, 2, 3} Output: 7 All increasing sub-sequences will be: 1) {1} 2) {2} 3) {3} 4) {1, 2} 5) {1, 3} 6) {2, 3} 7) {1, 2, 3} Thus, answer = 7Input: arr[] = {3, 2, 1} Output: 3 Approach: An O(N2) approach ha
12 min read
Count all sub-sequences having product &lt;= K - Recursive approach
Given an integer K and a non-negative array arr[], the task is to find the number of sub-sequences having the product ? K. This problem already has a dynamic programming solution. This solution aims to provide an optimized recursive strategy to the problem. Examples: Input: arr[] = { 1, 2, 3, 4 }, K = 10 Output: 11 The sub-sequences are {1}, {2}, {
13 min read
Minimum number of consecutive sequences that can be formed in an array
Given an array of integers. The task is to find the minimum number of consecutive sequences that can be formed using the elements of the array. Examples: Input: arr[] = { -3, -2, -1, 0, 2 } Output: 2 Consecutive sequences are (-3, -2, -1, 0), (2). Input: arr[] = { 3, 4, 0, 2, 6, 5, 10 } Output: 3 Consecutive sequences are (0), {2, 3, 4, 5, 6} and {
4 min read
Count pairs of parentheses sequences such that parentheses are balanced
Given N bracket sequences, the task is to find the number of pairs of bracket sequences by joining which can be obtained a balanced bracket sequence as a whole. A bracket parentheses sequence can only be a part of a single pair. Examples: Input: { ")())", ")", "((", "((", "(", ")", ")"} Output: 2 Bracket sequence {1, 3} and {5, 6} Input: {"()", "((
9 min read
three90RightbarBannerImg