Maths WorkshopMaths problems with full solutions
Exercise 355Calculus › Single-variable calculus › SequencesL1Added 2 Nov 2026

A linear recurrence of order two

#linear recurrence#characteristic equation

Statement

Find the general term of (un)(u_n) with u0=3u_0=3, u1=5u_1=5 and un+2=3un+1−2unu_{n+2}=3u_{n+1}-2u_n.

Hint

Look for solutions un=rnu_n=r^n. This leads to the characteristic equation r2−3r+2=0r^2-3r+2=0.

Show solutionHide solution

Solution

Characteristic equation. r2−3r+2=(r−1)(r−2)=0r^2-3r+2=(r-1)(r-2)=0, so r1=1r_1=1 and r2=2r_2=2.

General solution. Both 1n1^n and 2n2^n satisfy the recurrence, and so does every combination un=A+B2nu_n=A+B2^n.

Initial conditions. A+B=3A+B=3 and A+2B=5A+2B=5, so B=2B=2 and A=1A=1.

Answer. un=1+2n+1u_n=1+2^{n+1}.