In short

A sequence is an ordered list of numbers produced by a definite rule. Each number in the list is called a term, and its position in the list is called its index. A sequence can be finite (a fixed number of terms) or infinite (continuing without end). You can describe a sequence by giving a general term a_n — a formula that produces the n-th term from its index — or by giving a recursive definition that builds each term from the ones before it.

A cricket team plays five matches in a tournament. After each match, you write down the team's total runs scored so far: 247, \; 491, \; 730, \; 982, \; 1231. That list has a definite order — the first number is the total after one match, the second after two, and so on. Rearranging the list would destroy its meaning. The order is the point.

Now consider something more abstract. Write down the perfect squares in order: 1, 4, 9, 16, 25, 36, \dots This list also has a rule and an order. The first entry is 1^2, the second is 2^2, the third is 3^2. You can compute any entry you want — the hundredth entry is 100^2 = 10{,}000 — without listing all the ones before it. The list goes on forever.

Both of these are sequences. The cricket example is finite (five terms, then the tournament ends). The perfect-squares example is infinite (there is no last perfect square). What they share is the essential property: an ordered list of numbers, produced by a rule, where the position of each number matters.

A sequence as an ordered list of terms with indicesFive boxes in a row labelled a sub 1 through a sub 5, containing the values 1, 4, 9, 16, and 25. Below each box is the index 1 through 5. An arrow points right from the last box toward a label reading dot dot dot, indicating the sequence continues. 1 a₁ n = 1 4 a₂ n = 2 9 a₃ n = 3 16 a₄ n = 4 25 a₅ n = 5 ··· The sequence of perfect squares: each box holds one term, and the index tells you its position.
The first five terms of the sequence $1, 4, 9, 16, 25, \dots$ Each term has a value and an index. The index $n$ tells you *where* the term sits; the value $a_n = n^2$ tells you *what* it is.

What a sequence really is

Strip away the examples and the word "list" and ask: what is a sequence, mathematically? It is a function whose domain is a set of consecutive positive integers.

Take the perfect-squares sequence. There is a function f that takes a positive integer n and returns n^2. The input is the position; the output is the value. f(1) = 1, f(2) = 4, f(3) = 9. The "list" 1, 4, 9, 16, \dots is just another way of writing the outputs of this function in order.

Sequence

A sequence is a function a : S \to \mathbb{R}, where S is a set of consecutive positive integers (often \{1, 2, 3, \dots\} or \{1, 2, \dots, n\}). The value a(k) is written a_k and called the k-th term. The sequence itself is written (a_n) or a_1, a_2, a_3, \dots

The notation a_n — with a subscript instead of parentheses — is standard. You will sometimes see (a_n)_{n \geq 1} when the author wants to be explicit about where the indexing starts.

The crucial point: order matters. The set \{1, 4, 9\} and the sequence 1, 4, 9 look similar, but the set does not care about order, while the sequence does. 4, 1, 9 is the same set as \{1, 4, 9\}, but it is a different sequence — its first term is 4, not 1.

Finite and infinite sequences

A finite sequence has a last term. The cricket example — 247, 491, 730, 982, 1231 — has exactly five terms. You can write it as (a_n)_{n=1}^{5} where a_1 = 247 and a_5 = 1231.

An infinite sequence has no last term. The perfect squares 1, 4, 9, 16, 25, \dots continue without end. No matter how far out you go — the millionth term, the billionth — there is always a next one. You write it as (a_n)_{n=1}^{\infty} or simply (a_n).

Finite versus infinite sequenceTwo rows. The top row shows a finite sequence of five terms in boxes, ending with a wall. The bottom row shows an infinite sequence of five visible terms in boxes followed by an arrow pointing right and the label dot dot dot, indicating it continues forever. Finite a₁ a₂ a₃ a₄ a₅ end Infinite a₁ a₂ a₃ a₄ a₅ ··· A finite sequence stops; an infinite sequence has an arrow — it never ends.
A finite sequence has a definite last term. An infinite sequence continues without bound — the "$\dots$" is not decoration, it means "and so on, forever."

Most of the sequences you will meet in this series of articles — arithmetic progressions, geometric progressions, the Fibonacci sequence — are infinite. Finite sequences show up in practical situations: the scores of a fixed number of exams, the temperatures recorded on each day of a week, or the digits of a particular number.

The general term

The most common way to describe a sequence is with a general term (also called the n-th term formula). This is an expression in n that produces the n-th term when you plug in a specific value of n.

Take the sequence 2, 5, 8, 11, 14, \dots Each term is 3 more than the one before it. The first term is 2, the second is 2 + 3 = 5, the third is 2 + 2 \times 3 = 8. In general, the n-th term is

a_n = 2 + (n - 1) \times 3 = 3n - 1

Check: a_1 = 3(1) - 1 = 2. a_2 = 3(2) - 1 = 5. a_5 = 3(5) - 1 = 14. The formula works.

The general term is powerful because it gives you random access. You do not need to compute a_1 through a_{99} to find a_{100} — you just plug in n = 100: a_{100} = 3(100) - 1 = 299. One step, done.

Plotting the sequence a sub n equals 3n minus 1A coordinate plane with horizontal axis n from 1 to 7 and vertical axis from 0 to 20. Seven red dots are plotted at the points (1, 2), (2, 5), (3, 8), (4, 11), (5, 14), (6, 17), (7, 20). A dashed line connects them showing the linear pattern. Each dot is labelled with its value. n aₙ 1 2 3 4 5 6 7 2 5 8 11 14 17 20
The sequence $a_n = 3n - 1$ plotted as points on a coordinate plane. The horizontal axis is the index $n$; the vertical axis is the value $a_n$. The points fall on a straight line (dashed) — a signal that the difference between consecutive terms is constant.

Here are a few more general terms to build your intuition:

Sequence First few terms General term a_n
Even numbers 2, 4, 6, 8, \dots 2n
Odd numbers 1, 3, 5, 7, \dots 2n - 1
Powers of 2 2, 4, 8, 16, \dots 2^n
Reciprocals 1, \frac{1}{2}, \frac{1}{3}, \frac{1}{4}, \dots \frac{1}{n}
Alternating signs 1, -1, 1, -1, \dots (-1)^{n+1}

Each formula takes the index n as input and returns the term as output. The formula is the sequence.

Drag the red point along the curve below to explore the sequence a_n = n^2. The readout shows the index and the term value — watch how the gap between consecutive terms grows as n increases.

Interactive: explore the sequence of perfect squaresA coordinate plane showing the curve y equals x squared from x equals 1 to 10. A draggable red point sits on the curve. As the reader drags it, a readout shows the current index n and the value n squared. n aₙ 2 3 4 5 6 7 8 9 10 ↔ drag to explore
Drag the red point to move through the sequence $a_n = n^2$. At $n = 1$ the term is $1$; at $n = 10$ it is $100$. The gaps between consecutive terms — $3, 5, 7, 9, \dots$ — grow steadily, which is why the curve bends upward.

Recursive definition

There is another way to describe a sequence. Instead of a formula that jumps straight to the n-th term, you give a starting value and a rule for computing the next term from the previous one.

Take the sequence 3, 7, 11, 15, 19, \dots You could give the general term a_n = 4n - 1. But you could also say:

a_1 = 3, \qquad a_{n+1} = a_n + 4 \quad \text{for } n \geq 1

This says: the first term is 3, and every term after that is obtained by adding 4 to the previous term. a_2 = a_1 + 4 = 7. a_3 = a_2 + 4 = 11. And so on.

This is a recursive definition — the word "recursive" meaning "defined in terms of itself." The sequence refers to its own earlier terms.

Recursive construction: each term built from the previous oneFive boxes containing 3, 7, 11, 15, and 19. Curved arrows go from each box to the next, each labelled plus 4. The first box is also labelled start equals 3. 3 7 11 15 19 +4 +4 +4 +4 start = 3 A recursive rule: each term is built by applying +4 to the term before it.
The recursive definition $a_1 = 3, \; a_{n+1} = a_n + 4$ produces the sequence $3, 7, 11, 15, 19, \dots$ one term at a time. Each arrow carries the rule "+4" from one box to the next.

The trade-off between general-term and recursive definitions is access versus simplicity.

Some sequences have clean general terms. Others have clean recursive definitions. The Fibonacci sequence — 1, 1, 2, 3, 5, 8, 13, 21, \dots — has a beautifully simple recursive rule (a_{n+2} = a_n + a_{n+1}, each term is the sum of the two before it) but a much messier general term involving \sqrt{5}. On the other hand, the sequence 1, \frac{1}{2}, \frac{1}{3}, \frac{1}{4}, \dots has a clean general term (a_n = \frac{1}{n}) but no particularly illuminating recursive rule.

The Fibonacci sequence built recursivelyEight boxes containing 1, 1, 2, 3, 5, 8, 13, 21. Pairs of curved arrows show how each term from the third onward is the sum of the two terms before it. For example, arrows from boxes 1 and 1 converge on box 2, arrows from boxes 1 and 2 converge on box 3, and so on. 1 a₁ 1 a₂ 2 a₃ 3 a₄ 5 a₅ 8 a₆ 13 a₇ 21 a₈ 1+1=2 1+2=3 2+3=5 3+5=8 ... Each Fibonacci term is the sum of the two before it.
The Fibonacci sequence $1, 1, 2, 3, 5, 8, 13, 21, \dots$ is defined recursively: $a_1 = 1$, $a_2 = 1$, and $a_{n+2} = a_n + a_{n+1}$. The arrows show how the third term is $1 + 1 = 2$, the fourth is $1 + 2 = 3$, and so on. Two starting values are needed because each term looks back two steps.

Worked examples

Example 1: Find the general term of $5, 8, 11, 14, 17, \dots$

You are given the first five terms of a sequence and asked to find a formula for a_n.

Step 1. Look at the differences between consecutive terms.

8 - 5 = 3, \quad 11 - 8 = 3, \quad 14 - 11 = 3, \quad 17 - 14 = 3

Why: if the differences are constant, the sequence is arithmetic, and the general term is linear in n.

Step 2. Identify the first term and the common difference.

The first term is a_1 = 5. The common difference is d = 3.

Why: for an arithmetic sequence, a_n = a_1 + (n-1)d, so you need exactly these two numbers.

Step 3. Write the general term.

a_n = 5 + (n - 1) \times 3 = 5 + 3n - 3 = 3n + 2

Why: distributing and simplifying gives you the cleanest form of the formula.

Step 4. Verify with a known term.

a_4 = 3(4) + 2 = 14. The fourth term in the given list is 14. It checks out.

Why: plugging a known value back in is the fastest way to catch sign errors or off-by-one mistakes.

Result: a_n = 3n + 2.

Plot of the sequence a sub n equals 3n plus 2A coordinate plane with n from 1 to 6 on the horizontal axis and a sub n from 0 to 20 on the vertical axis. Six red dots are plotted at (1,5), (2,8), (3,11), (4,14), (5,17), (6,20). A dashed line through the dots shows the linear trend. n aₙ 1 2 3 4 5 5 8 11 14 17
The sequence $5, 8, 11, 14, 17$ plotted on a coordinate plane. The points sit on a straight line because the general term $a_n = 3n + 2$ is linear — the "constant difference" shows up as a constant slope.

The graph confirms the algebra: equal spacing between terms means a straight line through the points. If the spacing were unequal, the points would curve.

Example 2: Find the first six terms of the recursively defined sequence $a_1 = 2, \; a_{n+1} = a_n^2 - 1$

This sequence is defined by a rule that squares the previous term and subtracts 1. There is no obvious general-term formula — you have to build it term by term.

Step 1. Start with the given value.

a_1 = 2.

Why: the recursive rule cannot produce anything without a starting point. The first term is given, not computed.

Step 2. Apply the rule to get a_2.

a_2 = a_1^2 - 1 = 2^2 - 1 = 3.

Why: plug a_1 = 2 into the rule a_{n+1} = a_n^2 - 1.

Step 3. Continue applying the rule.

a_3 = 3^2 - 1 = 8. a_4 = 8^2 - 1 = 63. a_5 = 63^2 - 1 = 3968. a_6 = 3968^2 - 1 = 15{,}745{,}023.

Why: each step is the same operation — square and subtract 1 — applied to the latest term. The values grow explosively because squaring amplifies whatever you feed it.

Step 4. List the first six terms.

2, \; 3, \; 8, \; 63, \; 3968, \; 15{,}745{,}023

Why: the question asked for six terms, and you now have all six.

Result: The first six terms are 2, 3, 8, 63, 3968, 15{,}745{,}023.

Explosive growth of the recursive sequence a sub n plus 1 equals a sub n squared minus 1A bar chart showing the first five terms of the sequence on a logarithmic-style vertical scale. The bars for n equals 1 through 3 are short (values 2, 3, 8). The bar for n equals 4 is noticeably taller (value 63). The bar for n equals 5 is extremely tall (value 3968). A note says the sixth term, over 15 million, would be off the chart. n aₙ 1 2 2 3 3 8 4 63 5 3968 a₆ = 15,745,023 — far off the chart
The terms of the sequence $a_1 = 2, \; a_{n+1} = a_n^2 - 1$ grow so fast that after just five terms, the bar for $a_5 = 3968$ fills the whole chart, and $a_6$ would be hundreds of times taller still. Recursive rules involving squaring can produce explosive growth from modest beginnings.

The graph makes the growth visible. The first three terms (2, 3, 8) look almost flat. Then the squaring kicks in and the values rocket upward. A general-term formula for this sequence exists but involves nested radicals — the recursive definition is the natural way to describe it.

Common confusions

Going deeper

If you came here to understand what a sequence is, how to write a general term, and how recursive definitions work, you have everything you need. The rest of this section is for readers who want to see the formal set-theoretic view and a connection to mathematical induction.

Sequences as functions on \mathbb{N}

Formally, an infinite sequence of real numbers is a function a : \mathbb{N} \to \mathbb{R}, where \mathbb{N} = \{1, 2, 3, \dots\}. The domain is the set of positive integers and the codomain is the real numbers. When you write a_n = n^2, you are defining this function by a formula.

A finite sequence of length m is a function a : \{1, 2, \dots, m\} \to \mathbb{R}. The only difference is the domain.

This function viewpoint explains why order matters (the function assigns different values to different inputs) and why repetition is allowed (the function can take the same value at multiple inputs — the constant sequence a_n = 5 has every term equal to 5, which is fine for a function even though a set would collapse it to one element).

Recursive definitions and induction

There is a deep link between recursive definitions and mathematical induction. When you define a sequence recursively — say a_1 = 3, a_{n+1} = a_n + 4 — how do you know that every term is well-defined? You know a_1 exists (it is given). And if a_n exists, then a_{n+1} = a_n + 4 exists too. By induction, a_n exists for every positive integer n.

This is not just an analogy; it is the precise mathematical justification. The recursion theorem (a consequence of the axioms of the natural numbers) guarantees that a recursive definition with a valid base case and a valid recursive step produces a unique well-defined sequence. The proof of the recursion theorem uses induction.

So every time you write a recursive definition and trust that it defines a sequence, you are implicitly relying on induction to guarantee that the construction works at every step.

Monotonic and bounded sequences

Two properties of sequences that matter greatly when you study convergence later:

A sequence (a_n) is monotonically increasing if a_{n+1} \geq a_n for all n, and monotonically decreasing if a_{n+1} \leq a_n for all n. The sequence 1, 4, 9, 16, \dots is increasing. The sequence 1, \frac{1}{2}, \frac{1}{3}, \frac{1}{4}, \dots is decreasing.

A sequence is bounded above if there is a number M such that a_n \leq M for all n, and bounded below if there is a number m such that a_n \geq m for all n. If it is bounded both above and below, it is simply called bounded.

The sequence \frac{1}{n} is bounded (it stays between 0 and 1) and monotonically decreasing. The sequence n^2 is bounded below (by 1) but not bounded above — it grows without limit.

A central theorem you will meet in calculus: every bounded, monotonically increasing sequence converges to a limit. That theorem is the reason these two properties matter, and it is one of the pillars of analysis.

Where this leads next

Sequences are the starting point for a family of closely related ideas.