- Information
- AI Chat
Was this document helpful?
Math127121 assignment 2solutions-35071
Course: Discrete Mathematics (Mathematics 1271)
23 Documents
Students shared 23 documents in this course
University: Lakehead University
Was this document helpful?
Math 1271 Assignment 2
Solutions
1. Compute the logarithms: log42,log264,and log84.
Solution If log42 = y, we have 4y= 2,so y= 1/2.If log264 = x, we have 2x= 64,
so x= 6.If log84 = z, we have 8z= 4,so z= 2/3.
2. Find the prime factor decompositions of the numbers 300 and 180, and use these
to find their greatest common divisor and least common multiple.
Solution We have 300 = 3·100 = 3·4·25 = 22·3·52and 180 = 18·10 = 32·2·2·5 =
22·32·5.Their greatest common divisor is 22·3·5 = 60,and their least common
multiple is 22·32·52= 900.
3. Write out the terms t1to t10 in the sequence tn=b(n−1)/3c.
Solution We have b0/3c= 0,b1/3c= 0,b2/3c= 0,b3/3c= 1,b4/3c= 1,
b5/3c= 1,b6/3c= 2,b7/3c= 2,b8/3c= 2,and b9/3c= 3,so our sequence is
0,0,0,1,1,1,2,2,2,3.
4. Find the value of each of the sums.
50
X
n=0
(−1)n
10
X
n=1
5n
Solution We have P50
n=0(−1)n= 1−1+1−1+1 · · ·−1+1 = (1−1)+· · ·+(1−1)+1 =
1.Also, P10
n=1 5n= 5(P9
n=0 5n) = 5((1 −510)/(1 −5)) = 5(1 −9765625)/(−4) =
12207030,where we have used the formula for the sum of a geometric progression
given in class.
5. Show that Pk
n=1(tn−tn−1) = tk−t0.Use this to compute P100
n=1 1
(n+1)(n+2) .
Solution Expanding, Pk
n=1(tn−tn−1) = (t1−t0) + (t2−t1) + · · · + (tk−tk−1) =
tk−t0,since all the other terms cancel in pairs. We have P100
n=1 1
(n+1)(n+2) =
P100
n=1 1
n+1 −1
n+2 .Let tn=1
n+2 .Then, using the formula above, our sum becomes
−(1/102 −1/2) = 50/102.
6. Convert the following integers from decimal notation to binary notation: 103,
412,and 3123.
Solution We have 26= 64 and 27= 128,so we write 103 = 64+ 39 = 64+32 +7 =
64 + 32 + 4 + 2 + 1 = 26+ 25+ 22+ 21+ 20= (1100111)2.We have 28= 256 and
29= 512,so we write 412 = 256 + 156 = 256 + 128 + 28 = 256 + 128 + 16 + 12 =
256 + 128 + 16 + 8 + 4 = 28+ 27+ 24+ 23+ 22= (110011100)2.We have 210 = 1024,
211 = 2048,and 212 = 4096,so we write 3123 = 2048 + 1075 = 2048 + 1024 + 51 =
2048+1024+32+19 = 2048+1024+32+16+2+1 = 211 + 210 +25+24+21+20=
(110000110011)2.
7. Convert the following integers from binary notation to decimal notation: 1001,
10101,and 10110.
1