If the numbers are generated according to a certain rule such that each consecutive number has a specific relation with its neighbors then they are said to form a sequence. You can consider sequences as list of ordered pairs. Sequences are represented by {an} where n is an integer. The value of n can be any integer or from natural number (1,2,3,….) which is called the domain of sequence. Each number in the sequence is called term.