Sequence Examples in Math

Start with the recap, study the fully worked examples, then use the practice problems to check your understanding of Sequence.

This page combines explanation, solved examples, and follow-up practice so you can move from recognition to confident problem-solving in Math.

Concept Recap

An ordered list of numbers generated by a rule, where each number has a specific position (first, second, third,...).

A pattern of numbers: first term, second term, third term, and so on.

Read the full concept explanation โ†’

How to Use These Examples

  • Read the first worked example with the solution open so the structure is clear.
  • Try the practice problems before revealing each solution.
  • Use the related concepts and background knowledge badges if you feel stuck.

What to Focus On

Core idea: A sequence assigns a term to each position 1,2,3,โ€ฆ1,2,3,\ldots by a generating rule; terms are listed, not added.

Common stuck point: The procedure for sequence is the easy part; the trap is treating a sequence as a sum. Asking "Am I listing terms by position (ana_n) rather than adding them up?" first is what keeps a correct-looking calculation from being attached to the wrong concept.

Sense of Study hint: Ask: Am I listing terms by position (ana_n) rather than adding them up?

Worked Examples

Example 1

easy
Write the first five terms of the sequence an=nn+1a_n = \frac{n}{n+1} for n=1,2,3,โ€ฆn = 1, 2, 3, \ldots

Answer

12,โ€…โ€Š23,โ€…โ€Š34,โ€…โ€Š45,โ€…โ€Š56\frac{1}{2},\; \frac{2}{3},\; \frac{3}{4},\; \frac{4}{5},\; \frac{5}{6}

First step

1
a1=12a_1 = \frac{1}{2}.

Full solution

  1. 2
    a2=23a_2 = \frac{2}{3}.
  2. 3
    a3=34a_3 = \frac{3}{4}.
  3. 4
    a4=45a_4 = \frac{4}{5}.
  4. 5
    a5=56a_5 = \frac{5}{6}.
Each term is found by substituting nn into the formula. The terms increase and approach 1, illustrating that this sequence converges to 1 as nโ†’โˆžn \to \infty.

Example 2

medium
Determine whether the sequence an=3n2+1n2+2a_n = \frac{3n^2 + 1}{n^2 + 2} converges or diverges. If it converges, find the limit.

Example 3

easy
Show step-by-step output for: n=2n=2; n=nโˆ—3n=n*3; n=n+1n=n+1; OUTPUT nn.

Example 4

medium
A recipe lists: (1) bake 30 min, (2) preheat oven, (3) mix batter. Why is order (2),(3),(1) correct rather than (1),(2),(3)?

Example 5

medium
A program reads two numbers, prints their sum, then their product. Write the sequence of 4 steps in plain pseudocode order.

Example 6

hard
A deploy script runs: build, run tests, push to prod. A junior reorders to: push, build, test. List 2 concrete failure modes.

Example 7

challenge
Given 4 statements S1..S4S_1..S_4 where S3S_3 depends on S1S_1 and S4S_4 depends on S2S_2, how many valid total orderings exist?

Practice Problems

Try these problems on your own first, then open the solution to compare your method.

Example 1

easy
Write the first four terms of bn=(โˆ’1)nโ‹…1nb_n = (-1)^n \cdot \frac{1}{n}.

Example 2

medium
Determine whether an=2nn!a_n = \frac{2^n}{n!} converges or diverges.

Example 3

easy
Is 3,7,11,15,โ€ฆ3, 7, 11, 15, \ldots a sequence or a series?

Example 4

easy
Find the 4th term of the sequence an=2n+1a_n=2n+1.

Example 5

easy
List the first three terms of an=n2a_n=n^2.

Example 6

easy
What is the next term in 5,10,20,40,โ€ฆ5, 10, 20, 40, \ldots?

Example 7

easy
Does the sequence an=1โˆ’1na_n=1-\frac{1}{n} increase or decrease as nn grows?

Example 8

easy
Write the general term for 3,5,7,9,โ€ฆ3, 5, 7, 9, \ldots starting at n=1n=1.

Example 9

easy
In the sequence an=nn+1a_n=\frac{n}{n+1}, which term equals 45\frac{4}{5}?

Example 10

easy
Is 2,2,2,2,โ€ฆ2, 2, 2, 2, \ldots a valid sequence? What is its limit?

Example 11

medium
A sequence is defined recursively by a1=3a_1=3, an+1=an+4a_{n+1}=a_n+4. Find a5a_5.

Example 12

medium
The general term is an=2nโˆ’13n+2a_n=\frac{2n-1}{3n+2}. What value do the terms approach as nโ†’โˆžn\to\infty?

Example 13

medium
Find a formula for the nnth term of 1,4,9,16,25,โ€ฆ1, 4, 9, 16, 25, \ldots and use it to find the 8th term.

Example 14

medium
The sequence an=(โˆ’1)na_n=(-1)^n gives โˆ’1,1,โˆ’1,1,โ€ฆ-1,1,-1,1,\ldots. Does it converge?

Example 15

medium
Given an=anโˆ’1โ‹…12a_n=a_{n-1}\cdot\frac{1}{2} with a1=16a_1=16, find a4a_4 and describe long-term behavior.

Example 16

medium
For the sequence an=2n+1a_n=2n+1, what is the difference an+1โˆ’ana_{n+1}-a_n?

Example 17

challenge
A sequence satisfies a1=1a_1=1 and an+1=an+2an+1a_{n+1}=\frac{a_n+2}{a_n+1}. Show its terms approach 2\sqrt{2}.

Example 18

challenge
The Fibonacci sequence is 1,1,2,3,5,8,โ€ฆ1,1,2,3,5,8,\ldots with Fn+1=Fn+Fnโˆ’1F_{n+1}=F_n+F_{n-1}. Show Fn+1Fn\frac{F_{n+1}}{F_n} approaches 1+52\frac{1+\sqrt5}{2}.

Example 19

challenge
Prove the sequence an=3n2+1n2+2a_n=\frac{3n^2+1}{n^2+2} is bounded above by 3 and find its limit.

Example 20

medium
Find the 10th term of the sequence defined by an=3โ‹…2nโˆ’1a_n=3\cdot2^{n-1}.

Example 21

medium
A sequence has an=n2n2+1a_n=\frac{n^2}{n^2+1}. Is it increasing, and what is its limit?

Example 22

medium
Find the general term of 2,6,12,20,30,โ€ฆ2, 6, 12, 20, 30, \ldots (hint: products of consecutive integers).

Example 23

easy
Trace: x=7x=7; y=xโˆ’2y=x-2; z=y+1z=y+1. What is zz?

Example 24

easy
Trace: a=4a=4; b=a+ab=a+a; c=b+ac=b+a. What is cc?

Example 25

easy
Order the steps to send an email: (1) Click Send, (2) Type message, (3) Open email app, (4) Enter recipient. Give the correct order.

Example 26

easy
Trace: p=3p=3; q=pq=p; p=p+10p=p+10. What is qq?

Example 27

easy
Trace: ss = ''; s=s+โ€ฒgโ€ฒs = s + 'g'; s=s+โ€ฒoโ€ฒs = s + 'o'. What is ss?

Example 28

medium
Trace: x=10x=10; y=x/2y=x/2; x=xโˆ’yx=x-y; OUTPUT xx.

Example 29

medium
Order so that account balance prints correctly: (1) print balance, (2) deposit = 50, (3) balance = balance + deposit, (4) balance = 100. Give the order.

Example 30

medium
Trace: a=6a=6; b=4b=4; a=a+ba=a+b; b=aโˆ’bb=a-b; OUTPUT aa, bb.

Example 31

medium
Trace: m=12m=12; m=m%5m=m\%5; m=mโˆ—4m=m*4; OUTPUT mm.

Example 32

medium
Trace: L=[1,2]L=[1,2]; LL.append(3); LL.append(LL[0]); OUTPUT LL.

Example 33

medium
Trace: a=2a=2; b=aโˆ—ab=a*a; c=bโˆ—ac=b*a; d=c+b+ad=c+b+a; OUTPUT dd.

Example 34

medium
Trace: x=5x=5; y=10y=10; swap (no temp): x=x+yx=x+y; y=xโˆ’yy=x-y; x=xโˆ’yx=x-y. Final x,yx,y?

Example 35

medium
Trace: count=0count=0; count=count+1count=count+1; count=countโˆ—2count=count*2; count=count+1count=count+1; OUTPUT countcount.

Example 36

medium
If you reorder `open file; read file; close file` to `read; open; close`, what happens at runtime?

Example 37

hard
Trace: a=1a=1; b=2b=2; c=3c=3; a=ba=b; b=cb=c; c=ac=a. Final a,b,ca,b,c?

Example 38

hard
A statement using zz appears at line 3; zz is assigned at line 7. Will the program work as written? Why or why not?

Example 39

hard
Trace: x=2x=2; y=xy=x; x=x+1x=x+1; z=x+yz=x+y; y=zโˆ’xy=z-x; OUTPUT x,y,zx,y,z.

Example 40

challenge
Trace: a=1a=1; b=ab=a; a=a+ba=a+b; b=a+bb=a+b; a=a+ba=a+b; OUTPUT aa.