Sequences and series · Mathematics Class 11–12 | StemPy Lab
Course 5.1·Lesson 1 of 3
Sequences and series
A sequence is a list of numbers in a definite order: a first term, a second term, and so on. It is a function whose inputs are the positions 1,2,3,…. The terms can come from a formula for an
Lesson 1 of 3Show all lessonsHide
Try the code and the simulations beside the lesson.
What you will be able to do
read a sequence as a function on the natural numbers, finite or infinite;
find terms from a formula for an, or from a rule that uses earlier terms;
write a series in sigma notation, and work out a partial sum;
recover the terms of a sequence from its partial sums.
A list in order
Rhea saves coins in a jar. She notes how many coins are in it at the end of each day. Her list begins 0,3,8,15,24,35,…. The order matters: the third number belongs to day 3.
A list like this is a sequence. Its numbers are its terms. We write the first term as a1, the second as a2, and the nth term as an.
A sequence is a function whose inputs are the natural numbers 1,2,3,…. The output at position n is the term an.
Two rows of boxes joined by arrows. The top row holds the positions 1 to 6 in blue. An arrow runs down from each position to an orange box below it holding the term: 0, 3, 8, 15, 24 and 35. Labels on the right read position n, rule n squared minus 1, and term a n. A line above says each position has exactly one term, so a sequence is a function on 1, 2, 3 and so on.
Rhea's terms follow a rule: an=n2−1. So a1=0, a2=3, and a10=99. A rule like this gives any term at once, without the ones before it.
A sequence that stops is finite, such as the marks of one class on a test. A sequence that goes on for ever is infinite, such as the odd numbers 1,3,5,7,….
Terms from a rule
Not every sequence has a neat formula. Some are built step by step, from the terms before.
The Fibonacci sequence starts with a1=1 and a2=1. After that, each term is the sum of the two before it:
an=an−1+an−2,n>2.
So the terms are 1,1,2,3,5,8,13,21,…. A rule of this kind is called a recurrence. To find a10, you must work through the terms in order.
Series and sigma notation
Adding the terms of a sequence gives a series. For the sequence a1,a2,a3,…, the series is a1+a2+a3+….
Long sums are written with the Greek letter sigma, ∑:
k=1∑nak=a1+a2+⋯+an.
The letter k runs through 1,2,…,n. For example,
k=1∑5(2k+1)=3+5+7+9+11=35.
The sum of the first n terms is the partial sumSn. So S1=a1, S2=a1+a2, and so on. For Rhea's sequence the partial sums are 0,3,11,26,50,85,….
Terms from the partial sums
Each partial sum is the one before it, plus one new term: Sn=Sn−1+an. Turn this round:
an=Sn−Sn−1(n≥2),a1=S1.
So if you know every partial sum, you know every term.
A worked example
The sum of the first n terms of a sequence is Sn=2n2+3n. Find a1 and an.
The first term.a1=S1=2+3=5.
The general term.Sn−1=2(n−1)2+3(n−1)=2n2−n−1.
Subtract.an=(2n2+3n)−(2n2−n−1)=4n+1.
Check. At n=1, 4n+1=5, which agrees with a1.
The terms are 5,9,13,17,…. Each is 4 more than the one before. The next lesson names sequences like this.
Practise with new numbers
Try it in Python
The program makes the terms of an=n2−1, builds the running totals, and then gets the terms back from the totals.
Common mistakes
Mixing up an and Sn.an is one term. Sn adds the first n terms.
Using an=Sn−Sn−1 at n=1. There is no S0 in the formula. Take a1=S1.
Skipping terms in a recurrence. A rule that uses earlier terms must be followed in order.
Reading the sigma limits wrongly.∑k=15 adds five terms, from k=1 to k=5.
Remember these
A sequence is a function on 1,2,3,…; its nth term is an.
Terms come from a formula for an, or from a recurrence.
Sn=a1+a2+⋯+an=∑k=1nak.
a1=S1, and an=Sn−Sn−1 for n≥2.
Check yourself
Try each one on your own first. If you are stuck, open a hint. Then check with Show the answer.
Write the first four terms of an=n+1n.
A sequence has a1=4 and an=3an−1−2 for n>1. Find a4.
Work out ∑k=14k2.
The partial sums of a sequence are Sn=n2+n. Find a7.
Is the list of a city's daily rainfall in June a finite or an infinite sequence?
Enroll free in Sequences, Series and Arithmetic Progressions
Every lesson is open to read. Enrolling also lets you:
Mark lessons done and carry on where you stopped.
Take the tests of this lesson and its course.
Count the course towards the certificate for its chapter.