Rewrite the recurrence relation \(a_n - 7a_{n-1} + 10a_{n-2} = 0\text{.}\) Now form the characteristic equation:

\begin{equation*} x^2 - 7x + 10 = 0 \end{equation*}

and solve for \(x\text{:}\)

\begin{equation*} (x - 2) (x - 5) = 0 \end{equation*}

so \(x = 2\) and \(x = 5\) are the characteristic roots. We therefore know that the solution to the recurrence relation will have the form

\begin{equation*} a_n = a 2^n + b 5^n\text{.} \end{equation*}

To find \(a\) and \(b\text{,}\) plug in \(n =0\) and \(n = 1\) to get a system of two equations with two unknowns:

\begin{align*} 2 \amp = a 2^0 + b 5^0 = a + b\\ 3 \amp = a 2^1 + b 5^1 = 2a + 5b \end{align*}

Solving this system gives \(a = \frac{7}{3}\) and \(b = -\frac{1}{3}\) so the solution to the recurrence relation is

\begin{equation*} a_n = \frac{7}{3}2^n - \frac{1}{3} 5^n\text{.} \end{equation*}