0% found this document useful (0 votes)
591 views11 pages

SEM 2 BC0039 Discrete Mathematics

This document contains solutions to discrete mathematics problems submitted by Suresh Kumar Suthar. It includes solutions to problems involving sets, functions, series, summations, mathematical induction, and the tower of Hanoi puzzle. The solutions provide work showing calculations and explanations of concepts like the principle of inclusion and exclusion.

Uploaded by

neeraj61289
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
591 views11 pages

SEM 2 BC0039 Discrete Mathematics

This document contains solutions to discrete mathematics problems submitted by Suresh Kumar Suthar. It includes solutions to problems involving sets, functions, series, summations, mathematical induction, and the tower of Hanoi puzzle. The solutions provide work showing calculations and explanations of concepts like the principle of inclusion and exclusion.

Uploaded by

neeraj61289
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 11

1

Suresh Kumar Suthar 2 Roll No: 520776763 3 BCA 2nd Semester 4 BC0039 01 5 DISCRETE MATHEMATICS

1. If U= {a,b,c,d,e,f} , A= {a,b,c} B={d,e} C={b,c,e} Evaluate the following.

Ans: Solution:

Solutions :

1 2

Suresh Kumar Suthar Roll No: 520776763 BC0039 01 DISCRETE MATHEMATICS

Solutions :

1 2

Suresh Kumar Suthar Roll No: 520776763 BC0039 01 DISCRETE MATHEMATICS

2. If f is a real valued function find the domain of x x fff a a f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f i y = fffff ii y = ffffffffffffffffff 2 2 x @5x + 6 1+x Ans: Solution:

x fff a ` a ii Clearly, y = f x = ffffffffffffffff is defined for all real values of x . 1 + x2 ` a So domain of y = f x = R

1 2

Suresh Kumar Suthar Roll No: 520776763 BC0039 01 DISCRETE MATHEMATICS

3. Find the nth term of the following series 1 1 + fffffffffff + ffffffffffffff+ 2.5 5.8 8.11 Solution: The given series is neither in A.P., G.P. nor in H.P. This is special type of series. In this series in each term numerator is 1 and in denominator the corresponding figures are 2.5, 5.8, 8.11 As before the first figure in each term viz 2, 5, 8. forms an A.P. An A.P. nth term 1 f f f f f f f f f f f

where is first term, d is common difference. Now nth term of viz. 2, 5, 8,.... is = 2 + (n -1) 3 = 3n 1 Now, Second, figure in each term viz., 5, 8, 11, forms an A. P. whose nth term is = 5 + ( n -1 ) 3 = 3n + 2 Hence the nth term of given series is

1 2

Suresh Kumar Suthar Roll No: 520776763 BC0039 01 DISCRETE MATHEMATICS

4. Prove by mathematical induction that 1 + 2 + 3 + + n = n Solution: i) For n = 1, left side = 13 = 1


3 3 3 3 2

` a2 n + 1 f f f f f f f f f f f f f f f f f f f f f f f f

ii)

Assume the result to be true for n = m

(induction hypothesis)

1 2

Suresh Kumar Suthar Roll No: 520776763 BC0039 01 DISCRETE MATHEMATICS

5. Briefly explain in your own words with example the principle of inclusion and exclusion. Ans: Principle of Inclusion and Exclusion: For any two sets P and Q we have

This can be extended to any finite number of sets, which is known as principle of inclusion and exclusion, given following. If A1, A2, A3,An are finite sets, then

We will understand by this example: Determine the number of integers between 1 to 250 that are divisible by any of the integers 2, 3, 5 and 7. Solutions:

1 2

Suresh Kumar Suthar Roll No: 520776763 BC0039 01 DISCRETE MATHEMATICS

Among the permutations of {1, 2, 3, , n}, there are some (called derangements), in which none of the n integers appears in its natural place. In other words: (i1, i2, .in) is a derangement if i1 !=1, i2 != 2 and In != n. If Dn denote the number of derangements of {1, 2, 3, , n}, then for n = 1, 2, 3, we have, D1 = 0, D2 =1 , D3 =2 (that is, the only derangements of (1,2,3) are (2,3,1) and (3,1,2)). The formula for Dn for any positive integer n
1 2 Suresh Kumar Suthar Roll No: 520776763 BC0039 01 DISCRETE MATHEMATICS

Let U be the set on n! Permutations of {1, 2, 3, ., n}. For each i, let Ai be the permutation (b1, b2, ., bn) of {1, 2, 3, ., n} such that bi = i.

1 2

Suresh Kumar Suthar Roll No: 520776763 BC0039 01 DISCRETE MATHEMATICS

6. Explain the problem of tower of Hanoi in your own words. Ans: The problem of tower of Hanoi Given a tower of eight disks, initially stacked in decreasing size on one of three pegs. The objective is to transfer the entire tower to one to the other pegs, moving only one disk at a time and never moving a larger on to smaller (these rules are called Lucas Rules).

Let Tn be the minimum number of moves that will transfer n disks from one peg to another under Lucas rules. Then clearly T 0 = 0, since no moves are needed to transfer a tower of n = 0 disks. By observation, T1 = 1, T2 = 3

1 2

Suresh Kumar Suthar Roll No: 520776763 BC0039 01 DISCRETE MATHEMATICS

Now transfer the top disks to the middle peg, then move the third, then bring the other two onto it. So we get T 3=7 = 2.3 + 1 = 2 T2 +1. Induction Hypo: Assume for n-1 disks. That is, Tn-1 =2. Tn-2 + 1. Suppose that there are n-disks. We first transfer the (n-1) smallest disks to a different peg. It requires Tn-1 moves. Then move the largest ( It requires one move.), and finally transfer the (n-1) smallest disks back onto the largest ( it requires another T n-1 moves.).

We must move the largest disk. When we do, the n-1 smallest disks must be on a single peg, and it has taken at least T n-1 moves to put them there ( we might move the largest disk more than once). After moving the largest disk for the last time, we must transfer the n-1 smallest disks (which must be again on a single peg) back onto the largest.

1 2

Suresh Kumar Suthar Roll No: 520776763 BC0039 01 DISCRETE MATHEMATICS

10

1 2

Suresh Kumar Suthar Roll No: 520776763 BC0039 01 DISCRETE MATHEMATICS

11

You might also like