2078 5

CSC165 ยท 2078 ยท 5 marks

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

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

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

Solution of Recurrence Relation

Given

$$a_n = 5a_{n-1} - 6a_{n-2}, \quad a_0 = 1,\ a_1 = 4$$

Solution

Characteristic equation. Assume $a_n = r^n$:

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

Roots:

$$(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:

$n=0$: $\alpha_1 + \alpha_2 = 1 \quad (i)$

$n=1$: $2\alpha_1 + 3\alpha_2 = 4 \quad (ii)$

From $(i)$: $\alpha_1 = 1 - \alpha_2$. Substitute into $(ii)$:

$$2(1 - \alpha_2) + 3\alpha_2 = 4 \implies 2 + \alpha_2 = 4 \implies \alpha_2 = 2$$

$$\alpha_1 = 1 - 2 = -1$$

Final solution:

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

Verification:

$n$$2\cdot3^n - 2^n$Check
0$2-1=1$$a_0=1$ โœ“
1$6-2=4$$a_1=4$ โœ“
2$18-4=14$$5(4)-6(1)=14$ โœ“

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