![sequences an arithmetic mean](https://eevibes.com/wp-content/uploads/2022/06/Object-Oriented-Programming-2.png)
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.