Recursive Equations

We will first solve one basic recurrent equation.

Problem 1. Let \(a_n\) be a sequence given by \(a_0=0\) and \(a_{n+1}=2a_n+1\) for \(n\geq0\). Find the general term of the sequence \(a_n\).

Problem 2. Find the general term of the sequence given recurrently by \[a_{n+1}=2a_n+n, \quad (n\geq0), \;\; a_0=1.\]

In previous two examples the term of the sequence was depending only on the previous term. We can use generating functions to solve recurrent relations of order greater than \(1\).

Problem 3. (Fibonacci sequence) \(F_0=0\), \(F_1=1\), and for \(n\geq1\), \(F_{n+1}=F_n+F_{n-1}\). Find the general term of the sequence.

Remark: From here we can immediately get the approximate formula for \(F_n\). Since \(|\beta| < 1\) we have \(\lim_{n\to \infty} \beta^n=0\) and \[F_n\approx \frac 1{\sqrt5}\left(\frac{1+\sqrt5}2\right)^n.\]

Now we will consider the case with the sequence of two variables.

Problem 4. Find the number of \(k\)-element subsets of an \(n\)-element set.

Someone might think that this was a cheating. We have used binomial formula, and that is obtained using a combinatorial technique which uses the result we wanted to prove. Fortunately, there is a proof of binomial formula involving Taylor expansion.

We can also make a generating function of the sequence \(C_n(x)\): \[\sum_n C_n(x)y^n=\sum_n\sum_k \binom{n}{k}x^ky^n= \sum_n (1+x)^ny^n=\frac 1{1-y(1+x)}.\] In such a way we have \(\binom{n}{k}=[x^ky^n](1-y(1+x))^{-1}\). Now we can calculate the sum \(\sum_n \binom{n}{k}y^n\): \[ [x^k]\sum_n\sum_k \binom nkx^ky^n= [x^k]\frac 1{1-y(1+x)}= \frac 1{1-y}[x^k]\frac 1{1-\frac y{1-y}x}\] \[ =\frac 1{1-y}\left(\frac y{1-y}\right)^k=\frac {y^k}{(1-y)^{k+1}}. \] Hence we have the identities \[\sum_k \binom{n}{k}x^k=(1+x)^n; \quad\quad \sum_n \binom{n}{k}y^n=\frac {y^k}{(1-y)^{k+1}}.\]

Remark: For \(n < k\) we define \(\binom{n}{k}=0\).

Problem 5. Find the general term of the sequence \(a_{n+3}=6a_{n+2}-11a_{n+1}+6a_n\), \( n\geq0\) with the initial conditions \(a_0=2\), \(a_1=0\), \(a_2=-2\).

The following example will show that sometimes we can have troubles in finding the explicit formula for the elements of the sequence.

Problem 6. Let the sequence be given by \(a_0=0\), \(a_1=2\), and for \(n\leqslant0\): \[a_{n+2}=-4a_{n+1}-8a_n.\] Find the general term of the sequence.

Now we will consider a more complex recurrent equation.

Problem 7. Find the general term of the sequence \(x_n\) given by: \[x_0=x_1=0, \quad\quad x_{n+2}-6x_{n+1}+9x_n=2^n+n \quad \mbox{for } n\geq0.\]

Problem 8. Let \(f_1=1\), \(f_{2n}=f_n\), and \(f_{2n+1}=f_n+f_{n+1}\). Find the general term of the sequence.