You are on page 1of 6
MATH 112 MIDTERM 1 SPRING 2019 Question Points eal Aywyja TH] T)ALR dwg _[w | [a [ete ts [es pw ‘Student Number Test Name First Nome ‘Duration: 110 minutes Rules 1 Read, sgn and observe the hoor code below 4 In all of the questions in thie exam, explain your anawers by showing the steps in a ‘lear, organized fashion. You might get no points for correct answers with no derivation ‘and/or no explanation and/or unintelligible/unorganized solution. 4 No caleulators oe any other eletonic equipment is allowed + Respect others by being len. Tlding will not be alerted! You Hsk belag Urown out ofthe exam you tlk evn abou ching nt related to questions. IFyou havea question, stay rao your hand ‘shen one ofthe nstrctors inthe clas «+ Leaving cassoom in the mid of the exam i not allowed. You ean submit vour sheet and leave carly if 308 want. You cannot lave the exam daring the fret 5 minutes. ‘+ Ia sudent lola Inappropriate Buhavor during the exam, he proctor may stp testing and report the inappropriate behavior tothe Dean's Ofice Honor Code 1 plodigeinder my honor that I did not give oF receive any unauthorized asitance in thie wok Signet 1, [0 ps] (Induction) Use mathematical induction to prove that for n €N, Bor ae: al. Zev = CO ce lv e Cis <4 kK k Tduckion Pp. Antume thet Giyjt Gk (ee) 2 key & tote le ; ke Tadection sets cul 2S catit eo Cenlt . v fol ib) oo by induchion hyp = eokk den) | 260" cea | 2 cyk cen) ( k 100] a . Kt ok oy (tn) = (eH) (kn) z 2 So, claim hells for nzktl , and induchoa complete 2. (10410 = 20 ps} (Proof methods) () Let m and m be integers. Prove that ifm and are both od then m +n is oven Let m ond a be odd integers Then , m=2ktl and n= 20+! for some k.leD Then, oman = (Dee) + (2+) = 2Ckebed) But keler eZ @ well for me sel, Thi mea, men = 25 therefore min i) even (©) Use a prof by contradiction to prove that log, 3 i rational. (Recall that the equation Joga = y is equivalent tothe equation * = x.) For a contradiction, assume thot fog, 0 rational Tho meas, 109, 3 = >, whee abe ond b#0 We a clear Pret 109,350 10 we may Ake a,b e WV a ‘ on3 => > 2h 23 = 7.3 & Sine asheN , 2° 0 even and 3° ib odd Thi gives a contradiction since on integir cannot be both even and odd 3. [049444-446= 20 pts] (Logie) (4) Lat p ang be the propositions pos Its raining, qT eat spaghetti Consider the proposition r= Teat spaghetti only if is raining. (0) Wate the propesition rin symbols sing p, 4, and legal operators y= Pp (8) Wit an equivalent propstion to rin word, using ether the word fet” or For me fo cat sgagheHy it U ateesery that ck be raining (ce + For to rain , ik iy suPficieat traf T eat spaghetti.) (0) Let (2), C(2), and (a) be the statements Tia) = likes to play trumpet, C(z) = is cold-blooded, Af(2):=2 ina manager. ‘The domain for x consist of ll poople. Expres ech ofthe following tatements in terms of T(2), C2), M2), quantifiers, and logis operators (0) Allco-looded managers ike to pla trumpet. Vx he CO) a Mey) => TOO } (8) Tie a manag ho dm to play tame dy My s Thi) (6) Let the logical operate | be defined bythe equivalence pq = ~(pV4). Find «compound proposition logially equivalent vo pq using only the logical operat Ap = aGve) = rly © Then, Pag a (>9 ¥ 74) mb ay t De Maryan (php) v C4 4q) we Ast line 4. [8+94-446 = 16 pts] (Counting) A bit string is a word, where cack etry is O or 1, Te is also called 0-1 Ks. (For example, 0010110 is abit string of length 7) (o) How many bit strings of length m are thete? 2" (count a-werds sith alphe bet 0.3 ) (1) How many it tings of langth contin exe thet? (3) (chosre 3 pesibion aut of on 4 place the 05) (2) DG (@) How many bit strings of length n contain exactly one occurrence of the block 01? These strings ore of the form 21, % 2, He 1OO TL 10-0 | whee y36, vee x Ma “ ond Kb EXg ed Similer to picabe-gsl2 pr. Ans oo ey aa at JL 3 5. [8 ps| (Counting) By using the principe of counting two way, show th: 8 (a) _ (net &Q)-() Beth sides count 3-subeb of [Ue didc--, aH} RES: by definition LHS > according ty “lorgut element” of the subset IE the Lergeit element chosen iy kel, there ave () ways fo choot the remainiay clemen af the subse Apply the sum pe. over kl 2 By 4) em, SB ke Ws, cua ral (L)=0 5 0 there 0 m0 grb with tho Kem, ) . [pts] (Counting) How many ways are thre to divide 8 people nto two nonempty groupe? (4) 4 (4) GG) + (1) : 3 2) t slit fate Syeoup EL, Lgeomp f F Pee ee 05 types of eookies available, and a cookie can only be distinguished by type. In how may ‘ways can you ditibute the cookies to 15 baskets it {@) baskots look diferent, there isa large number of each type of cookie avilable, and you Dut at leat 3 cookies and no two cookie of the same type, inesch basket? (® (ye 5 & there or differs i) a) (3) | ake!) ch 3 tr, put Lenk of keh type (b) baskets look diferent, there isa large number of each type of cookie avilable, and you Ut at most 10 cookies and at most 1 typeof cookie in each bask? 1s (4 + 5-10) * pubeo Gekie ont Cheer bees (6) baskets Took diferent, there are 3 cookies of each type avallable, ane you put exactly 1 Sacer! ( ea “()s GYS) BI) t choo 3 Tbaikely, place ceckien af Fint tape! (4) baskets look the same, there laege number ofeach type of cookie wallabl, and you pet etal feos aks! Fa Te Fpl ale cake oon we 5-2 + (E)-2 chase Hype, either put bath in same barlet, fake 2 or in different baskets dame type

You might also like