📘 CodingMarble Learn

Sequences and Progressions

A sequence is a list of numbers in a fixed order. We can describe it with a recursive rule (how to get the next term from the last one) or an explicit rule (a formula for term n). In an arithmetic progression (AP) we add the same number every time. In a geometric progression (GP) we multiply by the same number every time. Fractals and the Tower of Hanoi are fun patterns that hide these rules.

🎬 Step-by-step story

  1. Look at the towers: 3, 5, 7, 9, 11 blocks. This list in order is a sequence. Each tower is 2 more than the last.
  2. When we add the same number every time, it is an AP. First term a = 3 (blue). Common difference d = 2 (orange). Term n = a + (n − 1)d.
  3. Now add 1 + 2 + 3 + 4 + 5. Put an upside-down copy on the staircase. You get a 5 by 6 rectangle. Half of 30 is 15.
  4. Now each tower doubles: 1, 2, 4, 8, 16. We multiply by the same number r = 2. That is a GP. Term n = a × rⁿ⁻¹.
  5. A fractal: cut a triangle into 3 smaller ones, again and again. The counts 1, 3, 9, 27 make a GP with r = 3.
  6. Tower of Hanoi: move all disks to the last peg, one at a time, never big on small. 3 disks need 7 moves. Free play: pick the disks and watch.

Tip: drag the 3D scene to turn it. Use two fingers to zoom.

🤔 Common doubts, cleared

Is every list of numbers a sequence?

A list is a sequence when the order matters and each place has a term. A rule makes it useful, because then we can find any term.

Why do we use (n − 1) and not n in the nth term?

The first tower already has a. To reach tower n you add d only (n − 1) times. Count the orange bands on tower 5: there are 4.

Why do we divide by 2 in n(n + 1)/2?

The staircase plus its upside-down copy makes a rectangle of n(n + 1) blocks. Our staircase is only half of it.

How is a GP different from an AP in the towers?

AP towers grow by the same number of blocks. GP towers grow by the same multiple, so the jumps get bigger and bigger.

Why is it 3ⁿ triangles at stage n?

Every triangle turns into 3. So each stage multiplies the count by 3: 1, 3, 9, 27. That is a GP with r = 3.

Can the Tower of Hanoi be done in fewer than 2ⁿ − 1 moves?

No. The biggest disk must wait until all smaller disks are cleared, and they must come back after. Every shortcut breaks a rule. Try it in free play.

What is a sequence?

A sequence is a list of numbers in a fixed order. Each number is called a term. We write the terms as t₁, t₂, t₃ … (read "t one, t two"). The small number is the position.

Examples: 2, 4, 6, 8 … (even numbers), 1, 4, 9, 16 … (square numbers), 1, 1, 2, 3, 5, 8 … (each term is the sum of the two before it).

Explicit and recursive rules

There are two ways to write the rule of a sequence.

A recursive rule is easy to understand. An explicit rule is fast for far-away terms. In step 1 of the 3D, the readout shows both rules for the same towers.

Arithmetic progression (AP) and its nth term

An arithmetic progression (AP) is a sequence where we add the same number every time. That number is the common difference d. The first term is a.

To reach term n from term 1, we add d a total of (n − 1) times. So

aₙ = a + (n − 1)d

Example: 3, 5, 7, … has a = 3, d = 2. The 20th term = 3 + 19 × 2 = 41. d can be negative: 10, 7, 4, 1 … has d = −3. See step 2 in the 3D: blue blocks are a, each orange band is one d.

Sum of the first n natural numbers

What is 1 + 2 + 3 + … + n? Write the sum forwards and backwards and add:

S = 1 + 2 + … + n
S = n + (n − 1) + … + 1
2S = (n + 1) + (n + 1) + … (n times) = n(n + 1)

1 + 2 + … + n = n(n + 1)/2

The 3D (step 3) shows the same idea with blocks: a staircase plus its upside-down copy makes an n by (n + 1) rectangle. So 1 + 2 + … + 100 = 100 × 101 ÷ 2 = 5050.

Geometric progression (GP) and its nth term

A geometric progression (GP) is a sequence where we multiply by the same number every time. That number is the common ratio r. Find it by dividing: r = t₂ ÷ t₁.

To reach term n, we multiply by r a total of (n − 1) times. So

aₙ = a × rⁿ⁻¹

Examples: 1, 2, 4, 8 … (r = 2). 5, 15, 45 … (r = 3). 64, 32, 16 … (r = 1/2, it shrinks). A GP with r bigger than 1 grows very fast. Step 4 of the 3D shows doubling towers.

Fractals: patterns inside patterns

A fractal is a shape where each small part looks like the whole shape. Start with one triangle. Join the midpoints of its sides and remove the middle piece. Now you have 3 smaller triangles. Do the same to each of them, again and again. This is called the Sierpinski triangle.

Number of triangles: 1, 3, 9, 27, … a GP with r = 3. At stage n there are 3ⁿ triangles. The side of each triangle halves every stage: 1, 1/2, 1/4 … another GP with r = 1/2. Step 5 of the 3D builds stages 0 to 3.

Tower of Hanoi

There are 3 pegs. Disks of different sizes sit on the first peg, biggest at the bottom. Goal: move all of them to the last peg. Rules: move one disk at a time, and never put a bigger disk on a smaller one.

Why a recursive rule appears: to move n disks, first move the top (n − 1) disks out of the way, then move the biggest disk once, then move the (n − 1) disks back on top. So Hₙ = 2Hₙ₋₁ + 1, with H₁ = 1. This gives 1, 3, 7, 15, 31 …

Each term is one less than a power of 2, so the explicit rule is Hₙ = 2ⁿ − 1. 3 disks: 7 moves. 10 disks: 1023 moves.

Try it: Tower of Hanoi with coins

Take 3 coins of different sizes (₹1, ₹2, ₹5) and draw 3 circles on paper. Stack the coins on the first circle, biggest at the bottom. Move them to the third circle using the rules. Count your moves. Can you do it in 7? Now add a fourth coin and predict the answer before you try (hint: double and add one). Then check with the disks slider in the last step of the 3D.

Key formulas and definitions

Worked examples

1. Write the first four terms of the sequence with t₁ = 4 and tₙ = tₙ₋₁ + 5.

t₁ = 4. t₂ = 4 + 5 = 9. t₃ = 9 + 5 = 14. t₄ = 14 + 5 = 19. So 4, 9, 14, 19.

2. Find the explicit rule for 4, 9, 14, 19, … and use it to find t₅₀.

It goes up by 5 each time, so tₙ = 5n + something. For n = 1: 5 + ? = 4, so ? = −1. tₙ = 5n − 1. Check t₂ = 9 ✓. t₅₀ = 250 − 1 = 249.

3. Find the 15th term of the AP 7, 11, 15, …

a = 7, d = 11 − 7 = 4. a₁₅ = 7 + (15 − 1) × 4 = 7 + 56 = 63.

4. Find 1 + 2 + 3 + … + 50.

n = 50. Sum = 50 × 51 ÷ 2 = 2550 ÷ 2 = 1275.

5. Find the 6th term of the GP 3, 6, 12, …

a = 3, r = 6 ÷ 3 = 2. a₆ = 3 × 2⁵ = 3 × 32 = 96.

6. In the Sierpinski triangle, how many small triangles are there at stage 5?

The counts are 1, 3, 9, … so stage n has 3ⁿ. Stage 5: 3⁵ = 243 triangles.

7. How many moves are needed for the Tower of Hanoi with 6 disks? Check with the recursive rule.

Explicit: 2⁶ − 1 = 64 − 1 = 63. Recursive: H₁ = 1, H₂ = 3, H₃ = 7, H₄ = 15, H₅ = 31, H₆ = 2 × 31 + 1 = 63 ✓.

Common mistakes

Practice quiz

1. A rule that gives each term from the term before it is called:
2. The 10th term of the AP 2, 5, 8, … is:
3. 1 + 2 + … + 20 equals:
4. The common ratio of 81, 27, 9, 3, … is:
5. Minimum moves for Tower of Hanoi with 4 disks:

Practice: answer these yourself

Type or choose your answer, then press Check. Use a hint if you are stuck; the full solution appears after you answer.

Frequently asked questions

What is the difference between an AP and a GP?

In an AP you add the same number (d) to get the next term. In a GP you multiply by the same number (r). Check the differences for an AP and the ratios for a GP.

Is this the same as the Class 10 arithmetic progressions chapter?

Class 9 (CBSE 2026-27) introduces sequences, recursive and explicit rules, AP nth term, the sum 1 + … + n, GP, fractals and the Tower of Hanoi. Class 10 goes deeper into APs and the sum of n terms of any AP, which is in the next lesson.

Why is the Tower of Hanoi answer 2ⁿ − 1?

Moving n disks needs twice the moves for (n − 1) disks plus one move for the biggest disk. Starting from 1, doubling and adding one gives 1, 3, 7, 15 …, which are always one less than 2, 4, 8, 16.

Where this is taught

Canada (Ontario)Grade 8C. Algebra
NetherlandsVWO 2 (onderbouw)Patterns and relations
PolandLiceum ogólnokształcące, klasa IISequences
RomaniaClasa a IX-aProblem-solving strategies
RomaniaClasa a IX-aProblem-solving strategies
RomaniaClasa a IX-aProblem-solving strategies
Spain2º ESOAlgebraic sense
Spain3º ESOAlgebraic sense
Spain4º ESOAlgebraic sense
Spain4º ESOAlgebraic sense
Spain1º BachilleratoAlgebraic Sense
Spain1º BachilleratoAlgebraic Sense
Spain1º BachilleratoAlgebraic sense and computational thinking
Spain2º BachilleratoAlgebraic Sense
Spain2º BachilleratoAlgebraic Sense
Ukraine9 класFunctions
CBSE (India)Class 9Algebra
England (GCSE, A level)Year 9Algebra
England (GCSE, A level)Year 103.2 Algebra
USA (Common Core, NGSS, AP)Grade 9Linear and exponential relationships
South Korea고등학교 2학년Change and relationships
South Korea고등학교 3학년Patterns
Russia9 классSequences and progressions
Russia9 классSequences and progressions

Learn first

Learn next

Related lessons

All Maths lessons