Counting, Combinatory & Recurrence Relation: Prepared By: Ramesh Rimal
Counting, Combinatory & Recurrence Relation: Prepared By: Ramesh Rimal
Counting, Combinatory & Recurrence Relation: Prepared By: Ramesh Rimal
RECURRENCE RELATION
Prepared By:
Ramesh Rimal
INTRODUCTION
Combinatorics is the study of arrangements or
possible combination of objects.
Enumeration, the counting of objects with
certain properties, is an important part of
combinatorics.
Counting is used to determine the complexity of
Algorithms, to determine whether there are
enough telephone numbers or Internet protocol
addresses to meet demand etc.
Recently, it has played a key role in
mathematical biology, especially in sequencing
DNA. Furthermore, counting techniques are used
extensively when probabilities of events are
computed.
BASICS OF COUNTING
The first task, constructing a bit string of length eight beginning with
a 1 bit, can be done in 27 = 128 ways (using product rule).
The second task, constructing a bit string of length eight ending with
the two bits 00, can be done in 26 = 64 ways (using product rule).
Both tasks, constructing a bit string of length eight that begins with a
1 and ends with 00 can be done in 25 = 32 ways (using product rule).
Hence, the number of bit strings of length eight that either start with
a 1 bit or end with the two bits 00 is 128 + 64 – 32 = 160.
x x x
j 0
n1 n n 2 2
=
n
0+
n n
+1 y 2 y
xy +
n
+------------+ n 1
n 1
y
n
n
n
= (-1)
=-
EXAMPLE
What is the expanion of (x+y)4?
What is the coefficient of x12y13 in the
expansion of (x + y)25?
What is the coefficient of x12y13 in the
expansion of (2x − 3y)25?
What is the coefficient of x13y7 in the
expansion of (x-3y)20?
Pn = (1.11)Pn-1 = (1.11)nP0
When we insert the initial condition P0 = 10000, the formula Pn =
(1.11)n 10000 is obtained.
We can use mathematical induction to establish its validity. The
formula is valid for n=0 is a consequence of the initial condition.
Now assume that Pn = (1.11)n 10000 then Pn+1 = (1.11)n+1 10000
Pn+1 = (1.11)Pn = (1.11)(1.11)nP0 =(1.11)n+1 10000
This shows that the explicit formula for Pn is valid.
Inserting n=10 into the formula Pn = (1.11)n 10000 shows that
after 10 years the account will contain
P10 = (1.11)1010000 = Rs. 28394.21
Tuesday, October 06, 2020 50
SOLVING LINEAR RECURRENCE RELATIONS
We encounter different types of recurrence
relations. There is no specific technique to
solve all the recurrence relation.
However, we solve recurrence relation with
some particular forms by using the
systematic methods.
In this section we are going to see few of
them.