2075 4

CSC165 ยท 2075 ยท 5 marks

Solve the recurrence relation an = 5an-1 - 6an-2, with initial conditions a1 = 1 and a2 = 2.

Solve the recurrence relation $a_n = 5a_{n-1} - 6a_{n-2}$, with initial conditions $a_1 = 1$ and $a_2 = 2$. [5]

Discrete StructuresChapter 5: Counting and Discrete ProbabilitySolving Recurrence RelationsNumerical: solving recurrence relation

Solution of Recurrence Relation

Given

  • Recurrence: $a_n = 5a_{n-1} - 6a_{n-2}$
  • Initial conditions: $a_1 = 1$, $a_2 = 2$

This is a linear homogeneous recurrence of degree 2 with constant coefficients.


Solution

Characteristic equation

Substitute $a_n = r^n$:

$$r^2 = 5r - 6 \implies r^2 - 5r + 6 = 0$$

Factor:

$$(r-2)(r-3) = 0 \implies r_1 = 2,\ r_2 = 3$$

Distinct roots, so the general solution is:

$$a_n = \alpha_1 \cdot 2^n + \alpha_2 \cdot 3^n$$

Apply initial conditions

For $a_1 = 1$: $$2\alpha_1 + 3\alpha_2 = 1 \quad (i)$$

For $a_2 = 2$: $$4\alpha_1 + 9\alpha_2 = 2 \quad (ii)$$

Multiply $(i)$ by 2: $$4\alpha_1 + 6\alpha_2 = 2 \quad (iii)$$

Subtract $(iii)$ from $(ii)$: $$3\alpha_2 = 0 \implies \alpha_2 = 0$$

From $(i)$: $$2\alpha_1 = 1 \implies \alpha_1 = \tfrac{1}{2}$$

Final solution

$$\boxed{a_n = \tfrac{1}{2}\cdot 2^n = 2^{n-1}}$$

Verification

$n$$2^{n-1}$Recurrence
11given
22given
34$5(2)-6(1)=4$ โœ“
48$5(4)-6(2)=8$ โœ“

The solution satisfies both the recurrence and initial conditions.

Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.