DMS Module 2
DMS Module 2
(a) If is true & (b) If whenever is true (for some particular, but arbitrarily chosen then
Problems:
1. Prove that every positive integer can be written as a sum of 5’s and / or 7’s.
----------------------------------------------------------------------------------------------------------------------------------
Exercises:
----------------------------------------------------------------------------------------------------------------------------------
Recursive Definitions:
Sequences: A sequence is an arrangement of elements of a set in order as the first element, the
a , a , a ,. . .a n , ... is a sequence in which a 1 is the first element, a 2 is
Second element, and so on. Thus, 1 2 3
In the explicit method, the general term of the sequence is explicitly indicated.
In the recursive method, first few terms of the sequence are explicitly indicated & the general term is
specified through a rule ( formula) which indicates how to obtain new terms of the sequence
from the terms already known.When a sequence is described by a recursive method, we say the sequence is
defined recursively.
Eg: Consider the sequence E formed by all positive even integers. Then E can be specified
+
1) Explicitly by E={an } , where a n=2n , n ∈ Z .
2) Recursively by E={an } , where 1
a =2 ∧ an =a n−1 + 2, ∀ n≥2 .
---------------------------------------------------------------------------------------------------------------------
Problems:
3. A sequence
{an } is defined recursively by a 0=1 , a1=1 , a2=1∧an =an−1 +a n−3 , ∀ n≥3 .
Prove that n+2
a √ for all integers n≥0 .
≥( 2)n
4. let a 0=1 , a1=2 , a2=3 and a n=a n−1 +¿a + a ¿ for n ≥ 3. Prove that a n ≤ 3 , ∀ n ∈ z
n +¿ .¿
n−2 n−3
----------------------------------------------------------------------------------------------------------------------
The Fibonacci numbers & Lucas numbers:
The Fibonacci numbers are defined recursively by
F 0=0 , F 1=1 , ∧ F n =Fn−1 +F n−2 , for ∀ n≥2 .
The Lucas numbers are defined recursively by
L0 =2 , L1 =1 , ∧ Ln=Ln−1 +Ln−2 , for ∀ n≥2 .
Note:
1. The sequence formed by the Fibonacci numbers is called the Fibonacci Sequence.
It is given by 0, 1, 1, 2, 3, 5, 8, 13, 21...
2. The sequence formed by the Lucas numbers is called the Lucas Sequence.
It is given by 2, 1, 3, 4, 7, 11, 18, 29, 47...
----------------------------------------------------------------------------------------------------------------------------------
The Rules of Sum and Product:
The sum rule: If a task T 1 can be performed in m different ways and another task T 2 can be
performed in n different ways and if these two tasks cannot be performed simultaneously,
then one of the two tasks can be performed in m+n ways.
-----------------------------------------------------------------------------------------------------------------------
Eg1: Suppose there are 16 boys and 18 girls in a class and we wish to select one of these students as the
class representative. The number of ways of selecting a boy is 16 and the number of ways of selecting a girl
is 18. ∴ The number of ways of selecting a student is 16+18=34.
Eg2: Suppose a college library has 12 books on Mathematics, 10 books on Physics, 16 books on CS & 11
books on Electronics. Suppose a student wishes to choose one of the books for study. The number of ways
in which he can choose a book is 12+10+16+11=49.
---------------------------------------------------------------------------------------------------------------------------------
Eg3: Suppose T 1 is the task of selecting a prime number less than 10 and T 2 is task of selecting an even
number less than 10. Then T 1 can be performed in 4 ways and T 2 can be performed in 4 ways. But, since 2
is both a prime and an even number less than 10, the task can be performed in 4+4-1=7 ways.
----------------------------------------------------------------------------------------------------------------------------------
The Product rule: If a task T 1 can be performed in m different ways and for each of these ways,
another task T 2 can be performed in n different ways, then both of the tasks can be performed in mn
ways.
----------------------------------------------------------------------------------------------------------------------------------
Eg 1: Suppose a person has 8 shirts and 5 ties. Then the number of ways that he can choose a shirt and a tie
is 8¿ 5= 40.
----------------------------------------------------------------------------------------------------------------------
Eg 2: Suppose we wish to construct sequences of four symbols in which the first 2 are English letters and
the next two are single digit numbers. If no letter or digit is repeated, then the number of different sequences
that we can construct is 26¿ 25¿ 10¿ 9=58500.If repetition of letters and digits is allowed, then the
number of different sequences that we can construct is 26¿ 26¿ 10¿ 10=67600.
----------------------------------------------------------------------------------------------------------------------
Eg 3: Suppose a restaurant sells 6 South Indian dishes, 4 North Indian dishes, 3 hot beverages & 2 cold
beverages. For breakfast, a student wishes to buy 1 south Indian dish & 1 hot beverage, or 1 North Indian
dish & 1 cold beverage. Then he can have the 1st choice in 6 ¿ 3= 18 ways & 2nd choice in 4¿ 2=8 ways.
The total no. of ways he can buy his breakfast items is 18+8=26.
----------------------------------------------------------------------------------------------------------------------------------
Permutations: A permutation means an arrangement of r objects from n distinct objects in a line. The
n
number of arrangements of n objects of which r are taken at a time, denoted by P(n , r ) or Pr is given by
n!
P(n , r ) = (n−r)! where 0¿ r ≤n and n !=n (n−1 ) (n−2 ). . .. .3 . 2.1 . & 0 ! =1 . The number of
In each of these arrangements,there are 9 possible locations for the three A’s.These locations can be chosen
(ii) If the fourth container has to get an odd number of balls, we have to put 1 or 3 or 5 or 7 balls into it.
Suppose we put 1 ball into the fourth container, then the remaining 7 balls can be distributed into the
remaining 3 containers in C(3+7−1 , 7 )=C (9 , 7)=36 ways .
Similarly if we put 3 balls into the fourth container, then the remaining 5 balls can be distributed into the
remaining 3 containers in C(3+5−1 , 5 )=C (7 ,5 )=21 ways .
Suppose we put 5 balls into the fourth container, then the remaining 3 balls can be distributed into the
remaining 3 containers in C(3+3−1 , 3 )=C (5 ,3 )=10 ways .
Next putting 7 balls into the fourth container, then the remaining 1 ball can be distributed into the
remaining 3 containers in C(3+1−1 , 1)=C (3 , 1)=3 ways .
Thus, the total number of ways of distributing the given balls so that the fourth container gets an odd number
of balls is 36+21+10+3=70.
----------------------------------------------------------------------------------------------------------------------------------------------
7. In how many ways can we distribute 7 apples and 6 oranges among 4 children so that each child gets at
least 1 apple.
Ans: We first give 1 apple to each child. There exhausts 4 apples. The remaining 3 can be distributed
among the 4 children in C(4+3-1 , 3)=C9,3)=20 ways. Also 6 oranges can be distributed among the 4
children in C(4+6-1 ,6)=C(9,6) =84 ways. Therefore by the product rule, the number of ways of
distributing the given fruits under the given condition is 20 X 84=1680 ways.
----------------------------------------------------------------------------------------------------------------------------------
The Binomial theorem:
If x & y are real numbers & n is a +ve integer, then
¿.
n
The numbers r
( )
for r=0, 1, 2,...n are the Binomial coefficients.
Problems:
Find the coefficient of
9 3 5 2
(1) x y in the expansion of ¿. (2) a b in the expansion of ¿.
[ ]
15
0 2
(3) x 2
in the expansion of 3 x − x . (4) 1) x 6 y 3 in the expansion of ¿.
Ans: (1):
(2):
(3): we have by binomial theorem
[ ] ( )
15 15 15
( ) ( )
15−r
2
3x −
2
=∑ 15 . ( 3 x2 )r −2 =∑ 15 . ( 3 )r (−2 )15−r x 3 r−15 .
x r=0 r x r=0 r
0
In this expansion , the coefficient of x (which corresponds to r = 5) is
15
5
5
( )
10
. (3 ) (−2) =
15!
10 ! ×5 !
5 10
×3 ×2 =83,026,944
9
(4): we have by binomial theorem, ¿ = ∑
r=0
(9r ) . ( x ) ( 2 y )
r 9−r
Problems:
Find the coefficient of
a) xy z2 in the expansion of ( 2 x− y−z )4
b) x 2 y 2 z 3in the expansion of ( 3 x−2 y−4 z )7
6
c) x 11 y 4 in the expansion of ( 2 x 3−3 x y 2 + z 2 )
Ans:
------------------------------------------------------------------------------------------------------------------------------
*************