Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
9.1 Introduction
Objectives
9.2 Linear Homogeneous Recurrences 48
9.3 Linear Non-homogeneous Recurrences 52
( 9.4 Some Other Methods 57
Method of Inspection
Metl~oklof Telescoping Sums
A/Iet,liod of Iteration
Meth~dof Substitution
\,
9.5 Summary , 65
9.1 INTRODUCTION
In tlle two previous units of this block, you have studied about setting up
, recurrences &tld how td solve them by the use of generating functions. In this V .
unit we concentrat,e on other methods of findine solutions of recurrence
equat',ions.
To begit, with, we shall develop the gkneral theory for solving a linear
l~omogeneousrecurrence with constant coefficients. Following this, we shall
disc,:~ss some general theory for solving a linear nhn-homogeneous recurrence
whose ii~+$ornogeneouspart is a polynomial or a n exponential firnction. 'We
shall concludc tBe-unit by illustrating several techniques developed:for
solving recurrences wllicbmay otherwise be hard to solve by more standard
P
mcihods. We shall also lo k at examples of red-life applications of the
t,heory we discuss.
As you cau see, this unit is closely linked with Unit 7. So, please glance over
that unit again before going further.
Let us now clearly spell out the objectives of this unit.
0b ject ives
After reading this unit, you should be able to
r find the characteristic polynomial, equation and roots of a linear,.
.
I homogeneous recurrence relation with constant coefficients;
I
r solve any linear, homogeneous recurrence relation with constant .
, . coeAicients;
I.
k'
z3 - 2z2 - 4z+ 8, i.e., ( z - ( z + 2 ) .
So, its characteristic roots ar 2 (with multiplicitjr 2) and -2 (with
rnultiplidity 1).
applying the.tkchniques of Unit 8, you can also check that the general
solution of the give11 recurrence is
an = (Ao,+ A1n)(2), + Bo(-2)n,Ao,Al,BoE C.
We can ,write this as
an + +
= AbC(n, O)21 A;C(l.+ n, 1)2" BoC(n,O)(-2)",Ab, A;, B, E C .
Have these exarnples given you an inkling of the general form of the solution
of (1) in terms pf its characteristic roots? Match your conclusions with the
following theorem.
T h e o r e m 1: A sequence {a,) satisfies the linear, homogeneous recurrence
" relation with constant coefficients
U, = id^^^^-^ - + +
Cl{U,,-k7 n 1 k, ,
I
I - clt - c2t2 - . - cktk= n i
(1 - 1
where we put t = -.
z
I ~ ( 2 )
:. U(z) = -, where. q(z) = n(1- aiz)? &d deg p < deg q.
Y (4 i
,where the a j s are the characteristic roots and Ajs are constants that are to
f
be deermined by the initial conditions.
8 .*
Let us look'at some examples of how Theo~em1 can be applied. While doing
SO,' let us see how the solution depends on the initial conditions.
~ k a r n ~1:
l e Solve the recurrence a, = 4an-2; where
a),ao = 4, al = 6
Solution: The roots of the characteristic equation of the recurrence,' z2 = 4,
are -+2. Thus, by Theorem 1, the general solution is of the form
a; = ~ ( 2 ) +
" B(-2)", where A and B arearbitrary constants.
a) Now, if a. = 4 and al = 6, then the general solution gives us
A + B = 4 a n d 2 A - 2 B =6.
7 1
'
.: A = - ,B = -.
2 2
So the solution is a, = 7(2)"' - (-2)"-'.
b) If a. = 6 and a2 = 20, the general solution yields
A + B = 6 a n d ' 4 ~ + 4=~20.
Since these equations are inconsistent, t h e r e is n o solution.
c) Ifa, = 6 , a 2 = 2 0 , weget
2(A-B)=Gand4(A+B)=20.
So, A = 4, B = 1, and the solution is
+
a, = 4(2)" (-2)".
In the example above you have seen bow important the initial conditions are..
You have also seer1 that sometimes these conditions can be such that no
solution is possible.
Now consider a second order linear homogeneous recurrence with constant
coefficieilts that you solved in Unit 8 by making use of generating functions.
This equation can also be solved by applying Theorem 1, as you will just see.
Example 2: Obtain the solution for the recurrence relation satisfied by the
Fibonacci sequence (see Problem 1, Unit 7).
Solution: Recall that the Fibonacci sequence {F,) satisfies
So, we get
1 = A a 2 + B P 2 = A ( a , + l ) + B ( / 3 + l ) = ( A ~ + B P ) + ( A + B )= l + ( A + B ) .
+
Therefore, A I3 = 0.
heref fore, A(n - P) = 1, and
*** I
?,
i
Now consider an example in which no initial conditions are given.
FJxnmple 3: Solve the sixth order linear, homogeneous recurrence relation Solving Recurrences
Solution: The first 'step is to identify the characteristic roots together with
their multiplicities. The characteristic equation is
z6+x5-11~4-13~3+26~2+20~-24=0 .
i.e.', ( Z - I ) ~ ( - +
z 3) ( Z 2)3 = 0.
Since the root 1 is of multiplicity two, the root 3 of multiplicity one and the
root (-2) of multiplicity three, by Theorem 1 we lcnow that u, is a linear
of the six terms
+ + + n, 0)3", C(0 + n,O)(-2)", C(1+ I)(-2)"
C(0 n, 0).l1', C ( l n, l ) . l nC(0
, 11,
+
and C(2 n, 2) (-2)",
(1 + n) (2 + n)
i.e., u, = a + b(1+ n) +c.3" +d(-2)"-te(l+n)(-2)"+f. .(-2)",
2
where a , . . . , f are coristanl,~which can be determjned if any six consecutive
terms (typically, the first six) of the sequence arc known. Since no initial
conditions i r e given, we can only simplify the expression 1;o the form
+ + + +
u, = A Bn (3.3" (D En -t ~ n ~ ) ( - 2 ) "where , A , . . . , F are constants.
*** *
So far we have solved Iinellr recurrence relations by using Theorcm 1. Now let
us solve a non-linear recurrence relation, by reducing it to a lincas relation.
\
.'. b, = 4(5)".
Since a; is the' positive square root of b,,
ih = 2(5)"12 for n 2 0.
:. a, = 1250.
E3) Find the solution of the following recurrence equation satisfied by P:;:'
the number of partitions of n into two parts in non-increasing order:
a -I?,-,, n > 3 , P y = o , P ~= 1,P:= 1
p; = p:-, +.P,--,
, This'shows that {d,) satisfies (I), i.e., we have proved the st,atcrnent.
I
I
Now, can you see how we can use Theorem 2 along with Theorem 1 to iind
I the general form of any solution of (5)? The following result explicitly
answers
.. this question.
-Theorem 3: Every solution of the recurrence (5) is of the form a, $ b,, where
A particular solution a, is any particular solution of (5) and b, is any solution of its associated
of (5) is any sequence . homogeneous.recurrence (1). .
{a)that satisfies (5). Proof: Let a, be any particGlar solution of (5). Now, Theorem 2 tells us
that t,he difference of any two solutions of (5) is s solulion of (I).'
So, every solution u, of (5) sztisfies u, - a, = b,, where b,, satisfies (I),
+
Therefore, u, = a, b,, where a, is a particular solution of (5) and b,, is a
solution of (I).
We have proved the two theorems above only for l i n e a ~recurrence relations ,
with constant coefficient. But they hold true in the general case also. This is
, what the following exercise is about.
,
E4) State and prove the analogues of he or ems 2 and 3 for general
recurrendes of the form
u, = fl (n)u,-l+ f2 (n)u,-2 + . . + f,$(n)u,-k 4 g(n), 1
where the fis and g are.functions of n. I
I
I I
-
In view oi the two theorems above, to solve (5) we must look for any o n e
I
solution of (5) and the general form of the solution of (1). Let, us consider
an example.
Example 5: Find the complete solution of the recurrence
a, = 3a,-l - 4n, n _> 1.
'
Solution: The required solution, as Theorern 3 says, is the sum ofikhe
general solution of a, ='3an-1 and any solution of the given recurrence.
. .
From E l you know that the general solution of an = 3a, is
an = b.3",
where b is a constant,
52
I
-
NOW, let us consider tlle non-homogeneous part too. ire have Solving R,ecurren'ces
an = 3andl - 4n.
+
Let us sec if an can b e of the form An 13,A, B E C .
If it is, then
A n + B = 3[A(n - 1) + B ] - 4n = n ( 3 A L 4) - 3 A + 313.
Comparing the coefficients of n, we get
A=3A-4andB=3B-3Ar- .
i.e., A = 2 and B = 3.
+
So, a,, = 211 3 works, and hence is a p a r t i c u l a r solution of the givcn
recurrence.
So, the total solut,ion of the recurrence will be
+ +
an = b.3" 2n 3, b E C.
I
***
.Example 7: Rani takes a loan of R rupees which is to be paid back in T
months. If I is the interest rate per month for the loan, what constant
payment P must she make at the end of each period?
Solution .: Let a, denote the amount Rani owes at the end of the nth
month, i.e., after the nth payment. Then the problem can bei;written'as
%+I = a , + I a n - P , 0 ~ n 5 T - l , a 0= R , a , = 0.
+
So, the homogeneous part contributes b ( l I)" to the solution, b being a
constant.
..
Using TheoreaS(i), with r = 1, we see that ,the non-homogeneous part
contributes A, a constant.
But then;putting a, = A in our recurrence relation, we get
+
A = A(1 I) - P +
A = P/I.
Thus, a, = b(l +I)" P/I. +
Then, a. = R + b + P / I = R + b = R - P / I
I + +
Also, 93 0 =%b ( l I ) ~P/I = 0
.: P =
+
IR(l I ) ~
I
[I - (1 I)T] +
***
I
Example 8: Solve the recurrence u, = aundl + c.an, n 2 1, where a and c
I
are known constants.
I
Solution: Using Theorem 5, we get
I I
u, = A.an + Bnan,
A and B being constants.
n
= a (A+Bn) for n 2 0.
I
***
Now, here are some simple exercises for you,
E6) The population of a species of snails in a certain lake triples every year.
Starting with 1000 such snails, and finding 1500 of them the following
year, 200 are removed from the lake to increase them in other lakes.
Similarly, at the end of every year 200 are removed. If a,represents the
I
snail population in the lake after n years, find and solve a recurrence
relation for a,, n 2 0.
Now let us ansider a result which tells us how to find a particular solution
for recurrences with non-homogeneous parts which are linear combi~lationsof
nd and r n , r a constant.
1
I
un = CIUn-1 + C2Un-2 -1 . . . + C~<Un-k+ g2 (n), ,Solving Recurrences
+
then, fo'r constant,^ A and B, Aa, Bb, is a solution of
+ + +
un = c l u n - ~ . . - + C ~ U , - I ~ Agl(n) Bg2(n).
Proof: For 112 lr, we have Aa, + Bb,
= A [ ~ , ~ n -+
l + Ckan-l< +
' ' ' + B[b,-, +.. + ckbn-k + g2(n)]
= c1 (A%-, + B b n - ~ ) + + ~ k ( ~ & n -+k Bb,-k) + {Agl(n) + Bg2(n)}.
This means that Aa, + B b , is a solution of (5) with g(n) = Agl (n) + Bg2(.).
In view of Theorem 6, we can combine the results of Theorems 4 and 5 to get
solutions of non-homogeneous recurrences like the following one.
Example 9: Obtain the general solution of the recurrence
v, - 7v;,-, + = 5.2" - 4.3", n 2 2.
Solution: Since there are no initial conditions and the equation is of second
order, we can only expect a general solution involving two constants.
To begin with, the homogeneous part v, - 7v,-, +
1 2 ~ ,=~ 0- has
~ the
2
+
characteristic polynomial z - 72 12,'i.e., (z - 3)(z - 4). Consequently, itis
geneid solution is of the form a.3" -I- b.4", where a, b E C .
Now let's consider the non-hornogencous part. It consists of two terms, one
of which is a power of orie of the characteristic roots. By Tlieorems 5 and 6,
+
we must set v, = c.2" dn.3" in order to find a particular solution.
When we do this, the recurrence relation gives us
+ + +
2n-2c(4 - 14 12) 3"-'d [9n - 21(n - 1) 12(n- 2)] .= 5.2" - 4.3". ,
2"-'(c - 10) = 3"-' (d - 12)
>
Since this equalit,y is true for every n 1, we see that 2"-l J ( d- 12) for every
n 2 1. This can only be true if d - 12 = 0, i.e., d = 12: This forces
c - 10 = 0 to be true, i.e., c = 10.
Putting all this information together, we get
v, = 10.2" + ( a + 12n)3" +b.4", whcre a , b E C . .
So far we have seen how to solve (5) if g(n) is of the form an d , arn or a lincar
combination of terms of these types. There is one more type of
non-homogeneous part [,hat we shall discuss now.
Theorem 7: A particular solution of (5) with non-homogencous part andrn,
where a and r are known constants and d E N, is of the form
n
ij Ar (A o + A, n + .. +
~ ~ nif n~e i t)h e,r r n o r 1 a r e characteristic
r o o t s of (5);
ii) Anmrn(A, Aln ++ --
+ ~ ~ nif e~i t h)e r ,r o r 1 ( b u t not b o t h ) is a
characteristic root 01 (5) with multiplicity m;
.-
Recurrences + + +
iii) Anml'"'~n(Ao Aln . . . Ac,nd),if.r and 1 b o t h are characteristic
roots of (5) with multiplicities ml and m2, respectively,
where A, Ao,A l l - . . , Ad are constants.
,
As before, we shall not prove this result, but shall show how it can be applied,
Example 10: Find a linear homogeneous recurrence with constant
coefficients for which the characteristic roots are 1 with multiplicity two(-1
with multiplicity three and 2 with multiplicity five. Further, assume that the
non-homogeneous part is a linear combinatipn of n ( _ l j n ,n2.2" and 3" plus a,
polynomial of degree three.
Solution: We wish to solve a recurrenve which has 10 characterjstic roots.' .
So, it is of the form I
% . is (a-1)2(z+1)3(z-2)51
i.:~.,- C I Z 9 - . . . - C9Z - C1O -
'where we know that the characteristic polynomial of the homogeneous part
(A,+Aln).l"+(B~+Bln+~2n2)(-l)n+(CO+'~ln+~~~+~4n4)211, (6).
where the As, Bs and Cs are constants.
i
Now, by Theorem 4, you know that the form of the particular solution
correspondjng t o the third degree polynomial is
n 2(D o + D16 + ~~n~+ D3113),wher,e the Ds are constants.
I;'roin Theorem 7 you know that the form of the solution corresponding to
bn(-1)" is n"-1)"(?Eo'+ ~ ~ nand ) ,to
+
+ Fin F2n2),where the Es and Fs are constants.
cn2.2" is 117.2"(~o
From Theorem 5, you know that the.part of the solution 'correspondi~lgto
d.3n is G.(3)", G being a-constant. '
Thus, the particular solution is of the form
'
' n2(~0+Dln+~2n2+~3n3)x+n5(-1)n(Eo-~E,n)
+J ( 2 " ) ( F 0+ F,n + F&') + G(3") '
1
Therefore, the complete solution is the sum of thc expressiorls in (6) and (7).
5
(7)
St*
E9) Find a recurrence relation with constalit coeflicients for which the
characteristic roots are 3 with multiplicity 1 and -2 with multiplicity
2. The relation also has a non-homogeneous part which is a liacitl.
combination of 2", n(-1)" and a polynomial of degree 2.
In this section we have considered some general methods for tsclclillg spekial .
kinds of non-homogeneous recurrences. While studying them yon would have
noticed that the solution af the non-liornogeneo~part is depc?ndent on
-whether a characteristic root of the recurrence occurs in this p,2rl;.
Now that you have studied this section and Unit 8, car1 you solve? all thi:
problems given in Unit 7? What about the 'divide and conqucrl problem'!
To solve this pr.oblern and other recurrences with n o n - h o r r ~ o g c n ~ o ~ ~ s
different from the ones looked at in this section, we need to look at some Solving Rec~irrences
other sblution techniques. Let us do so now.
I
Example 12: Solve the linear recurrence
~:ir.ll(trltelesc,..!:>i,~g in a,, -- all -1 = Fn+2.-7,-1, 11 2 1,
arii~logjr\vi!,I L ~ . i , i : w1ler.c a. = 2 and .Fidenotes the ith Fibonacci 'number. .
tl~ic:i;uc:ssI)?: ;I (:iliil~j)s~d
tc?lescopi?,nrli!:::~ is the Solution: F'rom Example 2, yon know that
the
tlilLt:l.erir:cl hetxxe.:~.i.ltl 3,+,Jn.-, = (+,+I + F n ) (%+I - Fn) = 3:+1-
c~ut,esradius of t,he So, for n = 1,2,. .. , the recurrence gives us the following equations:
o~.~t;c~rznost t,ube end the
irmor l,a.diusof the
i ~ l n c n l ~ olube.
st
an - an-l = 3,2+1- 3;
On adding these equations, we find that
a, - a0 = F:+~- 3;2
~an=2+F:+1-l=.F:+lf 1
The next example should be familiar to you. Recall, from Sec.8.2, that
denotes the sum of the kth powers of'the first n positive integers.
Example 13: Compute uA,ui and a:, using t,he method uT t(!lcscoping
sums.
Solution: To find a;,
we sum both sides of the identity.
+ 2 +
(k 1)2- k = 2k I from k = 1 to k = n. On doing so, wc get,
II n n
( n i - ~ -) 1~ = cn
k=l
{(k+ 1)3:k3} =3
n
k=l
.
1c2 3+
n
, k=1
k+
11
I(= 1
I
= 34 + 30: + n, and
= 4 4 + 6 4 + 40; + n.
From the first of these equations, and using the value.oS CJ-; f r o ~ nabove,
+
c: = n(n 1)(2n I)/&. +
Plugging in the values of D; and a: into the second ccluation, we now obtain l
+
a: = {n(n l)/2l2. I
*** )i
While going through thc example above, you may llavo Sclt t,h:~tthero is a I
I
much simpler method to compute CJ:.But the advantage of using t,elescoping I
sums is that it also works for computing ok for labger v:~lucs oE k, where the
simpler method does"not. I
I
Now you can try and obtain the general formula for n:, k 2 1.
I
1
Solying Recurrences
~ 1 1Find
) a recurrence relation satisfied by the sequence arid hex?:'?
4
compute u,.
Now we can apply the method since the terms are such that if wc wrile down
the eqliations from lc = 2 t o lc = n, and add them, most of 'the terms will get
cancelled. We will only be left with
n
(-1)lC
----
n! I!
I<=% lc=O
Therefore,
In the next example we see how 'telescoping products' can be used for
solving recurrences.
Example 15: Solve the recurrence a, = n3a,-1, n > 1,a. = 2.
8
n - n".
an-1
-
Multiplying these equations, we get
a
"0
= (n!)3
an = qn!13.
The technique in the example above can be used more generally for
non-homogeneous recurrences of the lype
+
an = f(n)an-l g(n), where f(n) # 0 for all n.
Let us consider a n example of this.
Then
--
anbn = f (n)an-lbn-l +-g&) ,
= anbn-1 g(n) +
. ' Therefore, b, = b,-l.+ g(n)/a, .
Here is where we use the fact f (n) # 0 V n. (Now?)
' Step 4: Solve the recurrence
bn = b,-, +
g(n)
- '
an
by whichever method you find 'suitablb.
Step 5 : Then the solution to the given recarrknce is u, = anb,,.
- -
Here are some exercises now. I
I
~ e bst now see how telescoping sums can be used efficiently lo sum an infinite I
lid*
E x a m p l e 17: Use the method of telescoping sums to sum the infinite series Solving Recurrences;
- 3 +L+-+...+
5
1.2.3 2.3.4 3.4.5
7 2n+ 1
n ( n + l ) ( n + 2)
+ ...
I
Solution: The central idea behind telescoping sums is the expression of the
nth term as a difference of successive terms of a sequence. We would have
been able t o apply this had the nth term in this summation been a product
of only two terms in the denominator. But don't worry! Let us try and
extend the idea.
With three terms in the denominator, we first express the nth term as'a
partial fraction:
+
2n 1 --+
- 112--- 1 312
n(n+l)(n+2) n n+1 n+2'
Now, if ai denotes the it,h term of the series, then
-312
Since -
n
+ -1n + -
112
n
= 0, cancelling groups of such terms, wc get
E16) Using the method of telescoping sums, prove the following Fibonacci
identikies
/.
1:
I
And now we shall consider another very commonly used method for solving I,
I
recurrences.
6.1 '5
1 I
t Recurrences 9.4.3 Method of Iteration
***
In the example abpve, we began with the recurrence relation and reached a n
i expresiion for thg nth term in terms of n. In principle this mefhod always
I1 wcirks. But, it is not always easy to apply because the computation can
sometimes get out of hand.
Why don't you try the following exercise now? You shouldn't hive any
difficulty & th'e computation. In fact, you may find it easier to solve by this
method than by the .method you used earlier.
1
E17) Solve the recurrence y = -u,-~ + -,n!1 n.> 1, with uo = 1.11~'tlle
"
methbd of iteration.
I
Let us now consider an example which.can be solved by iteration as well as
' \
by first solving the recurrence for ak jnd then summing thc series, Let us
1, : "solve it by using the former. method.
! >
Example 19: Sum the first p terms of the series whose kth term, a],,
I
+
satisfies the recurrence ak = 3&k-1 1, and whose initial l;crm, is a, = 2.
Solution: From the recurrence, wet fihd that
k=1
a = c 4 + (3a-,+
n-1
k=l
1)
n-2
= + (1+ 3 ) ( 3 ~ ~ ,+- ~1) + 1
k=l
n-3
= a k + ( l +a+32)(3an-, + I ) + { I + (1 + 3 ) )
k=l
n-4
= C a, + (1+ 3 + 3' + 33)(3an-4 + 1) + {f + (I + 3)
k=l + ( I + '3 + 3"))
62
Solving H.ecurrcnces
. 3k-1
and l + 3 + . . . + 3 k - 1 = - .
3-1
5.3" - 3 - 2n
E18) Use thc, method of iteration to find the sum of the first n + 2 terms of
+
the series whose kt11 term, u,,, satisfies the recurrence uk = u ~ - k,~
and whose initial term is u1 = 1.
Let us look at anbther example, one which makes it a riatursl candidate for
the substitution technique.
Example 22: Solve the second order, non-linear recurrence
x, = ( 2 G + 3 ~ )n 2 ~2: wit11 , tile initial co~lditionsxo = 1, = q.
Solution: Looltirig at the recurrence, you probably feel Ihal wc have not
developed the tools to solve an equation of this type. Le1;'s acc'if we c a n ,
transform this into a linear recurrence. Let,us malcc! tlle ~ubutit~ution
yn = 6 , n > 0. (Note that this substitution is valid because cad1 X, is
non-negative.)
The substitution does not quite make the recurrence liiica,r, but, at least it
gets rid of the square root symbol-Lhe problein now bcc,onlcs
~ 3 ~ , , , ~ )n~_>, 2, wit11 yo = l , y l = 2.
y: = ( 2 ~ , - f
Extracting square roots of e i ~ ~side, l l we now get,
Yn = 2~~1-1 f 3~n-21n L 2.
This is a second order linear recurrence with consbant c*c~c:fIicients,
illid (;all
bc solved by standard rnetliods discussed eilrlicr. Wc let~voit lo yo11l,o v(;rify
that the solution is
y,l' = A.3" $ B(-l)", n 2 0, for some confitants A , B.
Using tlle irlitial conditions, we further gel
A 4- B = 1 and 3A - B = 2, so that A = 3/4 and U = 1/4.
* $ *
with bl , b2 and r as constants. Prove that the sequence also satisfies the *
+ +
having (z2 blz b2)(z- r ) as its characteristic polynomial.
E25) Let {x,),~, and (y~),>o be two soliltions of the recurrence
+
u,, alun-l -I- a2un-2 = 0, where al and a2 are constants.
a) Show that { ~ , y , ) ~ ,satisfies
~ a third order linear hornogeneous *
recurrence with co?istant coefficients.
b) Show that { x ~ , , ) satisfies
~ , ~ a second 'order linear hornogeneous
recurrence with constant coefficients.
E26) Assume that for positive real numbers a, b and r, there exists m E N
' such thkt (a -1bn)r
n < n! for n 2 m,
Using this, prove that there d o e s not exist any second order
homogeneous linear recurrence with constant coefficients satisfied by
the sequence {n!).
With this we have come to the end of this unit and block on recurrences. Let
us talre a quiclr look a t what we have covered in this unit.
I
9.5 SUMMARY
-
where al,. . , a, are the distinct characteristic roots of this recurrence
11
U, = CIUn-l +
CZU,-~ - . . -I-Cku,-k f an d l n >k 65
1
I,
I
Recurrences is of the form
+
n m(A, k,n + + Adnd)
a
E4) Statements: 1) If {an) and {b,) are two solution sequences of the
non-homogeneous recurrence
un = f1(n)un-l + fi(n>un-z +. . . + fic(n)q,-k g(n),+ (8)
,
then {c,) is a solution sequence of its associated homogeneous
recurrence, where c, = a, - b,.
+
2) Every solution of (8) is of the form a, b,,, where a, is a particular
solution of (8) and b, is any solution of its associated horriogerleous
recurrence
Un = fl(n)un-l + " ' +fk(n)un-k
(9)
The proofs are exactly on the lines of the proofs far thc 'consta.nt L
.I
coefficients'case'. . ' I .
E5) The characteristic root of the recurrence T, = 2T,-1 is z = 2. Solving Recurrences
heref fore, the general solution of the homogeneous part is
T, = a.2", n 2 1.
The particular solution to the non-homogeneous part is T, = b, by
Theorem 5. Plugging in this value of T, into the recurrence gives
b = -1.
Add'ing the solutions of the homogeneous and non-homogeneous parts,
and using the initial condition T1 = I, we get T, = 2" - 1, n 2 1.
E6) Here an+2- = 3(a,+, - a,) - 200, n 2 0,
+
i.e., an+2- 4an+, 3an = -200.
The solution corresponding to the homogeneous part is
+ +
a.3" b(l)", i.e., a.3" b, where a, b E C.
Now, -200 = (-200) (I)", and 1 is a characteristic root.
So, by Theorem 5, a particular solution is An, A a constant.
Putting a, = An in the recurrence, we get
+ +
A(n 2) - 4A(n 1) + 3An = -200 A = 100.
+
.: a, = a.3, b + 100n.
With a. = 1000 and al = 1500 - 200 = 1300, we have
+ +
a, = 100(3)" 900 loon, n 0. >
E7) The recurrence u, + C,U,-~ + c,u,-~ = 0 has the characteqktic
equation a 2 + cla + c2 = 0. From the given solution we see that its
roots are 2 and 5.
Therefore, cl = -(2 + 5) = -7 and c2 = 2 x 5 = 10.
Now, setting the given particular solution u, = 3n - 5 in the given
equation, we get ,4
+
(3n - 5) - 7(3n - 8) lO(3n - 11) = an b. +
heref fore, a = 12 and b = -59.
E8) The recurrence v, - 7vn-l +
l 6 ~ , --~ l2v,-, = 0 has the characteristic
+
equation z 3 - 7z2 162 - 12 = 0, i.e., (z - 2)2(z- 3) = 0.
SO, V, = ( a n + b)2" +c.3", n 2 0, for some a,b,c.
The paticular solution is of the form v, = An22" Bn3n. +
Therefore, the recurrence reduces to
(j + I ) ~ " - jk+' = x
r=O
k
C(k + 1,r)j1 from j = 1 t o j = n, we get the
recurrence equation
r=O
111particular, k = 4 gives
r=O
Therefore,
t
%
= xo2"[1.3.5...(2n - l)]/n! = xo (2n)!/(n!)2, n > 0.
I '
E13) Let us apply the technique of Example 16. We can do;so, since
I
I
I ,I n3#0Vn21. '
From Example 15 we know that the solution to the homogeneous part is
I
I
+ un = uo (n!)3.
j' I Suppose the solution of the given recurrence is
f, I
/ I ,
a, = SV,, where %vo = 1.
i 1 Then unvn = n3'un-lVn-l (n!)2 +
1; - +
1 1 1 i
* 1 1
* v, = vn-1 + -.-
U*V,-~
I u,, n!
Now applying telescoping sums, we get
1 f
j
,I:f i + ?
:, ,
i
1
,
;
a Yn = v o +'
"Uo
(ei)k=l
I I ?
Then the solution of the recurrence is
j', 68
11
IJ
Solving Recurrences
103 03
d) C
k=2
LFk/ (6c-1 Fk+I 11 =
.
k=2
( ~~~1 -
= lim {(Fcl+F;l)
I1+ W
- (F;' +F;:~)} = 2.
03 00
e) C
k=2
(Fk-1 Fk+l)--l =
k=2
{ (6<-1 ~k 1-I - ( ~ &+I
k )-I 1
= lirn { (F1& ) - I - (.T,Fn+l )-l } = 1.
n+m
E17) Repea1;edly replacing n by n - 1, we get
1 1
Un = - +-n!
+
:. u, = A.3" 4"$'.
Now, using the initial condition, we get A = -2.
:. u, = (-2)3" +
4nS1. ' I
.: t,, = (-2)3, + 2'("+').
+
E21) Let y, = G.Then, y, - 5 ~ , - ~ 6 ~ , -=~0 has the characteristic
roots 2 and 3.
So y, = a.2" + b.3", for some a, b.
Since yo = 2 and yl = 5, a = 1 = b.
+
Therefore, x, = y: = (2" 3"12 for n 2 0.
E22) The term n! of the non-homogeneous part provides us with the hint
that we should divide both sides by n!. If ye do, we get
5
yn -4yn-, = - x 3", n 2 2, with yo = l , y l = -1, where y, = x,/n!.
9
Since the homogeneous part of this has the characteristic polynomial
z2 - 4 = 0, it follows that
Yn = a.2n+ b(-2), +c.3,, n 2 0 , for some a,b,c.
t ' Inserting this value into the recurrence gives c = 1, while the initid
+ + + +
conditions give rise to a b c = a b 1 = 1 and
+ +
2a - 2b 3c = 2a - 2b 3 = -1, solving which we get a = 1, b = -1.
+
Therefore, x, = 32" - (-2)" 3n)n!1n 2 0.
1 '
1 E23) Write u, as a sum of its homogeneous solution, u , ( ~ ) ,and particular
solution, u,(P). Then,
1 + + +
u,(~)= a1.2"l 3 .3, (a3 a4n)4n,ai E C 'd i.
!!!
1. i + + +
Since g(n) is of the form (A + ' ~ n ) 2 " C.3" (D En)5", the form
I . that the particular solution takes is
4E
I
70
+ + + +
up)= [A,n (b, b,n)n]2" Con.3" D0.5" (E, E1n)5l1+ +
A
= (Aln + +
~ ~ n ~ ) Con.3"
2 " + Do.Sn+ (ED+ Eln)5", where the capital ' Solving Recurrences
letters are constants.
Therefore, un = uih) + u p ) .
E24) Let r,, r2 be the roots of the characteristic polynomial
+ +
z2 blz b2 = 0. Then
+ +
airy a2r; crn if rl, r2,r are all distinct,
+ +
(al cn)ry a2r5 if r = r l # r2,
+ +
(a bn)ry crn if rl = r2 # r ,
+
(a bn'+ cn 2 )r n if rl = r2 = r.
In any of these cases, the characteristic polynomial of the linear
homogeneous recurrence with constant coefficients satisfied by {v,) has
roots rl, r2 and r, not necessarily distinct. In other words, this
+ +
polynomial is (z - rl) (z - r,) (z - r)' = (z 2 blz b2)( Z - r).
+
E25) Let z2 alz + a2 = (z - a ) ( z - P).
If a # p, x, = A a n + BPn and yn = Ca n + Dpn for some constants
>
A , B , C , D and all n 0.
+
If a = p, x, = (A Bn)an and y,, = (C + Dn)an for some constants
A,B,C,D and all n 0. >
a) So, if the roots are distinct,
+ + +
xnyn = AC(a2)" (AD BC)(ap)" B D ( ~ ~ )n" , 0. >
So, (xnyn) satisfies a third order linear homogeneous recukrence
with constant coefficients and distinct cl~aracteristicroots a2,a@
and P2.
More explicitly, the characteristic polynomial is
(z- a2)(z'--@)(z - p2) = z3 - (a: - a 2 )z 2 +a2(a: -a2)z - a:,
and the recurrence relation is
Vn - (a: - a2)vn-1 +a2(a: - a2)vn-2 - aivn-3 = 0. ,
If the roots are equal,
+ + +
xnyn = A C ( ~ ~ ) "(AD ~ C ) n ( a ~ ) "~ ~ n ~ ( c rn ~2)0." ,
So {xnyn) again satisfies a third order linear holnogeneous
recurrence with constant coefficients and the characteristic root a2
of multiplicity three.
More explicitly, the characteristic polynomial is
+
(z - a 2 ) 3 = z3 - 3a2z2 3a;z - a$,
and the recurrence relation is
V, - + 3a;vnd2 - = 0.
b) In this case, if the roots are distinct,
+
x2,, = A(a2)" ~ ( p ~ )n" 1 , 0, and {x2,) satisfies a second order
linear homogeneous recurrence with constant coefficients and
distinct ch+racteristic roots a2and P2.
More explicitly, the characteristic polynomial is
+
(Z - cr2)(z - p2) = z2 - (a: - 2a2)z a,; and the recurrence
relation is
W, - (a: - 2a2)wn-l +
2q$wn-2 = 0.
If the roots are equal,
+
xZn= (A 2Bn)(a2)", n 2 0,
and {x2,) again satisfies a second order linear hdmogeneous
recurrence with constant coefficients and the cliaracteristic root a2
of maltiplicity two. ,
23
uj28D
0529
Wr
St. Columhm College, P 0 College M o q H m b a g h - 8 2 5 30 1
Anuwah Narsyan College, B m g Road Pntn~-8lN111:
4. DELI-II RECION(1) (South and W e d R q h , Guqmn. F a d d a b d and Matbun)
2-1 0707 M a c , J w n blilvlill~aIslarma I r m a Nqnr, New Delhi-l 10 025
Y 071 1 CTargi Colleg. Slri Forl Road, New Ikrm-110 019
3 .
;b 0715 . 4 c b q a Nnrcndrn Dev College. Wkajl. New Drlhl-l 10 019.
5. DELHl REGION(?) (Norih and East R q l o n I n c l ~ .Urnrut, g .Madinngar r n l Chrzhbmd DM- of U l b r P n k h )
27 0 72 X Rhhsknrnchnryn CoUcgc of Appl~cdSc~cnrp.Vccr Savarku Cornpleq husa
Ncw Delhl-110 012
?B 0729 K a l ~ n dCollege.
~ East Pard N a g s , Ken 1Zcihl- I10 %lX
29 27-13 Lajpat Rai (P.G.) l:ollcgc, Sdh1bnbad.2Ol OC5. L t ' r PndPsh
6. .UDIKII.-\HAD REGION (Cujnrmt, Oarnun R: Diu, h d m & Nuptr Havcli)
30 090 1 L.D. Arb Collcgs. IrI3vrangpurq h . . e d n b d - 3 8 0 &i9,GujanL
31 0902 General Education Buildin& h1.S. Un~;crsi&, Vad,d,ua-3W 002. GuJarat
32 (r31k; JD Thacker Commerce Collcy~,Dhuj-371) 001 ,Guja:lt (L.alw Collcgu.
l>I~uj, Gujnr~tj.
33 N/IIO Kcw rrog~cssivcI<ducali~ln7'rus1,hlch;1n,1-384lrc12, GuJarnl
1 1 2 ( I j Sl~rceCintl~rViJyslaya,PIt?I No 910, GUJC E s t n t e , r L ~ t l ~ s h r v ~ , G u J n r ~ t
35 CrY2XiRj Naliorl:~l[n.;lit~~lc for kl;magen!cnt dnd InB1rm~ti~\nTcc~oloy)fi'L\11T)
C/o Paras Ad, Jan:i;itt3 Pras, Kajkor-5
36 200 1 Clo\l Arls Collegc. I>.unnn and DIUW.T. j-396 2 I O
7. KAKNrll. REGIIIS (llxrysnx nnd I'ur~J:rl))
7 -l hfutanntlld! Nationd Collega. Yynuna Sq~r.13.501 1 , F l u r y a n ~
1OOI
IrlclS Chhuru R m Collcpc oCEducJlio& Rohuk-124 001, H ~ r y r n r
(All I d i n Jat Hcnxs Mcmorial Collcge, Roh3k H r q a n n j .
39 loox G a l . College ( G u h Wing), Scctor-14, Ruln.ay R o d Kamnl-132 021,
lltlyna
4n 1003 Clo\t PP.G College, Himar-13 001, H.QBN.
4I Ill!? h l d a n d a Sation31 College, S M s b a 4 KuluLshctra I L r ) a n a
42 1013 Government P.G. College, Jind-126 102, )I#r)ma
43 2217l D A]'. College. Jnlaqdhiu. 1 4 W8, Punjab
B. SlIL\fl.A REC20S(TUn~rcl1ulI'radoh and C h a n d i p r h )
4-4 1101 Goven~mcntB q i College, Sanjaul~Sbynld-171 LY)6,
~ l i o u c bPl n d e r h .
45 I 105 Gor-cmmcnl Collegr D h ~ u m h a l a - l 7 6215, H h K h d P n d s b .
46 !Ii3 Gar?. P G Collrgc* BBil=pur-17.1Wl. H l m n c h ~Pl m h h
47 I1 iS G m t . Degree Collcgc, Rccong Pcm, KnmwD u r , H i d d P d n h
9. J . L U I U REGIOS(JLK)
48 1301 Cnivcnity of Jammu, Deputnml of hlanagmzmt %t%
lammu Tawi-180 001. Jk K.
(Gmdhi bltmorial Science Collqe, J m u Taw, J&K).
49 1206 Go\% D e p x College, Wua,Jkli
50 1207 h t . Degree CoUegq Rajouri. J & l i
51 1Zifl Govl. Degroc CoUegc, Pwncb. JkK.
52 15 P ) G d h hLmDnal Collcgc, Crmp R a w , B d a b . J~nmu-181123, J&K
10 E A Y G U R P . R . E C I O . ~ L d . Ca)
53 08 02 Dbcmpc College a f h & Sciencq P.O.Bm S0.22Panlim.
C . m 4 3 001
5-4 ljU3 I S.S. CoUcgc I>hmwd-580DOJ,K a n n h h
55 1320 k t . Seicna College, Rod, B+mSGO MI, K u n r b h
11. C I X l E i RECIO.S(licrrl. d ~ . h h & w p )
-% 1401 of- in Goy V U U Bbrv+n. M a r a ~ l a ~ k 6 - 6 033. 95
K r t l b (L'niWrty CoUcge. W aK d a i
57 1u 1 3 J.D.T. Islam. C W 4 l 3 018. Kmk.
ES IA i l Caiholicate Calkgc, P 1 L t a n a m ~ l d g eM5, Krrda
-.
i ,) 1~:!5 S'hi Xarcyan CoJtgc. ljonu4X OCr7
.-', 11:: St. &'ceca Cdle$c. Emakul?mlSjb:01 S, R c n b .