Skip to main content

Sequence and Series

Sequence and Series

We have heard about sequence and Series. But before diving deep into Sequence and Series, let us understand what is a sequence and what is a series?

There are cases where even a small discrepancy in measurements can lead to a big trouble. In all other cases, measuring something is made easier by approximations. And as mathematicians, we like to do that a lot! To measure a quantity x, let us write several approximations a1 , a2 , a3…

where a2 is a better approximation of x than a1,a3 is better approximation of x than a2 and so on. This list of approximations that we just created is example of a sequence.

Definition 1: A sequence is the set of the outputs of a function defined from the set of natural numbers to the set of real numbers or complex numbers. If the co-domain of the function is the set of real numbers, it is called a real sequence and if it is the set of complex numbers on the other hand, it is called a complex sequence.

In very simple terms, a sequence is an ordered set of numbers. A sequence is denoted using braces. For e.g. the sequence of the approximations that we created can be denoted by {an}. The sequence {n}∞n = 1 represents the all natural numbers. A sequence can be finite or infinite depending upon the number of terms it can have.

If all the terms of a sequence eventually approach the value x, we say that the sequence converges to the limitx.We call that sequence convergent and we represent it as

limn→∞{an} = x

On the other hand, if a sequence doesn’t converge, it is divergent. Some examples of convergent and divergent sequences are:

{1n}∞n = 1 is a convergent sequence because limn→∞{1n} = 0
0,1,0,1,0,1…is a divergent sequence because it can’t converge to either 0 or 1.
The Fibonacci Sequence 1,1,2,3,5,8,13,… is a divergent sequence.
Let us now go ahead and understand series. Sequence and series are very often confused with each other. Series are derived from sequences.

Definition 2: A series is defined as the sum of the terms of a sequence. It is denoted by

∑i = 1∞ai

where ai  is the ith term of the sequence

i is a variable

∑ is a symbol which stands for ‘summation’. It was invented by Leonard Euler, a Swiss mathematician.

The above written expression basically means

 Sequence and series

For a series defined above, sequence of partial sums is defined as

a1 , a1 + a2 , a1 + a2 + a3 , a1 + a2 + a3 + a4,…

A series can be finite or infinite depending upon the number of terms it has. If the sequence of the partial sums of a series is a convergent sequence, we say that the series is convergent. This is represented as:

∑i = 1∞ ai = limn→∞ ∑i = 1n ai = x ,where x ∈ R

Otherwise, the series is said to be divergent. Some examples of series are:

1 + 2 + 3 + 4 + 5 +⋯ which is a divergent series.
12 + 14 + 16 + 18 +⋯ which is a convergent series.
Progression:

It is just another type of sequence. The only difference between a progression and a sequence is that there is a general formula which can be derived for representing the terms of a progression whereas it can’t be always done for a sequence. Sequences may be based on logical rule. Some examples which support this argument are:

2,3,5,7,9,…is the sequence of prime numbers. A formula for its general term can’t be derived.
2,4,6,8,10,…is a sequence of multiples of 2 which is also a progression since the general term (nthterm)can be represented by 2n.
3,9,27,81,…is a sequence of powers of 3 which is also a progression since the general term (rth term) can be represented by 3r..
Note: All progressions are sequences but converse may or may not be true.

There are several kinds of progressions viz.arithmetic progression, geometric progression, harmonic progression, etc. 

Comments

Popular posts from this blog

OFFSET in Computer Science

OFFSET in Computer Science In the post, We will understand what is the meaning of OFFSET in computer science with an example. In computer science offset comes picture at may place like packing a data structure, encoding the data etc in some standard protocol so that other parties can deserialise it and understand the data. We will understand its important how does it work with example. suppose we have a data structure for a student like { name:string[20] roll: int[4] course: string[25] batch: int[4] } We want to serialise below student data  { name:"Amit Gupta" roll: 1234 course:Computer Science" batch: 2018 } Our protocol follow the rule that we will insert a value and if space will remain empty we will fill it with $ for example length of "Amit Gupta" is 10 but standard size is 20 so will fill 10 $ after "Amit Gupta". So serialisation of above data will be Amit Gupta$$$$$$$$$$1234Computer Sc...

Pointer In C Programming Language

Pointer In C Programming Language In this post, We will learn about pointer in C programming language. Introduction Pointers in C programming language is a variable that stores the memory address of another variable. A pointer in C is used to allocate memory dynamically i.e. at runtime. The pointer variable might be belonging to any of the data types such as int, float, char, double, short etc. Important Points About Pointer in C: Pointer stores the address of a variable whereas a normal variable stores the value.   The content of the C pointer always be a whole number i.e. address. Default C pointer is initialized to null, i.e. int *p = null. The value of the null pointer is 0. & symbol is used to get the address of the variable. * symbol is used to get the value of the variable that the pointer is pointing to. If a pointer in C is assigned to NULL, it means it is pointing to nothing. Two pointers can be subtracted to know how many elements are available...

Convert String To Byte Array in Python

Convert String To Byte Array in Python In this post, We will learn how to convert a string into a byte array in python programming language. def string_to_byte_array(string): byteArray = [] for c in string: byteArray = byteArray.append(ascii(c)) print (string_to_byte_array("Rozgardesh")) Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above.