Number Sequence Calculator
In mathematics, a sequence is an ordered list of objects. Accordingly, a number sequence is an ordered list of numbers that follow a particular pattern. Each of the individual elements in a sequence are often referred to as terms, and the number of terms in a sequence is called its length, which can be infinite. In a number sequence, order of the sequence is important, and depending on the sequence, it is possible for the same terms to appear multiple times. There are many different types of number sequences, three of the most common of which include arithmetic sequences, geometric sequences, and Fibonacci sequences.
Sequences have many applications in various mathematical disciplines due to their properties of convergence. A series is convergent if the sequence converges to some limit, while a sequence that does not converge is divergent. Sequences are used to study functions, spaces, and other mathematical structures. They are particularly useful as a basis for series (essentially describe an operation of adding infinite quantities to a starting quantity), which are generally used in differential equations and the area of mathematics referred to as analysis. There are multiple ways to denote sequences, one of which involves simply listing the sequence in cases where the pattern of the sequence is easily discernible. In cases that have more complex patterns, indexing is usually the preferred notation. Indexing involves writing a general formula that allows the determination of the n^{th} term of a sequence as a function of n.
Arithmetic Sequence
An arithmetic sequence is a number sequence in which the difference between each successive term remains constant. This difference can either be positive or negative, and dependent on the sign will result in terms of the arithmetic sequence tending towards positive or negative infinity. The general form of an arithmetic sequence can be written as:
a_{n} = a_{1} + f × (n1) or more generally  where a_{n} refers to the n^{th} term in the sequence  
a_{n} = a_{m} + f × (nm)  a_{1} is the first term  
i.e.  a_{1}, a_{1} + f, a_{1} + 2f, ...  f is the common difference 
EX:  1, 3, 5, 7, 9, 11, 13, ... 
It is clear in the sequence above that the common difference f, is 2. Using the equation above to calculate the 5^{th} term:
EX:  a_{5} = a_{1} + f × (n1) a_{5} = 1 + 2 × (51) a_{5} = 1 + 8 = 9 
Looking back at the listed sequence, it can be seen that the 5th term, a_{5}, found using the equation, matches the listed sequence as expected. It is also commonly desirable, and simple, to compute the sum of an arithmetic sequence using the following formula in combination with the previous formula to find a_{n}:

Using the same number sequence in the previous example, find the sum of the arithmetic sequence through the 5^{th} term:
EX: 
1 + 3 + 5 + 7 + 9 = 25 (5 × (1 + 9))/2 = 50/2 = 25 
Geometric Sequence
A geometric sequence is a number sequence in which each successive number after the first number is the multiplication of the previous number with a fixed, nonzero number (common ratio). The general form of a geometric sequence can be written as:
a_{n} = a × r^{n1}  where a_{n} refers to the n^{th} term in the sequence  
i.e.  a, ar, ar^{2}, ar^{3}, ...  a is the scale factor and r is the common ratio 
EX:  1, 2, 4, 8, 16, 32, 64, 128, ... 
In the example above, the common ratio r is 2, and the scale factor a is 1. Using the equation above, calculate the 8^{th} term:
EX: 
a_{8} = a × r^{81} a_{8} = 1 × 2^{7} = 128 
Comparing the value found using the equation to the geometric sequence above confirms that they match. The equation for calculating the sum of a geometric sequence:

Using the same geometric sequence above, find the sum of the geometric sequence through the 3^{rd} term.
EX: 1 + 2 + 4 = 7

= 

= 7 
Fibonacci Sequence
A Fibonacci sequence is a sequence in which every number following the first two is the sum of the two preceding numbers. The first two numbers in a Fibonacci sequence are defined as either 1 and 1, or 0 and 1 depending on the chosen starting point. Fibonacci numbers occur often, as well as unexpectedly within mathematics and are the subject of many studies. They have applications within computer algorithms (such as Euclid's algorithm to compute the greatest common factor), economics, and biological settings including the branching in trees, the flowering of an artichoke, as well as many others. Mathematically, the Fibonacci sequence is written as:
a_{n} = a_{n1} + a_{n2}  where a_{n} refers to the n^{th} term in the sequence  
EX:  0, 1, 1, 2, 3, 5, 8, 13, 21, ...  a_{0} = 0; a_{1} = 1 