recurrence-relations-contd
recurrence-relations-contd
1 Particular Solution
Consider the equation
an + 5an−1 + 6an−2 = 3n2 (1)
Assume that the particular solution is of the form
P1 n2 + P2 n + P3 (2)
or
(P1 + 5P1 + 6P1 )n2 + (P2 − 10P1 + 5P2 − 24P1 + 6P2 )n+
(P3 + 5P1 − 5P2 + 5P3 + 24P1 − 12P2 + 6P3 ) = 3n2 (3)
6-1
Example 1.1 Consider the difference equation
an = P1 n2 + P2 n + P3 (5)
or
or
5 6
(1 ++ )P 4n = 42(4)n (8)
4 16
n
Equating coefficients of 4 in equation (8), we get
P = 16
an(P ) = 16(4)n
6-2
General form :
1. If f (n) is of the form β n , then the corresponding particular solution is of the form
P β n , provided β and −β is not root of the characteristic equation.
2. If f (n) is of the form
(F1 nt + F2 nt−1 + ... + Ft+1 )β n
then the corresponding particular solution is of the form
(P1 nt + P2 nt−1 + ... + Pt+1 )β n
provided β and −β is not root of the characteristic equation.
Example 1.3 Consider the equation
an + an−1 = 3n2n (9)
Assume that the particular solution is of the form
(P1 n + P2 )2n (10)
From (9) and (10) we get
(P1 n + P2 )2n + (P1 (n − 1) + P2 )2n−1 = 3n2n
or
P2 P2 − P1
(P1 + )n2n + (P2 + ) = 3n2n (11)
2 2
Equating coefficients of n2n , 2n and constant term in equation (11), we get
P1 = 3, P2 = 1
So the particular solution is
(3n + 1)2n
6-3
2 Total Solution
where p(n) (particular solution) can be calculated as above. Then use boundary
conditions to find A1 , A2 ,..., An .
an Z n = 3an−1 Z n + 2Z n
∞
X ∞
X ∞
X
an Z n = 3 an−1 Z n + 2 Zn
n=1 n=1 n=1
∞
X
= 37 am Z m
m=0
Generating function :
A(Z) = a0 + a1 Z + a2 Z 2 + ...
2Z
∴ A(Z) − a0 = 3ZA(Z) + , |Z| < 1
1−Z
or
2Z
A(Z)(1 − 3Z) = +1
1−Z
or
2 1
A(Z) = −
1 − 3Z 1−Z
or
6-4
or
an = 2.3n − 1
References :
1. A Course in Combinatorics: J. H. van Lint, R. M. Wilson
2. Applied combinatorics: Fred S.Roberts and B. Tesman
6-5