You're reading: Columns, Irregulars

Sequences in the classroom

Guest author David Benjamin shares some of his favourite ways to use sequences in a teaching context.

As a maths teacher, I’ve found that sequences are a great way to engage and inspire mathematical reasoning. I thought I’d share some examples of sequences, and sequence-related activities, I’ve used with success in the past.

A simple starter

Whenever I asked a group of students for the next 3 terms in the sequence 2,4,6, I expected their responses to be 8,10,12. I always hoped to find a budding Carl Gauss who would say 12,24,36 and then explain that 2,4,6,12,24,36 are the 2nd to 7th terms of the sequence of integers that are the product of two factorials, with first term 1.

In fact the wonderful On-Line Encyclopaedia of Integer Sequences displays 5508 sequences containing the subsequence 2,4,6, which opened up a discussion about the need for more information – a starting number, a rule that defines how the next term is generated, and so on. Entering more terms reduces the number of results – 2,4,6,8,10,12 brings up a possible 337 sequences, such as the product of decimal digits of n (can you work out where this set of terms starts within the sequence without looking?).

Of course, not all sequences have a rule to give the next term – the set of prime numbers being a prime example, or the next digit in the sequence of decimal digits in any irrational number. Many of the examples of sequences students may encounter are arithmetic or geometric progressions, and they’re expected to derive the rule, or give the next in the sequence – but it’s useful for them to see examples of sequences of different kinds, including ones which don’t have a simple pattern.

Sequences in π

One lesson starter I used was to search, using the Pi-Search page at angio.net, for students’ birthdays in π. A mini competition to see which student’s birthday appeared the most times, the closest to the start or the furthest away from the decimal point in the first 200 million digits. A starting point was my own birthday 18/11/1952, which produces the following result:

The current record for the number of digits of π is 62.8 trillion

Screenshot of the angio.net Pi Search, with plain text on a pink background. Text reads: 'The string 18111952 occurs at position 25115087. This string occurs 2 times in the first 200M digits of Pi.
counting from the first digit after the decimal point. The 3. is not counted.
[ Find Next button ]
The string and surrounding digits:
30362263315144765995 18111952 13047386731114123205'

I used the same website as a plenary after a lesson on common sequences:

Fibonacci: 11235813 occurs at position 48300974
Triangular numbers: 1361015 occurs at position 5505126
Primes: 23571113 occurs at position 8157777

This often led into a philosophical discussion about the longest possible length of a string of an irrational number inside itself, or inside another irrational. How much of π is in π?, e is in π?, π is in e,…?

Screenshot from the angio.net Pi search, reading 'The string 31415926 occurs at position 50366472. This string occurs 3 times in the first 200M digits of Pi.'
Screenshot from the angio.net Pi search, reading 'The string 27182818 occurs at position 73154827. This string occurs 3 times in the first 200M digits of Pi.'

The Collatz conjecture

Lothar Collatz [1910-1990] was a German mathematician most famous for his eponymous and currently unsolved conjecture on the outcome of the infinite number of sequences generated from any positive integer, n. If n is even then halve it to obtain the next number in the sequence, if n is odd, the next number is found by multiplying by 3 and adding 1.

Below is the sequence generated when n=17.

175226134020105168421421

If the rule for odd numbers is changed to ‘multiply by 3 and subtract 1, then there appear to be 3 different endings to a sequence: 1,2,1,2 or 5,14,17,20,10,5 or the easily missed 17,50,25,74,37,110,55,164,82,41,122,61,182,91,272,136,68,34,17

The conjecture is that all such sequences end at 1 [via the loop 4,2,1]. The sequence is often referred do as the hailstone sequence, since the value of the numbers generated bounce up and down as hailstones do in a cloud. Paul Erdős [1913-1996], the Hungarian mathematician and problem solver, believed mathematics was not ready for such a problem and John Conway stated in this lecture that it would not be solved in his lifetime – sadly, this is now true. At the time of writing the conjecture has been verified for all positive integers up to 268=295147905179352825856 or 295 quintillion 147 quadrillion 905 trillion 179 billion 352 million 825 thousand and 856.

The number of steps to reach 1 for n=1 to 10 are displayed in the table below:

n12345678910
Steps017258163196
Steps for n=1 to 72 can be found at the OEIS entry for A006577

I used the Collatz sequence in mathematics clubs – a sequence not in KS3/4 specifications and a way of stretching students horizontally. It also allowed me to introduce them to the concept of inverse functions by creating a ‘hailstone tree’. One of my classroom walls displayed a very large student-created tree with trunk 16,8,4,2,1 and with the first branches appearing at 16. Students would often extend the tree before the start of a lesson, leaving me to check for any errors later in the day! I hope the image of the tree has remained in some students’ minds in the same way I can still visualise the digits of π looping round 3 walls in one of the classrooms at the secondary school I attended in Burnage, Manchester.

Image of a tree, with sequences of numbers merging together at the trunk. Branches are 128-64-32-16, 21-64-32-16, 40-20-10-5-16 and 6-3-10-5-16 with trunk reading 16-8-4-2-1 down to the base.
Image from this classroom resource at TeachitMaths

John Conway’s constant, λ

Many years ago a student challenged me to find the next few terms of this sequence 1,11,21,1211,. I failed. He gave me the next 4 terms 111221,312211,13112221,1113213211, but that didn’t help. I felt better when I found out that Conway was also unable to work out the sequence when shown it by one of his students at Cambridge University. But the great man was able to analyse what is now called the look-and-say sequence or the C-sequence – another sequence I used in mathematics clubs – and of course Conway took the sequence to a whole new level.

  • 1 is “one one” or 11
  • 11 is “two ones” or 21
  • 21 is “one two and one one” or 1211
  • 1211 is “one one, one two and two ones” or 111221

Even when the ‘rule’ is known it’s still a challenge of concentration to find more terms (given in the OEIS entry for A005150). Well, it is for me!

Conway’s analysis of the sequence led him to the constant λ which is calculated in a similar way to how the golden number ϕ is calculated from the Fibonacci sequence:

If Ln is the number of digits of the nth number of the sequence then

λ=limnLn+1Ln1.303577269034, an algebraic number, specifically the unique positive real root of this polynomial of degree 71:

x71x692x68x67+2x66+2x65+x64x63x62x61x60x59+2x58+5x57+ 3x562x5510x543x532x52+6x51+6x50+x49+9x483x477x468x45 8x44+10x43+6x42+8x415x4012x39+7x387x37+7x36+x353x34+10x33+ x326x312x3010x293x28+2x27+9x263x25+14x248x237x21+ 9x20+3x194x1810x177x16+12x15+7x14+2x1312x124x112x10+5x9+ x77x6+7x54x4+12x36x2+3x6=0

Plot showing the roots of the polynomial, which roughly lie on a circle around the origin of radius 1; one root is off to the right on the real axis and is marked in red, at around 1.3
All the roots of the polynomial plotted in the complex plane, with λ displayed in red

The image below gives the ratio Ln+1Ln for n=7 to n=12:

Table showing terms from the sequence starting at the 7th term 13112221 and going as far as the 12th term, with a column for the ratio between successive terms (which is 1.3 recurring for this first term and oscillates, converging to 1.307)

Conway explains the results of his analysis of the sequence in this video.

Some more activities

Here are some more activities on ‘unusual’ sequences I’ve used in the classroom.

About the author

  • David Benjamin

    Teacher of mathematics [1975-2018], Author [Heinemann, Stanley Thornes], Key contributor and mathematics editor [teachitmaths], Mathematics software producer [Virtual Image]

(will not be published)

LATEX: You can use LaTeX in your comments. e.g. $ e^{\pi i} $ for inline maths; \[ e^{\pi i} \] for display-mode (on its own line) maths.

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>