- Information
- AI Chat
Was this document helpful?
Math 1271 3071 Assignment 3 Solutions
Course: Discrete Mathematics (Mathematics 1271)
23 Documents
Students shared 23 documents in this course
University: Lakehead University
Was this document helpful?
Math 1271 / 3071: Assignment 3 Solutions
Show all your work with all necessary steps.
1. (4 points) Express the number (12.34)5in base 10 as m
nwhere m, n are positive integers such
that m, n do not have common divisor larger than 1, that is, gcd(m, n) = 1.
Solution: Let x= (12.34)5. Then (100)5x= (1234.34)5. (100)5x−x= (1234.34)5−(12.34)5=
(1222)5.25x−x= 187, x= 187/24.
You can also use geometric series to find the number. (12.34)5= 5 + 2 + 3/5 + 4/52+ 3/53+
4/44+... = 7 + 3/5·(1 + 1/25 + 1/252+...)+4/25 ·(1 + 1/25 + 1/252+...) = 7 + 3/4·1/(1 −
1/25) + 4/25 ·1/(1 −1/25) = 7 + 5/8+1/6 = 187/24.
2. (4 points) Let xnbe a sequence of real numbers defined as x1= 1.5 and xn+1 = 1 + 1
xnfor n≥1.
Use the Principle of Mathematical Induction to show that 1 < xn<2 for all n≥1.
Solution: Let P(n):1< xn<2.
Basis step: x1= 1.5, 1 < x1<2. So P(1) is true.
Inductive step: For any n≥1, assume P(n) is true (or you can use strong induction, P(1), ..., P (n)
are all true), that is, 1 < xn<2. Consider xn+1 = 1 + 1
xn. We know 1 <1+1/2<1+1/xn<
1+1/1 = 2. That is, 1 < xn+1 <2. So P(n+ 1) is true.
By mathematical induction, 1 < xn<2 for all n≥1.
3. (4 points) Use mathematical induction to show that 1+ 3 + 5 + · · · + (2n−1) = n2for all positive
integers n.
Solution: We want to show P(n) : 1 + 3 + 5 + · · · + (2n−1) = n2for all n≥1.
Basis step: P(1): 1 = 12is true.
Inductive step: Assume P(n) is true, that is, 1 + 3 + ... + (2n−1) = n2for every n≥1. Now
1+3+...+(2n−1)+(2n+1) = n2+(2n+1) = (n+1)2. Thus P(n+1) is true. By mathematical
induction, 1 + 3 + 5 + · · · + (2n−1) = n2for all n≥1.
4. (4 points) Show that in any Boolean algebra B,x+x0y=x+yfor any x, y ∈B. Indicate which
law is used for each step.
Solution:
x+x0y= (x+x0)(x+y) (Distributive Law or B3(a))
= 1(x+y) (Complement Law or B5(a))
=x+y(Identity Law or B4(b)).
5. (6 points) The Boolean expression α(x, y, z) = xy +xy0z+ (y+z)0. Evaluate
(a) α(0,0,0).
(b) α(1,1,1).
Solution: α(0,0,0) = 00 + 0000 + (0 + 0)0= 0 + 010 + 00= 0 + 0 + 1 = 1.
α(1,1,1) = 11 + 1101 + (1 + 1)0= 1 + 101 + 10= 1 + 0 + 0 = 1.[Note: 1 + x= 1 for any x.]
1