Gradient

Courses

∇\nabla∇The maths behind AI0/72
π\piπMaths0/84
⋆\star⋆AI for everyone0/10
Γ\GammaΓGame theory0/49
py\texttt{py}pyPython for AI0/15
y^\hat{y}y^​Build your own AI0/15
All courses

Tuition

My tuitionOlympiad trackCompetitions

Practice

ProjectsAsk a questionTrain on a GPUExplorationsMaths StoriesUnsolved problemsPlaygroundScience labsMock testsOlympiad

Reference

GlossaryBlogDiscoveries
Competitions › IOQM › unit 8 of 14

Sequences and recursion

IOQM · All sections · about 6 minutes

Arithmetic and geometric sequences, recurrences like the Fibonacci numbers, and finding patterns in long sequences.

Compute the first few terms, spot the pattern or cycle, then prove or use it.

In this lesson

  1. Find the cycle
  2. Telescoping recurrences
  3. Worked examples
  4. Where marks are lost
  5. Check yourself

1Find the cycle

If each term depends only on the one before and the values come from a finite set, the sequence must repeat. Find the period, then reduce the index mod the period.

2Telescoping recurrences

If aₙ₊₁ − aₙ = f(n), then aₙ = a₁ + f(1) + … + f(n − 1).

Worked examples

  1. Example 1a₁ = 1 and aₙ₊₁ = aₙ + n. Find a₂₀.

    1. a₂₀ = 1 + (1 + 2 + … + 19).
    2. = 1 + 190.

    Answer: 191

Where marks are lost

  • Off-by-one errors when reducing the index.
  • Assuming a pattern from too few terms.

Exam tips

  • Look for periodicity: many recurrences repeat.
  • Fibonacci: Fₙ₊₁ = Fₙ + Fₙ₋₁; every third Fibonacci number is even.
  • Sum of an AP = n × (first + last)/2.

Practice questions

  1. a₁ = 1, aₙ₊₁ = aₙ + 2n. What is a₅?

  2. Last digit of F₆₀ (Fibonacci)?

  3. a₁ = 2, aₙ₊₁ = 1/(1 − aₙ). a₂₀₂₆ = ?

More worked examples

Try each one first, then open the working.

  1. AP: -1, -3, -5, … What is term 21?

    Show the working

    Start: First term plus (n − 1) steps.

    aₙ = a + (n − 1)d.

    Answer: -41

  2. Sum of the first 13 terms of 7, 12, 17, …?

    Show the working

    Start: Pair the first and last terms.

    Sₙ = n/2 × (2a + (n − 1)d).

    Answer: 481

  3. GP: 1, 3, 9, … Term 4?

    Show the working

    Start: Multiply by r each step.

    aₙ = a × rⁿ⁻¹.

    Answer: 27

  4. Next Fibonacci number: 5, 8, 13, 21, 34, ?

    Show the working

    Start: Add the last two.

    21 + 34 = 55.

    Answer: 55

Practise more

New questions every time, at exam level

AP: 1, 4, 7, … What is term 9?

Learn it properly

Full chapters with animations, each with an “Explained simply” version.

  • Arithmetic progressionsClass 10
  • Sequences and seriesClass 11

Sit a timed IOQM mock test

Quadratic equationsNext: Diophantine equations