Professional Documents
Culture Documents
MA2265 Part A Part B Original
MA2265 Part A Part B Original
2. State the truth value of “If tigers have wings then the earth
travels round the sun”.
Sol. Let P : Tigers have wings have truth value F
Q : The earth travels round the sun have truth value T
Therefore, P Q has the truth value T.
7. Prove that P Q 7P Q
Sol.
P Q 7P P Q 7P Q (1) (2)
(1) (2)
T T F T T T
T F F F F T
F T T T T T
F F T T T T
Since (1) (2) are all true, it is tautology.
(1) (2)
(i.e) P Q 7P Q
8. Prove that P (Q R) ( P Q) R.
Sol. P (Q R) P (7Q R)
7P (7Q R)
(7P 7Q) R
7(P Q) R
(P Q) R.
2
M.A.M COLLEGE OF ENGINEERING DISCRETE MATHEMATICS UNIT-1 3
13. Show that is minimal functionally complete set.
Sol. We can express 7, , in terms of alone.
P P 7(P P)
7P
(P Q) (P Q) 7(P Q)
7(7(P Q))
PQ
(P P) (Q Q) 7P 7Q
7(7P 7Q)
7(7(P Q))
PQ
is minimal functionally complete set.
14. Show that is minimal functionally complete set.
Sol. We can express 7, , in terms of alone.
P P 7(P P)
7P
(P Q) (P Q) 7(P Q)
7(7(P Q))
PQ
(P P) (Q Q) 7P 7Q
7(7P 7Q)
7(7(P Q))
PQ
is minimal functionally complete set.
15. Define Principal disjunctive normal form.
Sol. For a given formula, an equivalent formula consisting of
disjunction of minterms only is known as Principal disjunctive
normal form.
3
M.A.M COLLEGE OF ENGINEERING DISCRETE MATHEMATICS UNIT-1 4
21. Symbolize the statement: “If Vani attends classes regularly and
if either she is attentive in the class or studies well then she gets
the top grade.”
Sol. Let P: Vani attends classes regularly.
Q: She is attentive in the class
R: She studies well
S: She gets the top grade.
The given statement can be written as P (Q R) S.
4
M.A.M COLLEGE OF ENGINEERING DISCRETE MATHEMATICS UNIT-1 5
5
M.A.M COLLEGE OF ENGINEERING DISCRETE MATHEMATICS UNIT-1 6
6
M.A.M COLLEGE OF ENGINEERING DISCRETE MATHEMATICS UNIT-1 7
40. Express the statement “Good food is not cheap” in symbolic form.
Sol. Let P: Food is good
Q: Food is cheap
Then the given statement is P 7Q.
7
M.A.M COLLEGE OF ENGINEERING DISCRETE MATHEMATICS UNIT-1 8
47. How many rows are needed for the truth value of the formula
(p 7q) (( 7r s) t) ?
Sol. 32 rows.
8
M.A.M COLLEGE OF ENGINEERING DISCRETE MATHEMATICS UNIT-1 9
9
M.A.M COLLEGE OF ENGINEERING DISCRETE MATHEMATICS UNIT-1 10
57. Write the following statement in the symbolic form “Some monkeys
have no tails”
Sol. Let M(x): x is a monkey
T(x): x has a tail
The given statement can be written as “There is an x such that x is a monkey
and x has no tail” and it is ( x) [M(x) 7 T(x)].
59. Symbolize : “For any x and for any y , if x is taller than y then y is not
taller than x”
Sol. Let T(x, y) : x is taller than y.
The given statement can be written as “For any x and for any y, if x is taller
than y then it is not true that y is taller than x” and it is
( x) ( y)[T(x, y) 7 T(y, x)]
62. Symbolize : For any given positive integer, there is a greater positive
integer.
Sol. Let P(x): x is a positive integer
G(x, y): x is greater than y
10
M.A.M COLLEGE OF ENGINEERING DISCRETE MATHEMATICS UNIT-1 11
The statement can be written as “For any x, if x is a positive integer then there
exists some y such that y is a positive integer and y is greater than x” and it is
( x)[P(x) ( y)( P(y) G(y, x))]
65. Symbolize: Every one who likes fun will enjoy each of these plays.
Sol. Let L(x) : x likes fun
P(y) : y is a play
E(x,y) : x will enjoy y.
The statement can be written as “For each x, if x likes fun and for each y, if y is
a play, then x enjoys y” and it is ( x)( y)[ L(x) P(y) E(x,y)].
66. Symbolize: Every one should help his neighbours or his neighbours will
not help him.
Sol. Let N(x,y) : x and y are neighbours
H(x,y) : x should help y
P(x,y) : x will help y
The statement can be written as “For every person x and every person y, if x
and y are neighbors, then either x should help y or y will not help x” and it is
( x) ( y)[ N(x,y) ( H(x,y) 7 P(y,x))]
67. Symbolize : Every one who is healthy can do all kinds of work.
Sol. Let H(x) : x is a healthy person
W(y): y is a kind of work
D(x,y): x can do y
The statement can be written as “For all x, if x is healthy and for all y, if y is a
kind of work then x can do y” and it is ( x) ( y)[ H(x) W(y) D(x,y)].
11
M.A.M COLLEGE OF ENGINEERING DISCRETE MATHEMATICS UNIT-1 12
72. Express the following statement in symbolic form “Any integer is either
positive or negative”.
Sol. Let I(x) : x is an integer
P(x) : x is a positive integer
N(x) : x is a negative integer
The statement can be written as “For all x, if x is an integer then either x is a
positive or negative integer” and it is ( x)[ I(x) {P(x) N(x)}].
Sol. False.
Because x = 0 does not satisfy the condition x 3 x 2.
2
75. Find the truth value of ( x)( P Q( x)) (x) R( x) where P:2 >1,
Q(x) : x >3, R(x) : x >4, with the universe of discourse E being
E = {2,3,4}.
Sol. P is True and Q(3) is False. Hence P Q(3) is False.
(x)(P Q(x)) is False.
Since R(2), R(3), R(4) are all False, ( x)R(x) is also False.
Hence ( x)( P Q( x)) (x) R( x) is False.
12
M.A.M COLLEGE OF ENGINEERING DISCRETE MATHEMATICS UNIT-1 13
14
M.A.M COLLEGE OF ENGINEERING DISCRETE MATHEMATICS UNIT-1 15
PART - B
1. Prove that ((P Q) 7(7P (7Q 7R))) (7P 7Q) (7P 7R)
is a Tautology.
Sol. ((P Q) 7(7P (7Q 7R))) (7P 7Q) (7P 7R)
((P Q) 7(7P 7(Q R))) 7(P Q) 7(P R)
((P Q) (P (Q R)))) 7[(P Q) (P R)]
((P Q) (P Q) (P R)) 7[P (Q R)]
((P Q) (P R)) 7[P (Q R)]
[P (Q R)] 7[P (Q R)]
T.
Hence the given statement formula is a tautology.
15
M.A.M COLLEGE OF ENGINEERING DISCRETE MATHEMATICS UNIT-1 16
16
M.A.M COLLEGE OF ENGINEERING DISCRETE MATHEMATICS UNIT-1 17
Argument
1. (P Q) R Rule P
2. R S Rule P
3. (P Q) S Rule T (From 1,2)
4. 7S 7(P Q) Rule T
5. 7S Rule P
6. 7(P Q) Rule T (From 5,4)
7. 7P 7Q Rule T
The argument is valid.
9. Using Rule CP,derive P (Q S) from P (Q R), Q (R S).
Sol. Argument
1. P Rule CP (Assumed premise)
2. P (Q R) Rule P
3. Q R Rule T
4. 7Q R Rule T
5. Q (R S) Rule P
6. 7Q (R S) Rule T
7. [7Q R] [7Q (R S)] Rule T
8. 7Q [R (R S)] Rule T
9. 7Q S Rule T
10. Q S Rule T
11. P (Q S) Rule CP
The argument is valid.
10. Determine the validity of the following argument:
My father praises me only if I can be proud of myself. Either I
do well in sports or I can’t be proud of myself. If I study hard, then
I can’t do well in sports. Therefore if father praises me, then I do
not study well.
Sol. Let P: My father praises me
Q: I can be proud of myself
R: I do well in sports
S: I study hard
Given premises are P Q, R 7Q, S 7R and the conclusion is P 7S
Argument
1. P Rule CP (Assumed premise)
2. P Q Rule P
3. Q Rule T
4. R 7Q Rule P
5. 7Q R Rule T
6. Q R Rule T
7. R Rule T
8. S 7R Rule P
9. R 7S Rule T
10. 7S Rule T
11. P 7S Rule CP
The argument is valid.
18
M.A.M COLLEGE OF ENGINEERING DISCRETE MATHEMATICS UNIT-1 19
16. By using truth tables verify whether the following specifications are
consistent.
Whenever the system software is being upgraded users can not
access the file system. If users can access the file system then they can
save new files. If users can not save new files then the system
software is not being upgraded.
Sol. Let P : The system software is being upgraded.
Q : Users can access the file system
R : Users can save new files.
The premises are P 7Q, Q R, 7R 7P.
We must verify whether the conjunction of these premises leads to a
contradiction or not.
Let S = ( P 7Q) ( Q R) ( 7R 7P)
P Q R 7P 7Q 7R P 7Q Q R 7R 7P S
T T T F F F F T T F
T T F F F T F F F F
T F T F T F T T T T
T F F F T T T T F F
F T T T F F T T T T
F T F T F T T F T F
F F T T T F T T T T
F F F T T T T T T T
The given premises are consistent.
20
M.A.M COLLEGE OF ENGINEERING DISCRETE MATHEMATICS UNIT-1 21
21
M.A.M COLLEGE OF ENGINEERING DISCRETE MATHEMATICS UNIT-1 22
23. Find the principle disjunctive and conjunctive normal form of the
formula S [(7Q 7R) 7P] (Q R) P.
Sol. S [(7Q 7R) 7P] (Q R) P
[7(7Q 7R) 7P] [7(Q R) P]
[(Q R) 7P] [(7Q 7R) P]
[(Q R) (7Q 7R)] [(Q R) P] [7P (7Q 7R)]
[7P P]
[(Q 7Q) (R 7R)] (P Q R) (7P 7Q 7R) F
F (P Q R) (7P 7Q 7R) F
(P Q R) (7P 7Q 7R)
which is PDNF.
7S (P Q 7R) (P 7Q R) (P 7Q 7R) (7P Q R)
(7P Q 7R) (7P 7Q R)
7(7S) 7[ (P Q 7R) (P 7Q R) (P 7Q 7R)
(7P Q R) (7P Q 7R) (7P 7Q R)]
S (7P 7Q R) (7P Q 7R) (7P Q R) (P 7Q 7R)
(P 7Q R) (P Q 7R).
which is PCNF.
24. Without constructing the truth tables show that A C is not a valid
consequence of the premises
A (B C), B (7A 7C), C (A 7B), B.
Sol. When A and C are false and B is true, the given premises are all true
while A C is false. Hence A C is not a valid conclusion of the given
premises.
22
M.A.M COLLEGE OF ENGINEERING DISCRETE MATHEMATICS UNIT-1 23
23
M.A.M COLLEGE OF ENGINEERING DISCRETE MATHEMATICS UNIT-1 24
24
M.A.M COLLEGE OF ENGINEERING DISCRETE MATHEMATICS UNIT-1 25
25
M.A.M COLLEGE OF ENGINEERING DISCRETE MATHEMATICS UNIT-1 26
26
M.A.M COLLEGE OF ENGINEERING DISCRETE MATHEMATICS UNIT-1 27
27
M.A.M COLLEGE OF ENGINEERING DISCRETE MATHEMATICS UNIT-1 28
43. Find the scope of the quantifier and the nature of occurence of the
variables in the formula ( x)[P(x) ( y)R(x,y)].
Sol. Scope of ( x) : P(x) ( y)R(x,y)
Scope of ( y) : R(x,y)
Occurence of x : bound
Occurence of y : bound
28
M.A.M COLLEGE OF ENGINEERING DISCRETE MATHEMATICS UNIT-1 29
Argument
1. ( x) [L(x) D(x)] Rule P
2. L(c) D(c) Rule US
3. ( x)[D(x) I(x) S(x)] Rule P
4. D(c) I(c) S(c) Rule US
5. L(c) I(c) Rule P
6. L(c) Rule T
7. I(c) Rule T
8. D(c) Rule T [ From 2,6]
9. D(c) I(c) Rule T [ From 7,8]
10. S(c) Rule T [ From 4,9]
The argument is valid.
29
M.A.M COLLEGE OF ENGINEERING DISCRETE MATHEMATICS UNIT-1 30
47. Show that the premises “One student in this class knows how to write
programs in JAVA” and “Everyone who knows how to write
programs in JAVA can get a high paying job” imply the conclusion
“Someone in this class can get a high paying job”.
Sol. Let C(x): x is a student in this class
J(x): x knows JAVA programming
H(x): x can get a high paying job.
We need to show
( x)(C(x) J(x)) , ( x)( J(x) H(x)) ( x)(C(x) H(x))
Argument
1. ( x)(C(x) J(x)) Rule P
2. C(a) J(a) Rule ES
3. C(a) Rule T
4. J(a) Rule T
5. ( x)( J(x) H(x)) Rule P
6. J(a) H(a) Rule US
7. H(a) Rule T
8. C(a) H(a) Rule T
9. ( x)(C(x) H(x)) Rule EG
The argument is valid.
48. Verify the validity of the following argument.
All parrots are green. Eagles do not live on honey. Birds that do
not live on honey are not green. Hence parrots are not eagles.
Sol. Let P(x): x is a parrot
G(x): x is a green
E(x): x is an eagle
H(x): x lives on honey.
We need to show
( x)( P(x) G(x)), ( x)( E(x) 7H(x)), ( x)( 7H(x) 7G(x))
( x)( P(x) 7E(x))
Argument
1. ( x)( P(x) G(x)) Rule P
2. P(a) G(a) Rule US
3. ( x)( 7H(x) 7G(x)) Rule P
4. 7H(a) 7G(a) Rule US
5. G(a) H(a) Rule T
6. P(a) H(a) Rule T
7. ( x)( E(x) 7H(x)) Rule P
8. E(a) 7H(a) Rule US
9. H(a) 7E(a) Rule T
10.P(a) 7E(a) Rule T
11. ( x)( P(x) 7E(x)) Rule UG.
The argument is valid.
30
M.A.M COLLEGE OF ENGINEERING DISCRETE MATHEMATICS UNIT-1 31
31
M.A.M COLLEGE OF ENGINEERING DISCRETE MATHEMATICS UNIT-1 32
52. Show that ( x)[P(x) Q(x)] and ( x) P(x) ( x) Q(x) have the
same truth values.
Sol. ( x)[P(x) Q(x)] is true.
P(y) Q(y) is true for some y.
P(y) is true for some y or Q(y) is true for some y.
( x) P(x) is true or ( x) Q(x) is true.
( x) P(x) ( x) Q(x) is true.
53. Let M(x,y) be ‘ x has sent an email message to y ’ and T(x,y) be ‘ x has
telephoned y ’ where the universe of discourse is the set of all students
in your class. Use quantifiers to express each of the following
statements.
a. There is a student in your class who has sent an email message
and telephoned to everyone else in the class.
b. Everyone in your class has either telephoned Vijay or sent him an
email message.
iii) Ajay has never received an email or a telephone call from Vijay.
Sol. i) ( x) ( y) [ M(x,y) T(x,y)]
ii) ( x)[ M(x, Vijay) T(x, Vijay)]
iii) 7 [ M(Vijay, Ajay) T(Vijay, Ajay)].
32
M.A.M COLLEGE OF ENGINEERING DISCRETE MATHEMATICS UNIT II
DISCRETE MATHEMATICS
UNIT – II COMBINATORICS
PART – A
5. How many different eight letter words can be made with four A’s, two B’s
and two C’s?
8!
Sol. = 420.
4! 2! 2!
6. How many three letters words can be formed from letters in the set
{a, b, y, z}
i) if repetition of letters are allowed?
ii) if repetition not allowed?
Sol. n = 4, r = 3
(i) Total number of words = 43 = 64words
(with repetition)
(ii) Total number of words = 4P3 = 4.3.2 = 24 words.
(without repetition)
7. In how many ways can 9 people be seated in a circle?
Sol. Total number of ways = (n – 1)!
= (9 – 1)! = 8! = 40320
8. Prove that nCr nCnr
n! n!
Sol. nCnr (n r )!(n n r )! (n r )!r ! nCr
1
M.A.M COLLEGE OF ENGINEERING DISCRETE MATHEMATICS UNIT II
10. How many teams of six with a captain can be selected from 12 persons?
Sol. 12C1×11C5.
11. Find the number of arrangements of the letters in DISCRETE. How
many of these arrangements have no adjacent E’s?
8!
Sol. Number of arrangements in DISCRETE = = 20160.
2!
Number of arrangements have no adjacent E’s = 7C2 ×6!
12. Find the number of arrangements of the letters in MAPPANASSRR.
Also find how many of these arrangements have no adjacent A’s?
11!
Sol. Number of arrangements in MAPPANASSRR =
3!2!2!2!
8!
Number of arrangements have no adjacent A’s = 9C3 ×
2! 2! 2!
2
M.A.M COLLEGE OF ENGINEERING DISCRETE MATHEMATICS UNIT II
100 1
12 1 8 1 9
Hence at least 9 were born in the same month.
17. How many positive integers not exceeding 100 that is divisible by 5?
100
Sol. 20
5
Hence 20 positive integers not exceeding 100 that is divisible by 5.
18. Define recurrence relation
Sol. A recurrence relation for the sequence a0, a1, a2,…..an,…… is an equation
that relates an to some of its previous terms a0, a1, a2,…….an – 1. The terms
not defined by the equation are called initial (boundary) conditions or basis
of the recurrence relation.
19. Define Fibonacci recurrence relation
Sol. The recurrence relation Fn = Fn – 1 + Fn – 2 , n 2 with initial conditions
F0 = F1 = 1 is known as Fibonacci recurrence relation.
20. Write the Fibonacci sequence.
Sol. The Fibonacci sequence is { 1, 1, 2, 3, 5, 8, 13, 21, 34, ……….}
21. Give the properties of Fibonacci numbers.
Sol. (i) F0 + F1 + F2 + ………. + Fn = Fn + 2 – 1
(ii) F0 + F2 + F4 + ………. + F2n = F2n + 1
(iii) F02 + F12 + F22 + ………. + Fn2 = Fn.Fn + 1
22. If S(k) = 5.2k find the recurrence relation
Sol. S(k) = 5.2k
k–1 5.2 k
S(k – 1) = 5.2 =
2
(i.e.) S(k) = 2 S(k – 1) is the recurrence relation with S(0) = 5 as basis.
23. Find the recurrence relation satisfying yn = (A + Bn)5n
Sol. yn = (A + Bn)5n
yn – 1 = [ A + B(n – 1)] 5n – 1
5 yn – 1 = A.5n + B(n – 1).5n
yn – 5.yn – 1 = Bn5n – B(n – 1)5n
= B.5n ------------(1)
n–1
yn – 1 – 5.yn – 2 = B.5 ------------(2)
From (1), we have
yn – 5.yn – 1 = 5B5n – 1
= 5 (yn – 1 – 5.yn – 2 ) [ using (2) ]
(i.e.) yn – 10.yn – 1 + 25 yn – 2 = 0 is the recurrence relation with
y0 = A, y1 = 5(A + B) as basis.
24. Find the recurrence relation for the sequence given by A(k) = k2 – k.
Sol. A(k) = k2 – k
A(k – 1) = (k – 1) 2 – (k – 1)
= k2 – 3k + 2
3
M.A.M COLLEGE OF ENGINEERING DISCRETE MATHEMATICS UNIT II
A(k – 2) = (k – 2) 2 – (k – 2)
= k2 – 5k + 6
A(k) – 2A(k – 1) + A(k – 2) = k2 – k – 2 ( k2 – 3k + 2 ) + k2 – 5k + 6
= 2.
(i.e.) A(k) – 2A(k – 1) + A(k – 2) = 2 is the recurrence relation with
A(0) = 0, A(1) = 0 as basis.
25. Solve the recurrence relation an = 2.an – 1 subject to a0 = 1
Sol. an = 2.an – 1
a1 = 2.a1 – 1 = 2.a0 = 2.1 = 2
a2 = 2.a1 = 2.2 = 22
a3 = 2.a2 = 2.22 = 23
……………………
an = 2n , n 1.
26. Solve an = an – 1 + 3n, n 1 , a0 = 1
Sol. an = an – 1 + 3n
a1 = a0 + 31 = 1 + 3
a2 = a1 + 32 = 1 + 3 + 32
a3 = a2 + 33 = 1 + 3 + 32 + 33
………………………………
an = 1 + 3 + 32 + 33 + ………3n
3 n1 1 3 n1 1
(i.e.) an = 3 1 = 2
27. Solve S(n) + 5 S(n – 1) = 0, S(0) = 3.
Sol. S(n) = – 5 S(n – 1)
S(1) = – 5 S(0) = – 5 (3)
S(2) = – 5 S(1) = (– 5)2.3
S(3) = – 5 S(2) = (– 5)3.3
…………………………
S(n) = (– 5)n.3
= 3.(– 5)n
28. Write an explicit formula for an, if an = 3.an – 1 and a1 = 2.
Sol. Given an – 3.an – 1 = 0
The characteristic equation is
r–3=0
r=3
an = b1.3n
Given a1 = 2 2 = b1.31
3b1 = 2
2
b1 =
3
2 n
Hence an = .3 = 2.3n – 1
3
4
M.A.M COLLEGE OF ENGINEERING DISCRETE MATHEMATICS UNIT II
S
k 1
k 2 Sk 1 z k 0
S
k 1
k z 2 S k 1 z k 0
k
k 1
k 0
S k z k
S 0
2 z
k 1
S k 1 z k 1
0
G(s,z) – 1 – 2z G(s,z) = 0
G(s,z) [1 – 2z] = 1
1
(i.e.) G(s,z) =
1 2z
33. Let S Z+ where | S | = 26. Show that S contain 2 elements that the same
remainder upon division by 25.
Sol. Let S = {The set of 26 positive integers}
When these are divided by 25, two of the numbers will give the same
remainder [ (i.e.) 1, 2, 3, ……….. 24] { Here 0 Z+ }
Now, Number of pigeon = n = No. of positive integers = 26
Number of pigeonholes = m = No. of remainder = 25
Then by generalized pigeonhole principle, at least one remainder contains
26 1
25 1 2 positive integers.
Hence S contain 2 elements that the same remainder upon division by 25.
5
M.A.M COLLEGE OF ENGINEERING DISCRETE MATHEMATICS UNIT II
PART – B
1. Use mathematical induction to prove that an – bn is divisible by a – b for
all n = 1,2,3,……
Sol. Let P(n) : an – bn is divisible by a – b
P(1) : a1 – b1 = a – b is divisible by a – b.
P(1) is true.
Assume that P(k) is true. (i.e.) ak – bk is divisible by a – b
(i.e.) ak – bk = q(a – b), q I.
Consider P(k+1)
ak+1 – bk+1 = a.ak – b.bk
= a[q(a – b) + bk] – b.bk
= aq(a – b) + a.bk – b.bk
= aq(a – b) + (a – b)bk
= (a – b)[aq + bk]
= a multiple of (a – b)
a – bk+1 is divisible by a – b
k+1
P(k+1) is true.
Hence the result is true for all n.
2. Show that 8n – 3n is a multiple of 5 by using method of induction.
Sol. Let P(n) : 8n – 3n is a multiple of 5
P(1) : 8 – 3 = 5 is a multiple of 5.
P(1) is true.
Assume that P(k) is true.
(i.e.) 8k – 3k is a multiple of 5
(i.e.) 8k – 3k = 5q, q I.
Consider P(k+1)
8k+1 – 3k+1 = 8.8k – 3.3k
= 8(5q + 3k) – 3.3k
= 40q + 5.3k
= 5(8q + 3k)
= a multiple of 5.
P(k+1) is true.
Hence the result is true for all n.
3. Use mathematical induction to prove that 3n + 7n – 2 is divisible by 8 for
all n 1.
Sol. Let P(n) : 3n + 7n – 2 is divisible by 8
P(1) : 3 + 7 – 2 = 8 is divisible by 8.
P(1) is true.
Assume that P(k) is true.
(i.e.) 3k + 7k – 2 is divisible by 8.
(i.e.) 3k + 7k – 2 = 8q, q I.
Consider P(k+1)
3k+1 + 7k+1 – 2 = 3.3k + 7.7k – 2
= 3(8q – 7k + 2) + 7.7k – 2
= 24q + 4.7k +4
= 8(3q) + 4(7k+1) ---------(1)
6
M.A.M COLLEGE OF ENGINEERING DISCRETE MATHEMATICS UNIT II
7
M.A.M COLLEGE OF ENGINEERING DISCRETE MATHEMATICS UNIT II
P(k+1) is true.
Hence the result is true for all n.
6. Prove by mathematical induction 2 n for all n N.
n
Consider P(k+1)
k 1 2k 1
2k 2k as 1 2k
2.2k 2k 1
(i.e.) 2k 1 k 1
P(k+1) is true.
Hence the result is true for all n.
7. Prove that n2 < 2n for all positive integers n > 4.
Sol. Let P(n) : n2 < 2n , n > 4
P(5) : 52 < 25
25 < 32 is true. P(5) is true.
Assume that P(k) is true.
(i.e.) k2 < 2k for all k > 4
Consider P(k+1)
(k+1)2 = k2 + 2k + 1
< 2k + (2k+1)
< 2k + 2k [ as 2k + 1 < 2k ]
= 2. 2k = 2k+1
(i.e.) (k+1)2 < 2k+1
P(k+1) is true.
Hence the result is true for all n.
8. A computer password consists of a letter of English alphabet followed by
2 or 3 digits. Find the following
i) The total number of passwords that can be formed.
ii) The number of passwords in which no digit repeats.
Sol. (i) Number of three character passwords = 26×10×10
= 2600
Number of four character passwords = 26×10×10×10
= 26000
Total number of passwords = 2600 + 26000
(with repetition) = 28600 words.
(ii) Number of three character passwords = 26×10×9
= 2340
Number of four character passwords = 26×10×9×8
= 18720
Total number of passwords = 2340 + 18720
(without repetition) = 21060 words.
8
M.A.M COLLEGE OF ENGINEERING DISCRETE MATHEMATICS UNIT II
9
M.A.M COLLEGE OF ENGINEERING DISCRETE MATHEMATICS UNIT II
This can be seen by simply factoring all factors of 2 (if any) out of n.
The integers m1, m2, ……mn + 1 are all odd positive integers less than 2n
(pigeons). Since there are only n odd positive integers less than 2n
(pigeonholes), it follows from the pigeonhole principle that two of the integers
must be equal. Let them be mi m j .
ai 2 i mi and a j 2 j m j
k k
ai 2ki
( mi m j )
a j 2k j
If ki k j then 2 i divides 2
k kj
and hence ai divides a j .
If ki k j then a j divides ai .
13. Show that if any 11 numbers are chosen from the set {1, 2, ……20} then
one of them will be a multiple of another.
Sol. Every positive integer can be written as n = 2k m where m is odd and k 0.
This can be seen by simply factoring all factors of 2 (if any) out of n. In this
case let us call m the odd part of n. If 11 numbers are chosen from the set
{ 1, 2, …..20}, then two of them must have the same odd part. This follows
from the pigeonhole principle since there are 11 numbers (pigeons) but only
10 odd numbers between 1 and 20 (pigeonholes) that can be odd parts of
these numbers.
Let n1 and n2 be chosen numbers with the same odd part. We must have
n1 2k 1 m and n2 2 2 m for some k1 and k2.
k
n1 2k1
k2
n2 2
If k1 k 2 then n1 is a multiple of n2 , otherwise n2 is a multiple of n1.
14. Prove that if 51 integers are selected from the set S = {1, 2, 3, …….100}
then there are two integers such that one divides the other.
Sol. Every positive integer can be written as n = 2k m where m is odd and k 0.
This can be seen by simply factoring all factors of 2 (if any) out of n. In this
case let us call m the odd part of n. If 51 numbers are chosen from the set
{ 1, 2, …..100}, then two of them must have the same odd part. This
follows from the pigeonhole principle since there are 51 numbers (pigeons)
but only 50 odd numbers between 1 and 100 (pigeonholes) that can be odd
parts of these numbers.
Let n1 and n2 be chosen numbers with the same odd part. We must have
n1 2k 1 m and n2 2 2 m for some k1 and k2.
k
n1 2k1
k2
n2 2
If k1 k2 then n1 divides n2 .
If k1 k2 then n2 divides n1 .
10
M.A.M COLLEGE OF ENGINEERING DISCRETE MATHEMATICS UNIT II
25
190 40
20
50 30
95
H
Hence number of people watch exactly one game = 190+40+95
= 325.
20. Out of 100 sportsmen in a college, 39 play Tennis, 58 play Cricket and
32 play Hockey, 10 play Cricket and Hockey, 11 play Hockey and
Tennis and 13 play Tennis and Cricket.
How many play i) All the three games.
ii) Just one game
iii) Tennis and Cricket but not Hockey.
12
M.A.M COLLEGE OF ENGINEERING DISCRETE MATHEMATICS UNIT II
Sol. n(T) = 39, n(C) = 58, n(H) = 32, n(T C) = 13, n(C H) = 10,
n(H T) = 11, n(T C H) = 100.
Now, n(T C H) = n(T) + n(C) + n(H) – n(T C) – n(C H)
– n(H T) + n(T C H)
100 = 39 + 58 + 32 – 13 – 10 – 11 + n(T C H)
n(T C H) = 100 – 95
= 5.
Thus 5 play all the three games.
T C
20 8 40
5
6 5
16
H
Hence number of player who play just one game = 20 + 40 + 16
= 76.
Number of players who play Tennis and Cricket but not Hockey = 8.
21. A survey of 100 students was taken concerning their programming
experience. The following results were obtained. 30 students know C++,
19 know Java, 16 know COBOL, 11 know C++ and COBOL, 12 know
C++ and Java, 6 know Java and COBOL and 4 know all 3 programming
languages. Then how many students know
i) None of the 3 languages
ii) C++ and Java but not COBOL
iii) Exactly 2 languages.
Sol. Let A = C++, B = Java, C = COBOL
100 A B
11 8 5
4
7 2
22. Find the number of divisors between 1 and 500 that are not divisible by
any of the integers 2, 3, 5 and 6.
Sol. Let A, B, C and D be the set of positive integers between 1 and 500 that are
divisible by 2, 3, 5 and 6 respectively.
500 500
|A|= 250 |B|= 166
2 3
500 500
|C|= 100 |D|= 83
5 6
500 500 500 500
| AB | = 6 83 | AC | = 50
lcm (2,3) lcm (2,5) 10
500 500 500 500
| AD | = 83 | BC | = 33
lcm(2, 6) 6 lcm(3,5) 15
500 500 500 500
| BD | = 83 | CD | = 16
lcm(3, 6) 6 lcm(5, 6) 30
500 500
| ABC | = 16
lcm(2,3,5) 30
500 500
| ABD | = 83
lcm(2,3, 6) 6
500
500
| ACD | = 16
lcm(2,5, 6) 30
500
500
| BCD | = 16
lcm(3,5, 6) 30
500 500
| ABCD | = 16
lcm(2,3,5, 6) 30
14
M.A.M COLLEGE OF ENGINEERING DISCRETE MATHEMATICS UNIT II
1000 1000
| AC | = 10 100
lcm(2,5)
1000 1000
| BC | = 66
lcm(3,5) 15
1000 1000
| ABC | = 30 33
lcm(2,3,5)
2, 3 or 5 but divisible by 7.
24. In a survey of 100 students it was found that 40 studied Maths, 64
studied Physics, 35 studied Chemistry, 1 studied all the three subjects,
25 studied Maths and Physics, 3 studied Maths and Chemistry and 20
studied Physics and Chemistry. Find the number of students who
studied Chemistry only and the number who studied none of these
subjects.
Sol.
100 M P
13 24 20
1
2 19
13
15
M.A.M COLLEGE OF ENGINEERING DISCRETE MATHEMATICS UNIT II
16
M.A.M COLLEGE OF ENGINEERING DISCRETE MATHEMATICS UNIT II
(r + 3)(r – 5) = 0 1 – 2 – 15 0
r = – 3, 5
r = 2, – 3, 5
S(k) = b1.2 + b2.(– 3)k + b3.5k ----------- (1)
k
17
M.A.M COLLEGE OF ENGINEERING DISCRETE MATHEMATICS UNIT II
n
(1 i ) 2 cos i sin
n
4 4
n n
n
2 cos i sin
4 4
n n
n
(1 i ) n 2 cos i sin
4 4
n n n n
n n
an b1 2 cos i sin
2 b 2 cos i sin
4 4 4 4
n n
n
2 (b1 b2 ) cos i (b1 b2 )sin
4 4
n n
n
an 2 c1 cos c2 sin where b1 b2 c1 , i (b1 b2 ) c2
4 4
Given a0 = 1 1 = 1(c1 + 0)
c1 = 1
a1 = 2 2 = 2 c
1
1
2
c2
1
2
= c1 + c2
2 = 1 + c2
c2 = 1
n n
n
an 2 cos sin
4
4
18
M.A.M COLLEGE OF ENGINEERING DISCRETE MATHEMATICS UNIT II
19
M.A.M COLLEGE OF ENGINEERING DISCRETE MATHEMATICS UNIT II
T1 = 2 2 = 2b1 + 5b2 + 10
2b1 + 5b2 = – 8 -----------(4)
Solving (3) and (4), we get
b1 = – 9, b2 = 2
Tk = (– 9) .2k + 2.5k + 8 + 2k
32. Solve S(k) – 4 S(k – 1) + 4 S(k – 2) = 3k + 2k with k 2 and S(0) = 1,
S(1) = 1.
Sol. The characteristic equation is
r2 –4r + 4 = 0
(r – 2)(r – 2) = 0
r = 2, 2
Homogeneous solution is S(k) = (b1 + b2k) 2k
(i) First find the particular solution for 3k.
Let S(k) = d0 + d1k be the particular solution
Then (d0 + d1k) – 4[d0 + d1(k – 1)] + 4[d0 + d1(k – 2)] = 3k
(d0 – 4d1) + k(d1 –4d1 + 4d1) = 3k
d0 – 4d1 = 0 and d1 = 3
d0 = 4(3) = 12
Particular solution is 12 + 3k.
(ii) Let S(k) = d k2 2k be the particular solution (since 2 is a double root)
Then (d k2 2k) – 4 [d (k – 1)2 2k – 1 ] + 4 [d (k – 2)2 2k – 2 ] = 2k
d 2k [ k2 – 2 (k2 – 2k + 1) + (k2 – 4k + 4)] = 2k
d (2) = 1
1
d=
2
Particular solution is 1 2 k
2
k 2 (i.e.) k2 2k – 1
Hence the general solution is
S(k) = (b1 + b2k) 2k + (12 + 3k) + k2 2k – 1
S(0) = 1 1 = b1 + 12
b1 = – 11 ------------- (1)
S(1) = 1 1 = 2(b1 + b2) + 15 + 1
1 = 2(– 11+ b2) + 16 [ using (1)]
2b2 = 22 – 16 + 1
7
b2 =
2
S(k) = (– 11+ 7
2
k) 2k + (12 + 3k) + k2 2k – 1
(i.e.) S(k) = ( k2 + 7k – 22) 2k – 1 + (12 + 3k)
33. Solve : Sk – 3Sk – 1 – 4Sk – 2 = 4k
Sol. The characteristic equation is
r2 – 3r – 4 = 0
(r + 1)(r – 4) = 0
r = – 1, 4
Homogeneous solution is Sk = b1.4k + b2.(– 1)k
20
M.A.M COLLEGE OF ENGINEERING DISCRETE MATHEMATICS UNIT II
Particular solution is 4
5
k
k4k (i.e.) 4k + 1
5
Hence the general solution is
k k+1
Sk = b1.4k + b2.(– 1)k + 4
5
34. Solve S(k) – 2S(k – 1) + S(k – 2) = 2 with S(0) = 25, S(1) = 16.
Sol. The characteristic equation is
r2 –2r + 1 = 0
(r – 1)(r – 1) = 0
r = 1, 1
Homogeneous solution is S(k) = (b1 + b2k) 1k = b1 + b2k
Let S(k) = d be the particular solution,
then d – 2d + d = 2
0 = 2, which is a contradiction.
Now, let S(k) = dk be the particular solution,
then dk – 2d(k – 1) + d(k – 2) = 2
d[ k – 2k + 2 + k – 2] = 2
0 = 2, which is also a contradiction.
2
So, let S(k) = dk be the particular solution,
then dk2 – 2d(k – 1)2 + d(k – 2)2 = 2
d[ k2 – 2k2 + 4k – 2 + k2 – 4k + 4] = 2
2d = 2
d=1
Particular solution is k2.
Hence the general solution is
S(k) = b1 + b2k + k2
S(0) = 25 25 = b1
S(1) = 16 16 = b1 + b2 + 1
16 = 25 + b2 + 1
b2 = – 10
S(k) = 25 – 10k + k2
(i.e.) S(k) = (k – 5)2.
35. Find the generating function of the Fibonacci sequence.
Sol. The Fibonacci sequence is
F(n) = F(n – 1) + F(n – 2) with F(0) = F(1) = 1
F(n) – F(n – 1) – F(n – 2) = 0, n 2
F (n) z n F (n 1) z n F (n 2) z n 0
n2 n2 n2
21
M.A.M COLLEGE OF ENGINEERING DISCRETE MATHEMATICS UNIT II
n 0 n2 n2
[G( F , z ) 1 z ] z F (n 1) z n1 F (0) z 2 G( F , z ) 0
n1
[G( F , z) 1 z] zG( F , z ) 1 z G( F , z ) 0
2
G ( F , z ) (1 z z 2 ) 1 z z
1
(i.e.) G ( F , z )
1 z z2
36. Solve S(n + 1) – 2S(n) = 4n , S(0) = 1, n 0 by using generating function.
Sol. S(n + 1) – 2S(n) – 4n = 0, n 0
1
z n 0
S (n 1) z 2 S (n) z 4n z n 0
n1
n 0
n
n 0
1
G(S , z ) S (0) 2 G(S , z ) (1 4 z )1 0
z
z
[G ( S , z ) 1] 2 zG( S , z ) 0
1 4z
z
G ( S , z ) (1 2 z ) 1
1 4z
1 3z
1 4z
1 3z
G(S , z)
(1 2 z )(1 4 z )
1 3z A B
(1 2 z )(1 4 z ) 1 2 z 1 4 z
1 3 z A(1 4 z ) B(1 2 z )
1 3
put z 1 A(1 2)
2 2
1 1
A A
2 2
1 3 1
put z 1 B(1 )
4 4 2
1 B 1
B
4 2 2
1 3z 1/ 2 1/ 2
G(S , z)
(1 2 z )(1 4 z ) 1 2 z 1 4 z
1 1
(1 2 z ) 1 (1 4 z ) 1
2 2
1 1
(2 z ) (4 z ) n
n
2 n 0 2 n 0
Hence the solution is S(n) = Coefficient of zn in G(S,z)
1 n 1 n
= .2 .4
2 2
(i.e.) S (n) 2n1 2.4n1
22
M.A.M COLLEGE OF ENGINEERING DISCRETE MATHEMATICS UNIT II
S (k ) z
k 1
k
5 z S (k 1) z
k 1
k 1
9 z 2 k z k 0
k 1
k
k 1
G(S , z ) S (0) 5 z G( S , z ) 9 z z k 1
2 z k z k 1 0
k 1 k 1
38
3 5B
9
38 13
5B 3 B
9 9
38 / 9 13 / 9 1/ 3
G(S , z)
1 5 z 1 z (1 z ) 2
38 13 1
(1 5 z ) 1 (1 z ) 1 (1 z ) 2
9 9 3
38 13 k 1
9 k 0
(1) (5 z ) z (k 1) z k
k k
9 k 0 3 k 0
Hence the solution is
S(k) = Coefficient of zk in G(S,z)
38 13 1
= (1) k 5k .1 (k 1)
9 9 3
38 k 16
(i.e.) S (k ) (1) k 5k
9 3 9
23
M.A.M COLLEGE OF ENGINEERING DISCRETE MATHEMATICS UNIT II
2 n2
y z y n1 z 6 y n z n 0
n2 n 1
z n 0 z n 0 n 0
1 1
2
[ y 2 z 2
y 3 z 3
......] [ y1 z y 2 z 2 ......] 6 G ( y, z ) 0
z z
1
G ( y , z ) y 0 y 1 z
1
G ( y, z ) y0 6 G( y, z ) 0
z2 z
1
G ( y , z ) 2 z
1
G ( y, z ) 2 6 G( y, z ) 0
z2 z
G ( y, z ) 2 z z G ( y, z ) 2 z 6 z 2G ( y, z ) 0
G ( y, z ) (1 z 6 z 2 ) 2 z
2 z
G ( y, z )
(1 3z )(1 2 z )
2 z A B
(1 3z )(1 2 z ) 1 3z 1 2 z
2 z A(1 2 z ) B(1 3z )
1 1 3
put z 2 B(1 )
2 2 2
5 5B
B 1
2 2
1 1 2
put z 2 A(1 )
3 3 3
5 5A
A 1
3 3
2z 1 1
G ( y, z )
(1 3z )(1 2 z ) 1 3z 1 2 z
(1 3z ) 1 (1 2 z ) 1
(3z ) n (1) n (2 z ) n
n 0 n 0
F (n) z F (n 1) z F (n 2) z
n2
n
n2
n
n2
n
0
[G( F , z ) F (0) zF (1)] z F (n 1) z n 1
z 2
F (n 2) z n2
0
n2 n2
24
M.A.M COLLEGE OF ENGINEERING DISCRETE MATHEMATICS UNIT II
1
1 5
n 1
1 5
n 1
z
n
z
n
5 n 0 2 n 0 2
n
Hence F(n) = Coefficient of z in G(F,z)
1 1 5 1 5
n 1 n 1
5 2
2
b1 b2 0 -------------(4)
(2) 2 0 5(b1 b2 )
2 ---------------- (5)
b1 b2
5
2 1
(4) + (5) 2b1 b1
5 5
1
b
From (4), 2
5
n n
1 1 5 1 1 5
fn
5 2 5 2
1 1 5 1 5
n n
(i.e.) f n
5 2 2
41. Solve the recurrence relation fn = fn – 1 + fn – 2 , n > 2 with f1 = 1, f2 = 1 by
using generating function method.
Given fn – fn – 1 – fn – 2 = 0, n > 2
Then f
n 3
n z n 1
f n 1 z
n 3
n 1
f n 2 z n1 0
n 3
26
M.A.M COLLEGE OF ENGINEERING DISCRETE MATHEMATICS UNIT II
[G( f , z ) f1 f 2 z ] z f n1 z n2
z 2
f n2 z n 3 0
n 3 n 3
5 2 2
27
M.A.M COLLEGE OF ENGINEERING DISCRETE MATHEMATICS UNIT II
42. Use the method of generating function to solve the recurrence relation
S(n + 1) – 8S(n) + 16S(n – 1) = 4n, n 1 with S(0) = 1, S(1) = 8.
Sol. S(n + 1) – 8S(n) + 16S(n – 1) – 4n = 0, n 1
S (n 1) z n 8 S (n) z n 16 S (n 1) z n 4 n z n 0
n 1 n 1 n 1 n 1
1
z n1
S (n 1) z 8 S (n) z 16 z S (n 1) z 4 z 4 n 1 z n1 0
n 1
n 1
n
n 1
n 1
n 1
1
G ( S , z ) S (0) zS (1) 8[ G ( S , z ) S (0)] 16 z G ( S , z ) 4 z (1 4 z ) 1 0
z
1
G ( S , z ) 1 8 z 8[ G ( S , z ) 1] 16 z G ( S , z ) 4 z (1 4 z ) 1 0
z
1 1 4z
G ( S , z ) 8 16 z 8 8
z z 1 4z
1 8 z 16 z 2 4z 1
G(S , z)
z 1 4z z
1 8 z 16 z 2 4 z 2 1 4 z
G(S , z) z (1 4 z )
z
4z 2 4z 1
G(S , z)
(1 4 z ) 3
4z 2 4z 1 A B C
(1 4 z ) 3
1 4 z (1 4 z ) 2
(1 4 z ) 3
4 z 2 4 z 1 A(1 4 z ) 2 B(1 4 z ) C
1 4
put z 11 0 0 C
4 16
1
C
4
Coeff . of z , 4 16 A
2
1
A
4
Coeff . of z, 4 8 A 4 B
1 1 1
1 2 B B 1
4 2 2
1/ 4 1/ 2 1/ 4
G(S , z)
1 4 z (1 4 z ) 2 (1 4 z ) 3
1 1 1
(1 4 z ) 1 (1 4 z ) 2 (1 4 z ) 3
4 2 4
1
1
1 (n 1)(n 2)
(4 z ) (n 1)(4 z )
n n
(4 z ) n
4 n 0 2 n 0 4 n 0 2
Hence the solution is S(n) = Coefficient of zn in G(S,z)
1 1 1 (n 1)(n 2) n
= .4 (n 1)4
n n
4
4 2 4 2
n 2 7n 8 n
(i.e.) S (n) 4
8
28
M.A.M COLLEGE OF ENGINEERING DISCRETE MATHEMATICS UNIT IV 1
DISCRETE MATHEMATICS
UNIT IV – GROUP THEORY
PART – A
1. Define Group.
Sol. A non empty set G together with a binary operation is called a group if the following
conditions are satisfied.
i) a b G a,b G ( Closure)
ii) a (b c) = (a b) c a,b,c G ( Associative )
iii) There exists an element e G such that
a e = e a = a a G ( Identity )
iv) There exists an element a G such that
a a = a a = e a G ( Inverse ).
3. Define subgroup.
Sol. A subset H of a group G is called a subgroup of G if H itself forms a group under the
operation of G.
6. Define Semigroup and monoid. Give an example of a semigroup which is not a monoid.
Sol. Semigroup: A non empty set S together with a binary operation is called a semigroup if
the following conditions are satisfied.
i) a b S a,b S ( Closure)
ii) a (b c) = (a b) c a,b,c S ( Associative )
Monoid : A non empty set M together with a binary operation is called a monoid if the
following conditions are satisfied.
i) a b M a,b M ( Closure)
ii) a (b c) = (a b) c a,b,c M ( Associative )
iii) There exists an element e M such that
a e = e a = a a M ( Identity )
Example : (N, +) is a semigroup but not monoid
For, we know that N is the set of all positive integers
(i.e.) N = {1,2,3,…….}
Sum of any two positive integers is again a positive integer. Hence N is closed under
addition. Also usual addition is always associative.
N is a semigroup.
M.A.M COLLEGE OF ENGINEERING DISCRETE MATHEMATICS UNIT IV 2
= b-1 e b
= b-1 b
=e
(a b) = b a
-1 -1 -1
14. If (G,) is an abelian group, prove that (a b)2 = a2 b2 for all a,b G.
Sol. Given that G is abelian group. a b = b a a,b G.
Then (a b)2 = (a b) (a b)
= a (b a) b
= a (a b) b
= (a a) (b b)
= a2 b2.
15. Show that if every element in a group is its own inverse, then the group must be
abelian.
Sol. Let a,b G.
Since each and every element has its own inverse, we have
a = a-1
and b = b-1
Also as a b G, a b = (a b)-1
= b-1 a-1
= b a
Hence G is abelian.
16. In a group, Show that an element a G is such that a2 = e, a e if and only if a = a-1.
Sol. Let a G, a e
Assume a2 = e
a.a = e
a (a.a) = a-1.e
-1
(a-1a).a = a-1
e.a = a-1
a = a-1
Conversely, let a = a-1
a.a = a. a-1
a2 = e.
M.A.M COLLEGE OF ENGINEERING DISCRETE MATHEMATICS UNIT IV 4
17. Prove that if G is multiplicative group and for all a G, a2 = e then G is abelian.
Sol. Given a2 = e for all a G.
a.a = e
a (a.a) = a-1.e
-1
(a-1.a).a = a-1
e.a = a-1
a = a-1.
Similarly, as b G, b = b-1
Now as a.b G, a.b = (a.b)-1
= b-1. a-1
= b.a
G is abelian.
18. Check whether {0,2,4,6,8} under addition mod 10 is a group.
Sol.
+10 0 2 4 6 8
0 0 2 4 6 8
2 2 4 6 8 0
4 4 6 8 0 2
6 6 8 0 2 4
8 8 0 2 4 6
From the above table we can easily see that the given set is closed under addition mod 10.
0 is the identity element and inverse of 0,2,4,6,8 are 0,8,6,4,2 respectively.
Hence {0,2,4,6,8} is a group under addition mod 10.
19. Let ( A,) be a monoid such that for every x in A, x x = e, where e is the identity
element. Show that ( A,) is an abelian group.
Sol. Given x x = e
x -1 = x
For x ,y A, x y = x -1 y-1
= (y x )-1
= y x
Hence A is abelian.
20.Prove that the only idempotent element of a group is its identity element.
Sol. If ‘a’ is an idempotent element then we have
aa = a
Now, e = a-1 a
= a-1 (a a)
= (a-1 a) a
= e a
= a.
Hence the only idempotent element of G is its identity element.
22. Find all the cosets of the subgroup H = {1, -1} in G = {1, -1, i , -i} with the operation
multiplication.
Sol. Right coset of H in G Left coset of H in G
H1 = {1, -1} 1H = {1, -1}
H(-1) = {-1, 1} (-1)H = {-1, 1}
Hi = {i , -i} iH = {i , -i}
H(-i) = {-i, i} (-i)H = {-i, i}
23. Find the left cosets of { 0, 3} in the addition modulo group (Z6 , +6 ).
Sol. Let Z6 = { 0, 1, 2, 3, 4, 5 } be a group.
H = { 0, 3} be a subgroup of (Z6 , +6 ).
The left cosets of H are
0+H = { 0, 3}
1 +H = { 1 , 4}
2+H = { 2, 5 }
3 +H = { 3, 0 }
4+H = { 4, 1}
5 +H = { 5, 2 }
0+H = 3 +H , 1+H = 4+H and 2+H = 5 +H are the three distinct left cosets
of H in (Z6 , +6 ).
24. Define normal subgroup and show that every subgroup of an abelian group is normal.
Sol. Normal subgroup
A subgroup (N, ) of a group (G, ) is said to be a normal subgroup of G, if
for every g G and for every n N, gng-1 N.
Let (G, ) be an abelian group and (N, ) be a subgroup of G.
Let g G and let n N
gng-1 = (gn)g-1
= (ng)g-1
= n(gg-1)
= ne
= n N
g G and n N, gng-1 N.
Hence (N, ) is a normal subgroup.
25. Prove that the intersection of two normal subgroups is a normal subgroup.
Sol. Let N1 and N2 be any two normal subgroups of a group G.
N1 and N2 are subgroups of G.
Then atleast the identity element e N1 and e N2.
e N1 N2
Thus N1 N2 is a non empty subset of G.
Let a,b N1 N2 a,b N1 and a,b N2
a b-1 N1 and a b-1 N2
a b-1 N1 N2
N1 N2 is a subgroup of G.
Let g G , h N1 N2
g G, h N1 and h N2
g G,h N1 and g G,h N2
ghg-1 N1 and ghg-1 N2
ghg-1 N1 N2
N1 N2 is a normal subgroup of G.
M.A.M COLLEGE OF ENGINEERING DISCRETE MATHEMATICS UNIT IV 6
33. When an element in a ring is said to be zero divisor? Give an example of a ring without
zero divisors.
Sol. An element ‘a’ in a ring (R, +, .) is said to be zero divisor if a 0 and b 0 in R
such that a.b = 0
Example : (Z5 , +5 , .5 ) where p is any prime number.
35. If S denotes the set of positive integers 100, for x,y S, define x y = min{x,y}.
Verify whether (S, ) is a monoid assuming that is associative.
Sol. 100 is the identity element in (S, ), since x 100 = min{x,100} = x since x 100 for all
x S. Hence (S, ) is a monoid.
36. If H is a subgroup of the group G, among the right cosets of H in G, Prove that there is
only one subgroup viz., H.
Sol. Let Ha be a right coset of H in G where a G. If Ha is a subgroup of G, then e Ha.
So e Ha He = Ha
H = Ha.
38. In the group {2,4,6,8} under multiplication modulo 10, what is the identity element?
Sol. ×10 2 4 6 8
2 4 8 2 6
4 8 6 4 2
6 2 4 6 8
8 6 2 8 4
39. In the group {1,5,7,11} under multiplication modulo 12, what is the inverse of 5?
Sol.
×12 1 5 7 11
1 1 5 7 11
5 5 1 11 7
7 7 11 1 5
11 11 7 5 1
46. Let x y = lcm(x,y), where is an operation on the set of positive integers which are
greater than zero. Show that is commutative and associative.
Sol. Clearly x y = lcm(x,y)
= lcm(y,x)
= y x
Thus is commutative.
Also (x y) z = lcm[(x y),z]
= lcm [lcm(x,y),z]
= lcm [x, lcm(y,z)]
= lcm [x, (y z)]
= x (y z)
Thus is associative.
M.A.M COLLEGE OF ENGINEERING DISCRETE MATHEMATICS UNIT IV 9
1 2 3 4 5 6
48. Define odd and even permutation. Test whether p is odd or even
2 1 4 6 3 5
permutation.
Sol. A permutation is said to be even or odd permutation if p can be expressed as the product of
even or odd number of transpositions respectively.
1 2 3 4 5 6
p
2 1 4 6 3 5
= (1 2) (3 4 6 5)
= (1 2) (3 4) (3 6) (3 5)
= a product of four(even) transpositions
p is an even permutation.
49. What is meant by ring with unity?
Sol. If (R, . ) is a monoid, then the ring (R, +, × ) is called a ring with identity or unity.
1 2 3 4 1 2 3 4
50. If f , g find f–1gf and gfg–1
2 3 4 1 3 1 4 2
1 2 3 4 1 2 3 4
Sol. f 1 , g 1
4 1 2 3 2 4 1 3
1 2 3 4
g f
1 4 2 3
1 2 3 4
f 1 g f f 1 g f
4 3 1 2
1 2 3 4
g f g 1 g f g 1
4 3 1 2
PART – B
1. Show that the set of all non-zero real numbers is an abelian group under defined by
ab
a b = .
2
Sol. Let R be the set of all non-zero real numbers.
For any a,b R, a b = R
ab
2
R is closed under .
Let a,b,c R
bc abc
a (b c) = a =
2 4
ab abc
and (a b) c = c =
2 4
R is associative under .
If e is the identity element then a e = a
ae
= a e = 2.
2
2 is the identity element.
If a’ is the inverse of a then a a’ = e
aa 4
= 2 a
2 a
Inverse of a is 4
a
ab ba ab
Finally, a b = and b a =
2 2 2
Commutative property is satisfied.
Hence R is an abelian group under .
a b
2. Prove that the set of all non-singular matrices forms an abelian group with
b a
respect to matrix multiplication.
a b
Sol. Let G be the set of all matrices of the form with a 2 b 2 0.
b a
a b c d
Let , G
b a d c
a b c d ac bd ad bc
Then = G with (a 2 b 2 )(c 2 d 2 ) 0.
b a d c ( ad bc ) ac bd
G is closed.
Also matrix multiplication is associative.
1 0
Let G
0 1
a b 1 0 1 0 a b a b
Now = =
b a 0 1 0 1 b a b a
1 0
G is the identity element.
0 1
c d a b
Let be the inverse of
d c b a
M.A.M COLLEGE OF ENGINEERING DISCRETE MATHEMATICS UNIT IV 11
a b c d 1 0
Now =
b a d c 0 1
ac bd ad bc 1 0
=
(ad bc) ac bd 0 1
Comparing we get, ac–bd = 1
and bc+ad = 0
a b
By solving, we get c 2 ,d 2
a b 2
a b2
a b
a b
The inverse of
2
is a b2 a b2
2
a
b a 2
b
a b2 a2 b2
G is a group.
a b c d ac bd ad bc
Now =
b a d c (ad bc) ac bd
c d a b ac bd ad bc
and =
d c b a (ad bc) ac bd
Commutative property is satisfied.
Hence G is an abelian group.
3. If S is the set of all ordered pairs (a,b) of real numbers with the binary operation
defined by (a,b) (c,d) = (a+c, b+d) where a,b,c,d are real, Prove that (S, ) is a
commutative group.
Sol. For all a,b,c,d S, (a,b) (c,d) = (a+c, b+d) S
(S, ) is closed.
{(a,b) (c,d)} (e,f) = (a+c, b+d) (e,f)
= { (a+c)+e, (b+d)+f }
= { a+(c+e), b+(d+f) }
= (a,b) (c+e, d+f)
= (a,b) { (c,d) (e,f) }
(S, ) is associative.
Let (e1, e2) be the identity element of (S, ).
For any (a,b) S, (a,b) ( e1, e2) = (a,b)
(a+e1, b+e2) = (a,b)
a+e1 = a, b+e2 = b e1 = 0, e2 = 0
(0,0) is the identity element of (S, )
Let the inverse of (a,b) be (c,d), if it exists.
Then (a,b) (c,d) = (0,0)
(a+c, b+d) = (0,0)
a+c = 0, b+d = 0 c = – a, d = –b
The inverse of (a,b) is (–a, –b)
Hence (S, ) is a group.
Also (a,b) (c,d) = (a+c, b+d)
(c,d) (a,b) = (c+a, d+b) = (a+c, b+d)
Hence (S, ) is a commutative group.
4. Show that the set N of natural numbers is a semigroup under the operation
x y = max(x,y). Is it a monoid?
Sol. Let N = {1,2,3,……} be the set of natural numbers.
Clearly (N, ) is closed because x y = max(x,y) N.
Now, (x y) z = max{x y, z}
= max{max(x,y), z}
M.A.M COLLEGE OF ENGINEERING DISCRETE MATHEMATICS UNIT IV 12
= max{x, max(y,z)}
= max{x, y z}
= x (y z)
is associative
Hence (N, ) is a semigroup.
If e is the identity element then a e = a
max(a,e) = a for all a N.
e = 0, but 0 N.
Hence (N, ) is not a monoid.
5. Determine whether H = {0,5,10} and K = {0,4,8,12} are subgroups of a group {Z15, +15}.
Sol. For H For K
+15 0 5 10 +15 0 4 8 12
0 0 5 10 0 0 4 8 12
5 5 10 0 4 4 8 12 1
10 10 0 5 8 8 12 1 5
12 12 1 5 9
Clearly H is closed.
0 is the identity element.
The inverse of 5 and 10 are 10 and 5 respectively.
Hence H is a subgroup.
Here K is not a subgroup since K is not closed.
[0] 0 0 0 0 0 0
[1] 0 1 2 3 4 5
[2] 0 2 4 0 2 4
[3] 0 3 0 3 0 3
[4] 0 4 2 0 4 2
[5] 0 5 4 3 2 1
From the above table, it is clear that ×6 is closed and also ×6 is associative.
From the 2nd row and the 2nd column, we see that [1] is the identity element
of [Z6, ×6].
Hence { Z6, ×6 } is a monoid.
From the table we see that [1] ×6 [1] = [1] and [5] ×6 [5] = [1]
The element [1] and [5] alone are invertible and their inverses are
[1] and [5] respectively.
M.A.M COLLEGE OF ENGINEERING DISCRETE MATHEMATICS UNIT IV 13
7. Let S be a non-empty set and P(S) denote the power set of S. Verify whether
( P(S), ∩) is a group.
Sol. Intersection of any two subsets of S belongs to S. Hence ∩ is closed.
For any three subsets in S, ∩ is associative.
If A is any subset of S, then A∩S = S∩A = A.
S is the identity element for the operation ∩.
Hence ( P(S), ∩) is a monoid with identity S.
Let A P(S). We have to find B P(S) such that A∩B = S. This is possible if and only if
A = S and B = S. Hence S is the only element of P(S) having inverse.
Inverse does not exists for any element of P(S) except S.
Hence ( P(S), ∩) is not a group.
8. Prove that every group of order 3 is cyclic ( so is abelian).
Proof. Let G = {e,a,b} be given group of order 3.
Claim : G is cyclic.
Since G is a group, we have ab G by closure law.
ab = e (or) ab = a (or) ab = b.
If ab = a then b = e.
If ab = b then a = e.
Hence ab = e.
Also a2 G
a2 = e (or) a2 = a (or) a2 = b.
a2 = e
a2 = ab
a = b, which is a contradiction.
Also a2 a.
The only possibility a2 = b.
Thus G = {e ,a , a2 }
But a3 = a.a2= ab = e.
G = {a, a2, a3 = e }.
Hence G is a cyclic group whose generator is ‘a’.
Hence G is abelian. ( as every cyclic group is abelian).
9. Every subgroup of a cyclic group is cyclic.
Proof. Let G be a cyclic group generated by a.
(i.e.) G = {an / n Z}.
Let H be a subgroup of G.
We have to prove that H is a cyclic group.
Since H is a subgroup of G, the element of H are integral powers of a.
If as H then a–s H ( since H is a subgroup )
Therefore H contains elements which are positive as well as negative integral powers of a.
Let m be the least positive integer such that am H.
Then we shall prove that H is a cyclic group generated by am.
Let at be any arbitrary element of H. By division algorithm, there exists integers q and r
such that t = mq + r where 0 r < m. [either r = 0 (or) 0 < r < m ]
at = amq+r
= amq.ar
ar = at a–mq
ar = at-mq
Since am H amq H
at, amq H at a–mq H
at-mq H
ar H
M.A.M COLLEGE OF ENGINEERING DISCRETE MATHEMATICS UNIT IV 14
11. Show that for any commutative monoid (M, ), the set of idempotent
elements of M forms a submonoid.
Proof. Let (M, ) be a commutative monoid and S be the set of idempotent elements.
Claim : S is a submonoid of M.
Clearly S M.
Since the identity element e M, e e = e which is an idempotent element.
Hence e S and S
Let a,b S (i.e.) a and b are idempotent elements.
(i.e.) a a = a and b b = b.
Now, (a b) (a b) = a (b a) b
= a (a b) b
= (a a) (b b)
= a b
a b is an idempotent element which belongs to S.
(i.e.) S is closed under
Also S is associative ( since S M) and e S.
Hence (S, ) is a submonoid of (M, ).
M.A.M COLLEGE OF ENGINEERING DISCRETE MATHEMATICS UNIT IV 15
If ab H , b H (ab)b-1 H
a H , which is a contradiction.
If ab K , a K a-1(ab) K
b K , which is a contradiction.
If H K is a subgroup then either H K or K H.
Conversely, if H K then H K = K is a subgroup of G.
Similarly, if K H then H K = H is a subgroup of G.
18. Any two right (left) cosets of H in G are either disjoint or identical.
Proof. Let Ha and Hb be two right cosets of a subgroup H of a group G.
For a,b G we have to prove that either Ha Hb = (or) Ha = Hb.
M.A.M COLLEGE OF ENGINEERING DISCRETE MATHEMATICS UNIT IV 17
Suppose that Ha Hb
Then there exists an element x Ha Hb.
x Ha and x Hb
x = h1a and x = h2b for h1, h2 H
h1a = h2b
h1-1(h1a) = h1-1(h2b)
a = (h1-1h2) b
a = h3b where h3 = h1-1h2 H
Now, Ha = H(h3b)
= (Hh3)(Hb)
= (H)(Hb) [ since h3 H iff Hh3 = H ]
= Hb
(i.e.) Ha = Hb.
19. State and prove Lagrange’s theorem.
If G is a finite group and H is a subgroup of G, then O(H) divides O(G).
Proof. Since G is a finite group, O(G) = n.
Let H be the subgroup of G, therefore H is also finite. (i.e.) O(H) = m (m n)
We must prove that m is the divisor of n.
n
(i.e.) k where k is an integer.
m
Let H = {h1, h2, …..hm} are the m members of H.
For a G, Ha is the right coset of H in G.
Ha = { h1a, h2a, …..hma}.
Since there is a one to one correspondence between Ha and H, we have
O(Ha) = O(H) = m.
Since we know that any two right cosets of H in G are either disjoint (or) identical,
the number of distinct right cosets of H in G will be finite, say k.
The union of these k distinct right cosets of H in G is equal to G.
Hence if Ha1, Ha2, ……Hak are the distinct right cosets of H in G, then
G = Ha1 Ha2 Ha3 …… Hak
O(G) = O(Ha1) + O(Ha2) + …….. +O(Hak)
n = m + m + ……..+ m (k times)
n = km
n
k
m
O(G )
k
O( H )
Hence O(H) is the divisor of O(G).
20. The order of every element of a finite group G is a divisor of the order of the group.
Proof. Since G is finite, O(G) = n and O(a) = m.
Let H = {ap , p Z} be a cyclic subgroup generated by a.
Since O(a) = m, then H will have m elements. O(H) = O(a) = m
By Lagrange’s theorem, O(H) divides O(G)
(i.e.) O(a) divides O(G).
21. If G is a finite group and a G then aO(G) = e.
Proof. Let O(G) = n and O(a) = m then am = e.
Since the order of an element divides the order of the group, we get n = km.
Now, aO(G) = an = akm
= (am)k
= ek
= e.
M.A.M COLLEGE OF ENGINEERING DISCRETE MATHEMATICS UNIT IV 18
= f(a) f(b-1)
= f(a b-1) f(G).
For any a , b f(G) a ( b )-1 f(G).
Hence f(G) is a subgroup of G .
g h
Ka
Kb
Kc G
,
K
f(a) e′ = e′ f(b)
f(a) = f(b)
h(Ka) = h(Kb)
h is well defined.
Claim : h is a homomorphism
Let Ka, Kb
G
K
Now, h(Ka Kb) = h[K(a b)]
= f(a b)
= f(a) f(b)
= h(Ka) h(Kb)
h is a homomorphism.
Claim : h is one to one
Let h(Ka) = h(Kb)
f(a) = f(b)
f(a) f(b-1) = f(b) f(b-1)
f(a b-1) = f(b b-1) = f(e) = e′
f(a b-1) = e′
a b-1 K
Ka = Kb.
h is one to one.
M.A.M COLLEGE OF ENGINEERING DISCRETE MATHEMATICS UNIT IV 21
Claim : h is onto
Let y be an element of G′. Since f is onto, there exists an element a G such that f(a) = y.
By definition, h(Ka) = f(a)
h(Ka) = y.
Thus h is onto.
G
Hence h is an isomorphism of onto G′.
K
(i.e.)
G
G′.
K
28. Let (S, ), (T, ) and (V, ) be semigroups and f : S T and g :T V be semigroup
homomorphism. Then g f : S V is a semigroup homomorphism from (S, ) to (V, ).
Proof. Let a,b S.
Since f : S T is a semigroup homomorphism,then
f(a b) = f(a) f(b)
where f(a), f(b) (T, ).
Since g : T V is a semigroup homomorphism, then for any f(a), f(b) T,
g[f(a) f(b)] = g(f(a)) g(f(b))
Now consider the composition g f : S V
(g f) (a b) = g[f(a b)]
= g[f(a) f(b)]
= g(f(a)) g(f(b))
= (g f )(a) (g f )(b).
g f : S V is a semigroup homomorphism.
29. Show that the mapping g from the algebraic system (S, +) to the system (T, ×) defined
by g(a) = 3a, where S is the set of all rational numbers under addition + and T is the set
of non-zero real numbers under multiplication operation ×, is a homomorphism but
not an isomorphism.
Sol. Let g(a) = 3a for any a S
Let a,b S
g(a + b) = 3a+b = 3a. 3b = g(a).g(b)
g is an homomorphism.
Let g(a) = g(b)
Then 3a = 3b
a = b.
g is one-to-one.
Range of g has no negative numbers (For negative numbers there is no pre-image)
g is not onto.
Hence g is not an isomorphism.
30. Let G be a group and a G. Show that the map f : G G defined by f(x) = axa–1 for all
x G is an isomorphism.
Sol. If x,y G then f(x) f(y) = (axa–1)( aya–1)
= a x (a–1a) ya–1
= a x ey a–1
= a(xy)a–1
= f(xy)
f is a homomorphism.
If f(x) = f(y)
then axa–1 = aya–1
xa–1 = ya–1
x = y.
f is one-to-one.
M.A.M COLLEGE OF ENGINEERING DISCRETE MATHEMATICS UNIT IV 22
31. If S = N×N, the set of ordered pairs of positive integers with the operation defined
a
by (a,b) (c,d) = (ad + bc, bd) and if f : (S, ) (Q, +) is defined by f (a, b) , show
b
that f is a semi-group homomorphism.
Sol. Given (a,b) (c,d) = (ad + bc, bd) S
(i.e) S is closed.
{(a,b) (c,d)} (e,f ) = (ad + bc, bd) (e,f )
= {(ad + bc)f + bde, bdf}
= (adf + bcf + bde, bdf )
(a,b) {(c,d) (e,f )} = (a,b) (cf + de, df )
= {adf + b(cf + de), bdf}
= (adf + bcf + bde, bdf )
S is associative. Hence S is a semi-group.
Now, f ((a, b) (c, d )) f (ad bc, bd )
ad bc
bd
a c
b d
f ( a , b ) f (c, d )
f is a semi-group homomorphism.
32. Define even and odd permutation. Show that the permutations
1 2 3 4 5 6 7 8 1 2 3 4
f and g are respectively even and odd.
2 5 7 8 6 1 4 3 4 3 1 2
Sol. Even permutation - product of an even number of transpositions.
Odd permutation - product of an odd number of transpositions.
1 2 3 4 5 6 7 8
f
2 5 7 8 6 1 4 3
= (1 2 5 6) (3 7 4 8)
= (1 2) (1 5) (1 6) (3 7) (3 4) (3 8)
= product of an even number of transpositions.
Hence f is even permutation.
1 2 3 4
g
4 3 1 2
= (1 4 2 3)
= (1 4) (1 2) (1 3)
= product of an odd number of transpositions.
Hence g is odd permutation.
M.A.M COLLEGE OF ENGINEERING DISCRETE MATHEMATICS UNIT IV 23
1 2 3 4 5 1 2 3 4 5
33. If f and h 5 2 4 3 1 are permutations on the set
2 4 5 1 3
A = {1,2,3,4,5} find a permutation g on A such that f g h f .
1
Sol. g f h f .
1 1 2 3 4 5 1 2 3 4 5
f , h f
4 1 5 2 3 2 3 1 5 4
1
g f h f
1 2 3 4 5
1 5 4 3 2
1 2 3 4 1 2 3 4
34. If f and g are permutations, prove that
3 2 1 4 2 3 4 1
( g f ) 1 f 1 g 1 .
1 1 2 3 4 1 2 3 4
Sol. f , g 1
3 2 1 4 4 1 2 3
1 2 3 4
f 1 g 1
4 3 2 1
1 2 3 4 1 2 3 4
g f then ( g f ) 1
4 3 2 1 4 3 2 1
(g f ) 1
f 1 g 1
35. Show that the set of all permutations of three distinct elements with right
composition of permutation is a permutation group.
Sol. Consider the set S = {1,2,3}
Then there are 3! = 6 possible permutations.
Let S3 = { p1, p2, p3, p4, p5, p6 } where
1 2 3 1 2 3 1 2 3 1 2 3
p1 , p 2 , p 3 , p 4 ,
1 2 3 2 1 3 3 2 1 1 3 2
1 2 3 1 2 3
p 5 , p 6
2 3 1 3 1 2
Then according to right composition of permutation ,
1 2 3 1 2 3 1 2 3
p3 p5 p4
3 2 1 2 3 1 1 3 2
1 2 3 1 2 3 1 2 3
p4 p6 p3
1 3 2 3 1 2 3 2 1
1 2 3 1 2 3 1 2 3
p2 p5 p3
2 1 3 2 3 1 3 2 1
1 2 3 1 2 3 1 2 3
p3 p6 p2
3 2 1 3 1 2 2 1 3
1 2 3 1 2 3 1 2 3
p6 p5 p1
3 1 2 2 3 1 1 2 3
Similarly we get the composition table,
M.A.M COLLEGE OF ENGINEERING DISCRETE MATHEMATICS UNIT IV 24
p1 p2 p3 p4 p5 p6
p1 p1 p2 p3 p4 p5 p6
p2 p2 p1 p5 p6 p3 p4
p3 p3 p6 p1 p5 p4 p2
p4 p4 p5 p6 p1 p2 p3
p5 p5 p4 p2 p3 p6 p1
p6 p6 p3 p4 p2 p1 p5
= fa(a–1x)
= a a–1x
= ex
= fe(x)
Thus the inverse of fa is f a K. 1
n!
37. Let A = {a1,a2,…..,an} be a finite set with n elements, n 2. There are even
2
n!
permutations and odd permutations.
2
Sol. Let An be the set of all even permutations of A, and let Bn be the set of all odd permutations.
We shall define a function f : An Bn which we show is one to one and onto, and this will
show that An and Bn have the same number of elements.
Since n 2, we can choose a particular transposition qo of A, say that qo = (an-1 an).
We now define the function f : An Bn by f(p) = qop, p An.
Observe that if p An , then p is an even permutation, so qop is an odd permutation and
thus f(p) Bn .
Suppose that p1 and p2 are in An and f(p1) = f(p2).
Then qo p1 = qo p2
qo(qo p1) = qo(qo p2)
(qo qo) p1 = (qo qo) p2
IA p1 = IA p2
p1 = p2
f is one to one.
Now let q Bn then qoq An and f(qoq) = qo(qoq)
= (qo qo)q
= IAq
=q
f is onto.
Since f : An Bn is one to one and onto, we conclude that An and Bn have
the same number of elements. Note that An Bn = . Also |An Bn| = n!
[An Bn = Sn , the symmetric group of degree n and | Sn | = n! ]
Now, |An Bn| = |An| + |Bn| – |An Bn|
n! = |An| + |An| – 0
= 2 |An|
n!
|An| = |Bn| = .
2
M.A.M COLLEGE OF ENGINEERING DISCRETE MATHEMATICS UNIT IV 26
[0] 0 1 2 3 4 5 6
[1] 1 2 3 4 5 6 0
[2] 2 3 4 5 6 0 1
[3] 3 4 5 6 0 1 2
[4] 4 5 6 0 1 2 3
[5] 5 6 0 1 2 3 4
[6] 6 0 1 2 3 4 5
[0] 0 0 0 0 0 0 0
[1] 0 1 2 3 4 5 6
[2] 0 2 4 6 1 3 5
[3] 0 3 6 2 5 1 4
[4] 0 4 1 5 2 6 3
[5] 0 5 3 1 6 4 2
[6] 0 6 5 4 3 2 1
DISCRETE MATHEMATICS
UNIT – V LATTICES & BOOLEAN ALGEBRA
PART – A
3
2
1
6. Draw the Hasse diagram of D20 = {1,2,4,5,10,20}.
Sol. 20
4 10
2 5
a b
12
2 3
There is no least element and greatest element is 6 for A.
9. Define Least Upper Bound
Sol. An element a P is called a Least Upper Bound of B if a is an upperbound
of B and a a whenever a is an upperbound of B (i.e) ‘a’ precedes all
the other upperbounds of B.
10. Define Greatest Lower Bound
Sol. An element a P is called a Greatest Lower Bound of B if a is a
lowerbound of B and a a whenever a is a lowerbound of B
(i.e) ‘a’ succedes all the other lowerbounds of B.
11. Define Lattice with an example.
Sol. A lattice is a partially ordered set (L, ) in which every pair of elements
a,b L has a greatest lower bound and a least upper bound.
Example: f
c d
3
GLB = 3 and there is no LUB.
17. In a bounded lattice (L, , ,0,1) an element b L is called a complement
of an element a L if a b=0 and a b=1.
18. Define complemented lattice.
Sol. A lattice (L, , ,0,1) is said to be a complemented lattice if every element
of L has atleast one complement.
19. Define modular lattice.
Sol. A lattice (L, , ) is said to be modular if a,b,c L,
a c a (b c) (a b) c .
20. Define distributive lattice.
Sol. A lattice (L, , ) is said to be distributive lattice if for any a,b,c L
a (b c) (a b) (a c)
a (b c) (a b) (a c)
b1 b2 b3
0
Sol. b1 (b2 b3 ) b1 1 b1.
(b1 b2 ) (b1 b3 ) 0 0 0
which shows that the given lattice is not distributive.
M.A.M COLLEGE OF ENGINEERING DISCRETE MATHEMATICS UNIT - V 4
a b c
0
The above lattice is called diamond lattice denoted by M5.
M5 is modular.
But a (b c) a 1 a
(a b) (a c) 0 0 0
a (b c) (a b) (a c)
Hence M5 is not distributive.
23. The following is the Hasse diagram of a partially ordered set. Verify
whether it is a lattice.
e
c
a b
d
Sol. From the diagram a b does not exist.
For, c and e are upperbounds of a and b, but neither precedes the other.
So a b does not exist. Hence the given Poset is not a lattice.
24. Prove that the lattice given by the following diagram is not modular.
1
a1
a3
a2
0
Sol. a2 a1 a2 a1 a2 , a2 a1 a1.
a 2 (a 3 a1 ) a 2 0 a 2
(a 2 a 3 ) a1 1 a1 a1
a 2 (a 3 a1 ) (a 2 a 3 ) a1 .
Hence the given lattice is not modular.
25. In a lattice (L, ) with usual notations. Show that for any a,b,c L,
b c a b a c .
Sol. For any a,b,c L, b c iff b c b
Now, (a b) (a c) a (b a) c
a ( a b) c
(a a) (b c)
a b
a b a c.
M.A.M COLLEGE OF ENGINEERING DISCRETE MATHEMATICS UNIT - V 5
ф
27. Define Boolean algebra and find all the atoms in D(30).
Sol. A Boolean algebra is a complemented, distributive lattice.
D(30) = {1,2,3,5,6,10,15,30}
In D(30), the atoms are 2,3,5.
28. Is the lattice of divisors of 32 a Boolean algebra?
Sol.
32
16
8
4
2
1
b1 b2 b3
0
Sol. b1 b3 1.
Hence (b1 b3 ) b2 1 b2 b2
M.A.M COLLEGE OF ENGINEERING DISCRETE MATHEMATICS UNIT - V 7
0 1 0 1
0 0 1 0 0 0
1 1 1 1 0 1
a c a c a, a c c.
a (b c) a 0 a
( a b) c 1 c c
a (b c) (a b) c.
Thus the pentagon lattice is not modular.
Also a (b c) a 0 a
( a b) ( a c ) 1 c c
a (b c) (a b) (a c).
Hence the pentagon lattice is not distributive.
45. Draw the Hasse diagram of the set of all positive divisors of 36.
Sol. D36 = { 1, 2, 3, 4, 6, 9, 12, 18, 36 }
36
12
18
4 6
9
2 3
1
46. Show that absorption laws are valid in a Boolean algebra.
Sol. To show that i) a.(a + b) = a ii) a + (a.b) = a
a.(a + b) = (a + 0).(a + b)
= a + (0.b)
=a+0
=a
(i.e.) a.(a + b) = a
Its dual is a + (a.b) = a
47. Draw the Hasse diagram of (X, ) where X is the set of positive
divisors of 45 and the relation is such that
= {(x,y); x A, y A and(x divides y)}.
Sol. D45 = { 1, 3, 5, 9, 15, 45}
45
9 15
3 5
1
M.A.M COLLEGE OF ENGINEERING DISCRETE MATHEMATICS UNIT - V 9
PART – B
12
2 3
6 10 15
2 3 5
1
M.A.M COLLEGE OF ENGINEERING DISCRETE MATHEMATICS UNIT - V 10
12
4
6
2 3
2 3
8 12 6 10 15
4 6
2 2 3 5
3
1 1
8. Let N be the set of all natural numbers with the relation R as follows: xRy
if and only if x divides y. Show that R is a partial order relation on N.
Sol. Let N be the set of all natural numbers.
Reflexive
For all a N, a divides a (i.e.) aRa
R is reflexive.
Antisymmetric
For all a,b N, whenever a b then either (a,b) R or (b,a) R.
( i.e.) when 2 8 then (2,8) R but (8,2) R.[ 2 divides 8 but 8 does not
divide 2]
R is antisymmetric.
Transitive
For all a,b,c N, if a divides b and b divides c then a divides c.
R is transitive.
Hence R is partial order relation on N.
9. Let R be a relation on a set A. Then define R–1 = {(a,b) A×A / (b,a) R}.
Prove that if (A,R) is poset then (A, R–1) is also a poset.
Sol. R is reflexive (a,a) R
(a,a) –1 R–1
(a,a) R–1
R–1 is reflexive.
M.A.M COLLEGE OF ENGINEERING DISCRETE MATHEMATICS UNIT - V 12
14. Let (L, ) be a lattice in which and denote the operation of meet
and join respectively. For any a,b L,
a b a b = a a b = b.
Proof. First we shall prove a b iff a b = a
Let us assume that a b
Since we know that a a
a a b
But by our definition of a b, a b a
a b = a
Conversely, if a b = a, then clearly a b.
Hence a b iff a b = a.
Next to prove a b = a iff a b = b
Let us assume that a b = a
By absorption law, b = b (b a)
= b (a b)
= b a
= ab
(i.e) a b = b
Conversely, if a b = b
By absorption law, a = a (a b)
= a b
(i.e) a b = a
Hence a b = a iff a b = b.
15. Any chain is modular.
Proof. Let (L, ) be a chain.
Let a,b,c L and a c.
As L is a chain, we have either b c (or) c b.
i) If b c, then c is an upper bound of a and b.
M.A.M COLLEGE OF ENGINEERING DISCRETE MATHEMATICS UNIT - V 15
ab c
(a b) c a b.
As b c, we have b c b
a (b c) a b
Thus we get a (b c) (a b) c.
ii) If c b, then b c c, b c b
we have a c
acb
ab
a b b, a b a
Now, (a b) c b c c
and a (b c) a c c
a (b c) (a b) c.
If a c a (b c) (a b) c is valid in any chain.
Hence it is a modular lattice.
a b 1 ( a b) b b
(a b ) (b b ) b
(a b ) 0 b
a b b
b a
(iii) (iv)
b a a b b
(a b ) (b )
ab b
ab
(iv) (i)
Hence the given four statements are equivalent.
6 10 15
2 3 5
25. In the Boolean algebra of all divisors of 70, find all subalgebras.
Sol. D70 = {1,2,5,7,10,14,35,70}
70
10 14 35
2 5 7
(i) (iii)
Assume
a b 1
a b (a b).1 (a b).(a b) (a.a ) b 0 b b
(iii) (i) (i) (iii)
Assume
a b 1
(a b) 1 0
(a ).b 0
a.b 0
(iii) (iv)
Assume
a.b 0
(a.b ) 0 1
a (b ) 1
a b 1
(iv) (iii) (iii) (iv)
Hence all the four statements are equivalent.
31. Prove the involution law if L is a complemented, distributive lattice.
Sol. Let a be the complement of a. Then by definition
a a 0, a a 1
Now
(a a ) 0 1
a (a ) 1
Since complement is unique, (a ) a.
32. Show that the following Boolean expressions are equivalent to one
another.
(i ) ( x y ) ( x z ) ( y z )
(ii ) ( x z ) ( x y ) ( y z )
(iii ) ( x y ) ( x z )
(iv ) ( x z ) ( x y )
Sol.
x y z x y x z y z x z x y yz (i) (ii) (iii) (iv)
1 1 1 1 1 1 1 0 1 1 1 1 1
1 1 0 1 0 1 0 0 0 0 0 0 0
1 0 1 1 1 1 1 0 0 1 1 1 1
1 0 0 1 0 0 0 0 0 0 0 0 0
0 1 1 1 1 1 0 1 1 1 1 1 1
0 1 0 1 1 1 0 1 0 1 1 1 1
0 0 1 0 1 1 0 0 0 0 0 0 0
0 0 0 0 1 0 0 0 0 0 0 0 0
Hence (i), (ii), (iii), (iv) are all equivalent.
M.A.M COLLEGE OF ENGINEERING DISCRETE MATHEMATICS UNIT - V 22
33. Define a modular lattice and prove that every distributive lattice is
modular, but not conversely.
Sol. A lattice (L, , ) is said to be modular if a,b,c L,
a c a (b c) (a b) c .
Let (L, ) be a distributive lattice and a,b,c L.
We have a (b c) = (a b) (a c)
If a c then a c = c.
So, a (b c) = (a b) c.
L is modular.
1
a b c
0
The above lattice is called diamond lattice denoted by M5.
The elements a,b,c are symmetric, so it is enough to prove for any
one of a, b, c.
We have the cases a < 1 and 0 < a.
Case (i) If a < 1
Let x1 = a and x3 = 1
Now, x1 ( x2 x3) = a ( x2 1)
= a x2
(x1 x2) x3 = (a x2) 1
= a x2
Hence x1 ( x2 x3) = (x1 x2) x3
Case (ii) If 0 < a
Let x1 = 0 and x3 = a
Now, x1 ( x2 x3) = 0 ( x2 a)
= x2 a
(x1 x2) x3 = (0 x2) a
= x2 a
Hence x1 ( x2 x3) = (x1 x2) x3
The diamond lattice is modular.
But a (b c) a 1 a
(a b) (a c) 0 0 0
a (b c) (a b) (a c)
Hence M5 is not distributive.
34. Define a lattice. Verify whether the lattice given by the Hasse diagram
in the figure below is distributive.
1
c
a
b
0
M.A.M COLLEGE OF ENGINEERING DISCRETE MATHEMATICS UNIT - V 23
Sol. A lattice is a partially ordered set (L, ) in which every pair of elements
a,b L has a greatest lower bound and a least upper bound.
Now, a (b c) = a b = 0
and (a b) (a c) = 0 0 = 0
a (b c) = (a b) (a c) -----------(1)
c (a b) = c 1 = c
and (c a) (c b) = 0 c = c
c (a b) = (c a) (c b) ------------(2)
(1) and (2) do not mean that the lattice is distributive.
Now, b (c a) = b 1 = b
But (b c) (b a) = c 0 = c
This means that b (c a) ≠ (b c) (b a).
Hence the given lattice is not distributive.
35. If D45 denotes the set of all divisors of 45 under divisibility ordering,
find which elements have complements and which do not have
complements.
Sol. D45 = { 1,3,5,9,15,45 }.
If x and y are divisors of 45, x y = GCD(x,y), x y = LCM(x,y)
In D45, the least element is 1 and the greatest element is 45.
1 45 = 1, 1 45 = 45
5 9 = 1, 5 9 = 45
3 15 = 3 ≠ 1, 3 15 = 45
The complement of 1 is 45 and the complement of 45 is 1.
The complement of 5 is 9 and the complement of 9 is 5.
3 and 15 have no complements.
x [ y z ( xy xz ) ] x [ y z( x. y) .( x.z) ]
x [ y z ( x y ) . ( x z ) ]
x [ y z ( x .x x .z y .x y .z )]
x [ y z ( x x .z y .x y .z )]
x. y x.z.x x.z.x .z x.z.x . y x.z. y .z
x. y ( x.x ).z ( x.x )( z.z ) ( x.x ).z. y ( z.z ).x. y
x. y 0 0 0 0 [ x.x 0 and z.z 0 ]
x. y
38. In a lattice (L, ), prove that
(i) x ( y z ) ( x y ) ( x z )
(ii ) x ( y z ) ( x y ) ( x z )
Sol. Let x,y,z L
As x x y , x x z
then x ( x y) ( x z) --------------(1)
As y z y x y
yz z x z
y z ( x y) ( x z) --------------(2)
From (1) and (2), we get x ( y z) ( x y) ( x z)
Its dual is x ( y z) ( x y) ( x z)
ii) (x1, y1) Ц [(x2, y2) Ц (x3, y3) ] = (x1, y1) Ц (x2 x3 , y2 y3)
= [(x1 (x2 x3)) , (y1 ( y2 y3))]
= [((x1 x2) x3) , ((y1 y2) y3)]
= (x1 x2 , y1 y2) Ц (x3, y3)
= [(x1, y1) Ц [(x2, y2)] Ц (x3, y3)
Its dual is
(x1, y1) П [(x2, y2) П (x3, y3)] = [(x1, y1) П (x2, y2)] П (x3, y3)
П and Ц are associative.
iii) (x1, y1) Ц [(x1, y1) П (x2, y2)] = (x1, y1) Ц (x1 x2, y1 y2)
= [(x1 (x1 x2)),(y1 ( y1 y2))]
= (x1, y1)
Its dual is (x1, y1) П [(x1, y1) Ц (x2, y2)] = (x1, y1)
П and Ц satisfies absorption law.
Hence (L×M, П, Ц) is an algebraic lattice.
41. Show that the lattice L is distributive if and only if for all a,b,c in L,
(a b) c a (b c)
Sol. Let L is a distributive lattice.
For all a,b,c L
(a b) c = (a c) (b c)
a (b c) [ as a c a]
Conversely, assume that L is a lattice with (a b) c a (b c) for all
a,b,c L.
To show that L is distributive, it is enough to prove that
(a b) (a c) a (b c) for all a,b,c L
Now, (a b) (a c) a [b (a c)] (by assumption)
= a [(a c) b]
a [a (c b)] (by assumption)
= (a a) (b c)
= a (b c)
Hence (a b) (a c) a (b c).
42. Show that in a Boolean algebra, for every element x has unique
complement x such that x + x = 1 and x . x = 0
Sol. For any x B, there exists a complement x B such x + x = 1 and x . x = 0
Suppose x1 and x2 are complements of x such that
x + x1 = 1, x.x1 = 0
and x + x2 = 1, x.x2 = 0
Now x1 = x1.1 = x1.(x + x2)
= x.x1 + x1. x2
= 0 + x1. x2
= x.x2 + x1. x2
= (x + x1).x2
= 1.x2
= x2
Hence the complement of x is unique.
M.A.M COLLEGE OF ENGINEERING DISCRETE MATHEMATICS UNIT - V 26