ExamSaathi learning library · School · CBSE Class 9 Mathematics 2026-27; teacher review pending · Mathematics

Sequences: explicit and recursive rules, geometric progressions and the Tower of Hanoi

Describe a sequence by an explicit rule or a recursive rule, recognise a geometric progression from its common ratio and use T(n) = a x r^(n - 1), then count Sierpinski triangle pieces and the fewest moves in the Tower of Hanoi.

Status: original pilot lesson. Teacher review is pending. It is not a complete course or official exam material.

You will learn to

Before you start

A sequence is a list of numbers written in a fixed order, and each number in it is a term. The position of a term is a counting number: 1 for the first term, 2 for the second, and so on. In this lesson T(n) stands for the term in position n, so T(1) is the first term and T(5) is the fifth. For the odd numbers 1, 3, 5, 7, 9 we have T(4) = 7. You may already know arithmetic progressions, where the same number is added every time. Here we look at two general ways of writing the rule of any sequence, and then at progressions that grow or shrink by multiplying.

Explicit rules and recursive rules

An explicit rule gives a term straight from its position. With T(n) = 4n - 1, put n = 1, 2, 3, 4 to get 3, 7, 11, 15, and the 100th term is 4 x 100 - 1 = 399 without listing the 99 terms before it. A recursive rule gives a starting term and a way to build each term from earlier ones. The same list is T(1) = 3 and T(n) = T(n - 1) + 4 for n = 2, 3, 4 and so on: start at 3 and keep adding 4. A recursive rule must state its starting value, because 'add 4 each time' on its own could begin anywhere. Some rules look back two steps. The Virahanka numbers 1, 2, 3, 5, 8, 13 start with 1 and 2, and each later term is the sum of the two terms just before it. An explicit rule is quicker for a far-off term; a recursive rule shows how the pattern grows one step at a time.

Geometric progressions

In a geometric progression (GP) every term after the first is the previous term multiplied by one fixed number, the common ratio r. To test a list, divide each term by the term before it. If an earlier term is 0, that ratio is undefined, so check instead whether one fixed r turns every term into the next. For 5, 15, 45, 135 the ratios are 15/5, 45/15 and 135/45, all equal to 3, so it is a GP with first term a = 5 and r = 3. The terms are a, a x r, a x r^2, a x r^3, so the explicit rule is T(n) = a x r^(n - 1). The power is one less than the position because the first term has not been multiplied at all. Here T(6) = 5 x 3^5 = 5 x 243 = 1215. The recursive rule is T(1) = 5 and T(n) = 3 x T(n - 1). With a positive first term, a ratio between 0 and 1 makes the terms shrink: 96, 48, 24, 12 has r = 1/2. A negative ratio makes the signs alternate: 2, -6, 18, -54 has r = -3. An arithmetic progression has a common difference; a GP has a common ratio.

Fractals: the Sierpinski triangle

A fractal is a shape built by repeating one rule at smaller and smaller sizes. For the Sierpinski triangle, stage 0 is one shaded equilateral triangle. To reach the next stage, join the midpoints of the sides of every shaded triangle; this cuts it into four equal smaller triangles, and the middle one is removed. Each shaded triangle therefore turns into 3 shaded triangles, so the counts at stages 0, 1, 2, 3 are 1, 3, 9, 27: a GP with ratio 3, and 3^n triangles at stage n. Because one piece out of four is removed each time, every stage keeps 3/4 of the shaded area of the stage before. If stage 0 has area 1 square unit, the shaded area at stage n is (3/4)^n square units, which is also a GP. The count of triangles grows very fast while the shaded area keeps shrinking towards 0. Since this pattern starts at stage 0, the power is simply the stage number.

The Tower of Hanoi

The Tower of Hanoi puzzle has three pegs and a stack of n discs of different sizes on one peg, largest at the bottom. The task is to move the whole stack to another peg, shifting one disc at a time and never placing a larger disc on a smaller one. Let M(n) be the fewest moves needed. One disc needs 1 move, so M(1) = 1. For n discs, the largest disc can move only when the other n - 1 discs sit on the spare peg. So: move the top n - 1 discs to the spare peg, move the largest disc to the target peg, then move the n - 1 discs from the spare peg onto the largest disc. This gives the recursive rule M(n) = 2 x M(n - 1) + 1 and the values 1, 3, 7, 15, 31. Add 1 to each value to get 2, 4, 8, 16, 32, a GP with ratio 2. So M(n) + 1 = 2^n and the explicit rule is M(n) = 2^n - 1. Ten discs already need 1023 moves.

Common mistakes

Writing a x r^n for the nth term of a GP that starts at position 1 is a common slip; the power is n - 1, so the third term of 2, 6, 18 is 2 x 3^2 = 18, not 2 x 3^3. A pattern that starts at stage 0, like the Sierpinski count 3^n, has no minus 1, so always check where the counting begins. Find a ratio by dividing a term by the one before it (the earlier term must not be 0), not by subtracting, and not the other way round. Test every pair of neighbours: 3, 6, 12, 18 doubles at first but then adds 6, so it is not a GP. Do powers before multiplying: 5 x 3^4 is 5 x 81 = 405, not 15^4. A recursive rule written without its starting value is incomplete. For the Tower of Hanoi, the moves are not simply doubled: M(4) = 2 x 7 + 1 = 15, not 14 or 16.

A short routine for sequence questions

1. List the first few terms with their positions. 2. Find the differences between neighbours; if they are all equal, the list is an arithmetic progression. 3. Also find the ratios of neighbours (each earlier term must not be 0); if they are all equal, it is a GP with first term a and common ratio r. A constant list such as 5, 5, 5 is both, with difference 0 and ratio 1. 4. Write the recursive rule: the starting value, then how each term comes from the one before. 5. Write the explicit rule: T(n) = a x r^(n - 1) for a GP that starts at position 1, or a x r^n when the counting starts at stage 0. 6. Check the rule on two known terms before using it for a far-off term. 7. For puzzles such as the Tower of Hanoi, describe one step in terms of the step before, then look for a GP hidden in the values.

Worked examples

  1. A sequence has T(1) = 4 and T(n) = 3 x T(n - 1) for n = 2, 3, 4 and so on. Write the first five terms, give an explicit rule, and find T(8).

    1. Build the terms from the rule: T(2) = 3 x 4 = 12, T(3) = 3 x 12 = 36, T(4) = 3 x 36 = 108 and T(5) = 3 x 108 = 324.
    2. Each term is 3 times the one before, so this is a GP with first term a = 4 and common ratio r = 3.
    3. The explicit rule is T(n) = a x r^(n - 1) = 4 x 3^(n - 1).
    4. So T(8) = 4 x 3^7 = 4 x 2187 = 8748. Check with the recursive rule: T(6) = 972, T(7) = 2916 and T(8) = 3 x 2916 = 8748.

    Answer: The terms are 4, 12, 36, 108 and 324; the explicit rule is T(n) = 4 x 3^(n - 1), and T(8) = 8748.

  2. Find the fewest moves needed to shift a Tower of Hanoi stack of 6 discs, first with the recursive rule and then with the explicit rule. If each move takes 2 seconds, how long does the shift take?

    1. Start from M(1) = 1 and use M(n) = 2 x M(n - 1) + 1: M(2) = 3, M(3) = 7, M(4) = 15 and M(5) = 31.
    2. Then M(6) = 2 x 31 + 1 = 63.
    3. Check with the explicit rule: M(6) = 2^6 - 1 = 64 - 1 = 63.
    4. Time taken = 63 x 2 = 126 seconds, which is 2 minutes 6 seconds.

    Answer: At least 63 moves are needed, taking 126 seconds at 2 seconds a move.

  3. Stage 0 of a Sierpinski triangle is a shaded triangle of area 64 square cm. How many shaded triangles are there at stage 3, and what is the total shaded area then?

    1. Each stage turns every shaded triangle into 3, so the count at stage 3 is 3^3 = 27.
    2. Each stage keeps 3/4 of the shaded area, so the shaded area at stage 3 is 64 x (3/4)^3 = 64 x 27/64 = 27 square cm.
    3. Check another way: each stage halves the side of the small triangles, so at stage 3 a side is 1/8 of the original and each small triangle has area 64/64 = 1 square cm; 27 of them give 27 square cm.

    Answer: Stage 3 has 27 shaded triangles with a total shaded area of 27 square cm.

Practice checks

  1. Which recursive rule gives the same sequence as the explicit rule T(n) = 5n + 2?
  2. What is the 7th term of the geometric progression 2, 6, 18, 54, ...?
  3. Which of these lists is a geometric progression?
  4. The Tower of Hanoi needs at least 255 moves for a certain number of discs. How many discs are there?
  5. Stage 0 of a Sierpinski triangle is one shaded triangle. At stage 5, how many shaded triangles are there and what fraction of the starting area is still shaded?

Sources checked